CVE-2023-38896 json
LangChain vulnerable to arbitrary code execution
published 2023-08-15 3 y ago modified 2026-06-17 4 mo ago also GHSA-92j5-3459-qgp4 , PYSEC-2023-146 , EUVD-2023-0114
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.8%
- EPSS 1.8% chance of exploitation in 30 days, percentile 78%
- public exploits
- 0
- none known
Summary
An issue in Harrison Chase langchain v.0.0.194 and before allows a remote attacker to execute arbitrary code via the from_math_prompt and from_colored_object_prompt functions.
Patch / fix
- pypi langchain 0.0.195, 0.0.236
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- total
- Assessed
- 2 y ago
Exploit prediction
1.82% chance of exploitation in the next 30 days, higher than 78% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/hwchase17/langchain/issues/5872 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| OSV | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | langchain | <0.0.236 <0.0.195 |
0.0.236 0.0.195 |
Classification
References
-
github.com
/hwchase17/langchain/pull/6003
web, patch
-
github.com
/hwchase17/langchain/issues/5872
web, exploit, issue-tracking, patch, evidence, report
-
github.com
/langchain-ai/langchain/commit/8ba9835b925473655914f63822775679e03ea137
web
-
github.com
/langchain-ai/langchain/commit/e294ba475a355feb95003ed8f1a2b99942509a9e
web
-
twitter.com
/llm_sec/status/1668711587287375876
web, third-party-advisory
-
nvd.nist.gov
/vuln/detail/CVE-2023-38896
advisory
-
github.com
/langchain-ai/langchain
package
-
github.com
/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-146.yaml
web
-
github.com
/advisories/GHSA-92j5-3459-qgp4
advisory
Sources
- CVE List CVE-2023-38896
- GitHub Advisory GHSA-92j5-3459-qgp4
- NVD CVE-2023-38896
- OSV PYSEC-2023-146
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.