Vulnerability in Langchain
CVE-2023-29374
In LangChain through 0.0.131, the LLMMathChain chain allows prompt injection attacks that can execute arbitrary code via the Python exec method.
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.397 (98.6th percentile), scored .
Moderate probability of exploitation in the next 30 days — watch for active exploitation reports. 99th percentile — 98.6% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.397 · newest: 0.397 · change: 0.000
Affected products
Weakness classification (CWE)
Public proof-of-concept exploits
References
- github.com/hwchase17/langchain/pull/1119 (Patch)
- github.com/hwchase17/langchain/issues/814 (Exploit, Patch, Issue Tracking)
- twitter.com/rharang/status/1641899743608463365/photo/1 (Exploit)
- github.com/hwchase17/langchain/issues/1026 (Issue Tracking)
Frequently asked questions
- What is CVE-2023-29374?
- CVE-2023-29374 is a critical-severity vulnerability in Langchain, classified under Improper Neutralization of Special Elements in Output Used by a Downstream Component (Injection). CVSS score: 9.8/10. Published 2023-04-05.
- How severe is CVE-2023-29374?
- Critical severity. CVSS v3 base score is 9.8 out of 10.
- Is CVE-2023-29374 known to be exploited?
- 4 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.