CVE-2023-29374 in the critical feed json
LangChain vulnerable to code injection
published 2023-04-05 3 y ago modified 2026-06-17 4 mo ago also GHSA-fprp-p869-w6q2 , PYSEC-2023-18 , EUVD-2023-0118
- cvss
- 9.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 39.7%
- EPSS 39.7% chance of exploitation in 30 days, percentile 98%
- public exploits
- 0
- none known
Summary
In LangChain through 0.0.131, the LLMMathChain chain allows prompt injection attacks that can execute arbitrary code via the Python exec method.
Patch / fix
- pypi langchain 0.0.132
- github.com/hwchase17/langchain/issues/814 patch
- github.com/hwchase17/langchain#1119 pull request
CISA SSVC
- Exploitation
- none
- Automatable
- yes
- Technical impact
- total
- Assessed
- 20 mo ago
Exploit prediction
39.65% chance of exploitation in the next 30 days, higher than 98% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/hwchase17/langchain/issues/814 referenced PoC, tagged "exploit" by a source, unverified
- twitter.com https://twitter.com/rharang/status/1641899743608463365/photo/1 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CNA | 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.131 <0.0.132 |
0.0.132 |
Classification
References
-
github.com
/hwchase17/langchain/pull/1119
web, patch
-
github.com
/hwchase17/langchain/issues/814
web, exploit, issue-tracking, patch, report
-
twitter.com
/rharang/status/1641899743608463365/photo/1
web, exploit
-
github.com
/hwchase17/langchain/issues/1026
web, issue-tracking, report
-
nvd.nist.gov
/vuln/detail/CVE-2023-29374
advisory
-
github.com
/langchain-ai/langchain
package
-
github.com
/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-18.yaml
web
-
github.com
/advisories/GHSA-fprp-p869-w6q2
advisory
Sources
- CVE List CVE-2023-29374
- GitHub Advisory GHSA-fprp-p869-w6q2
- NVD CVE-2023-29374
- OSV PYSEC-2023-18
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.