{"cve":"CVE-2023-29374","nvd":{"published":"2023-04-05T02:15:37.340","modified":"2026-06-17T05:49:55.800","status":"Modified","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_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-74"],"references":["https://github.com/hwchase17/langchain/issues/1026","https://github.com/hwchase17/langchain/issues/814","https://github.com/hwchase17/langchain/pull/1119","https://twitter.com/rharang/status/1641899743608463365/photo/1","https://github.com/hwchase17/langchain/issues/1026"],"products":["langchain:langchain"],"source":"nvd","synced_at":"2026-10-19T21:37:48.383111019+00:00"},"epss":{"cve":"CVE-2023-29374","score":0.39653,"percentile":0.98618,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-fprp-p869-w6q2","url":"https://osv.dev/vulnerability/GHSA-fprp-p869-w6q2","summary":"LangChain vulnerable to code injection","modified":"2025-02-12T18:43:20.461717Z","packages":[{"ecosystem":"PyPI","name":"langchain","purl":"pkg:pypi/langchain","ranges":["<=0.0.131"],"fixed":[]}]},{"id":"PYSEC-2023-18","url":"https://osv.dev/vulnerability/PYSEC-2023-18","summary":"","modified":"2026-06-10T17:01:57.057107444Z","packages":[{"ecosystem":"PyPI","name":"langchain","purl":"pkg:pypi/langchain","ranges":["<0.0.132"],"fixed":["0.0.132"]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}