{"id":"CVE-2023-29374","url":"https://www.cyber-defence.io/tools/cve/CVE-2023-29374","generatedAt":"2026-11-04T23:37:34.961Z","title":"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.","published":"2023-04-05T02:15:37.000Z","lastModified":"2026-06-17T05:49:56.000Z","status":"Modified","sourceIdentifier":"cve@mitre.org","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H"},"cwe":["CWE-74"],"affected":["langchain/langchain"],"epss":{"score":0.39653,"percentile":0.9862,"date":"2026-11-03","history":[]},"kev":{"listed":false},"exploits":{"count":0,"verified":false,"firstPublished":null,"source":"Exploit-DB (https://gitlab.com/exploit-database/exploitdb)","entries":[]},"verdict":{"level":"urgent","text":"EPSS puts the probability of exploitation in the next 30 days at 39.7%, higher than 99% of all known CVEs. Patch or mitigate before the next change window."},"changes":[],"references":[{"url":"https://github.com/hwchase17/langchain/issues/1026","tags":["Issue Tracking"],"source":"cve@mitre.org"},{"url":"https://github.com/hwchase17/langchain/issues/814","tags":["Exploit","Issue Tracking","Patch"],"source":"cve@mitre.org"},{"url":"https://github.com/hwchase17/langchain/pull/1119","tags":["Patch"],"source":"cve@mitre.org"},{"url":"https://twitter.com/rharang/status/1641899743608463365/photo/1","tags":["Exploit"],"source":"cve@mitre.org"},{"url":"https://github.com/hwchase17/langchain/issues/1026","tags":["Issue Tracking"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/hwchase17/langchain/issues/814","tags":["Exploit","Issue Tracking","Patch"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://github.com/hwchase17/langchain/pull/1119","tags":["Patch"],"source":"af854a3a-2127-422b-91ae-364da2661108"},{"url":"https://twitter.com/rharang/status/1641899743608463365/photo/1","tags":["Exploit"],"source":"af854a3a-2127-422b-91ae-364da2661108"}],"sources":{"nvd":"https://nvd.nist.gov/vuln/detail/CVE-2023-29374","epss":"https://www.first.org/epss/","kev":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","exploitdb":"https://www.exploit-db.com/"},"licence":"CC BY 4.0 — link back to the CVE Explorer if you publish the results; upstream data remains subject to its own terms."}