Vulnerability record · CVE-2023-29374 · published 5 April 2023
CVE-2023-29374: Langchain injection vulnerability
Langchain · Langchain
In LangChain through 0.0.131, the LLMMathChain chain allows prompt injection attacks that can execute arbitrary code via the Python exec method.
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:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products
1 vulnerable configurations from NVD's CPE data, grouped by vendor and product.
References
| Link | Tags |
|---|---|
| https://github.com/hwchase17/langchain/issues/1026 | Issue Tracking |
| https://github.com/hwchase17/langchain/issues/814 | ExploitIssue TrackingPatch |
| https://github.com/hwchase17/langchain/pull/1119 | Patch |
| https://twitter.com/rharang/status/1641899743608463365/photo/1 | Exploit |
| https://github.com/hwchase17/langchain/issues/1026 | Issue Tracking |
| https://github.com/hwchase17/langchain/issues/814 | ExploitIssue TrackingPatch |
| https://github.com/hwchase17/langchain/pull/1119 | Patch |
| https://twitter.com/rharang/status/1641899743608463365/photo/1 | Exploit |
Track CVE-2023-29374 inside VULONE
Watch it alongside the ransomware crews, C2 infrastructure and forum chatter that reference it, query it through the API and pull it into your SIEM over TAXII.
Related vulnerabilities
Same products first, then exploited flaws of the same weakness class.
Source: NIST National Vulnerability Database (record CVE-2023-29374), CISA KEV, FIRST EPSS (scores of 2026-09-26). This page is refreshed as NVD updates the record.