{"id":"CVE-2023-29374","sourceIdentifier":"cve@mitre.org","published":"2023-04-05T02:15:37.340","lastModified":"2026-06-17T05:49:55.800","vulnStatus":"Modified","cveTags":[],"descriptions":[{"lang":"en","value":"In LangChain through 0.0.131, the LLMMathChain chain allows prompt injection attacks that can execute arbitrary code via the Python exec method."}],"affected":[{"source":"cve@mitre.org","affectedData":[{"vendor":"n/a","product":"n/a","versions":[{"version":"n/a","status":"affected"}]}]}],"metrics":{"cvssMetricV31":[{"source":"nvd@nist.gov","type":"Primary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":3.9,"impactScore":5.9},{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","type":"Secondary","cvssData":{"version":"3.1","vectorString":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","baseScore":9.8,"baseSeverity":"CRITICAL","attackVector":"NETWORK","attackComplexity":"LOW","privilegesRequired":"NONE","userInteraction":"NONE","scope":"UNCHANGED","confidentialityImpact":"HIGH","integrityImpact":"HIGH","availabilityImpact":"HIGH"},"exploitabilityScore":3.9,"impactScore":5.9}],"ssvcV203":[{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","ssvcData":{"timestamp":"2025-02-12T16:14:23.167174Z","id":"CVE-2023-29374","options":[{"exploitation":"none"},{"automatable":"yes"},{"technicalImpact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}]},"weaknesses":[{"source":"nvd@nist.gov","type":"Primary","description":[{"lang":"en","value":"CWE-74"}]},{"source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","type":"Secondary","description":[{"lang":"en","value":"CWE-74"}]}],"configurations":[{"nodes":[{"operator":"OR","negate":false,"cpeMatch":[{"vulnerable":true,"criteria":"cpe:2.3:a:langchain:langchain:*:*:*:*:*:*:*:*","versionEndIncluding":"0.0.131","matchCriteriaId":"7C55CEFC-7C13-4D07-A223-1C5E9F7BBF25"}]}]}],"references":[{"url":"https://github.com/hwchase17/langchain/issues/1026","source":"cve@mitre.org","tags":["Issue Tracking"]},{"url":"https://github.com/hwchase17/langchain/issues/814","source":"cve@mitre.org","tags":["Exploit","Issue Tracking","Patch"]},{"url":"https://github.com/hwchase17/langchain/pull/1119","source":"cve@mitre.org","tags":["Patch"]},{"url":"https://twitter.com/rharang/status/1641899743608463365/photo/1","source":"cve@mitre.org","tags":["Exploit"]},{"url":"https://github.com/hwchase17/langchain/issues/1026","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Issue Tracking"]},{"url":"https://github.com/hwchase17/langchain/issues/814","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit","Issue Tracking","Patch"]},{"url":"https://github.com/hwchase17/langchain/pull/1119","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Patch"]},{"url":"https://twitter.com/rharang/status/1641899743608463365/photo/1","source":"af854a3a-2127-422b-91ae-364da2661108","tags":["Exploit"]}]}