CVE-2023-29374: langchain Injection
CVSS: 9.8v3.1CriticalModified
AliasesGHSA-fprp-p869-w6q2PYSEC-2023-18
Published 05-04-2023Last modified 12-02-2025
Vulnerability summary
CVE-2023-29374 is a critical (CVSS 9.8) Injection vulnerability in langchain. EPSS estimates a 39.65% chance of exploitation in the next 30 days, higher than 98.6% of scored vulnerabilities. 2 public exploits are recorded.
CVSS score
9.8/10
010
Critical · v3.1 (CVE.org)EPSS score
39.65%
0%100%
High · 0.00 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits2github, reference
Timeline
- 05-04-2023PublishedVulnerability first disclosed.
- 12-02-2025Last modifiedVulnerability information updated.
Description
In LangChain through 0.0.131, the LLMMathChain chain allows prompt injection attacks that can execute arbitrary code via the Python exec method.
CVSS metrics
4 scores · 3 sources · 2 versionsCritical 9.3Preferred score · OSV · Pypi (Ecosystem advisory) · calculated from vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:NSourcesSingle source
Critical 9.8Preferred score · CVE.org (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HSourcesAll 3 agree
- OSV · PypiEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVDNIST9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
39.65%
Chance of exploitation in the next 30 days
Percentile
99%
Versus all other CVEs
30-day change
0.00 pp
From 39.65% on 21-09-2026
21-09-202621-10-2026
EPSS score39.65%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
2 foundLangchain
Maturity: poc
Exploit Reference (twitter.com)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Langchain1 product
- langchain≤ 0.0.131
PyPI1 product
- langchain≤ 0.0.131 | < 0.0.132
2 vendors · 2 products