{"id":"CVE-2023-39659","published":"2023-08-15T00:00:00Z","modified":"2024-10-08T20:28:08Z","title":"An issue in langchain langchain-ai v.0.0.232 and before allows a remote attacker to execute arbitrary code via a…","vendor":null,"product":null,"tier":"tail","description":{"text":"An issue in langchain langchain-ai v.0.0.232 and before allows a remote attacker to execute arbitrary code via a crafted script to the PythonAstREPLTool._run component.","provenance":"source","from":"CVE.org"},"cvss":null,"epss":{"score":0.01711,"percentile":0.77781,"provenance":"source"},"cwes":[],"references":[{"url":"https://github.com/langchain-ai/langchain/issues/7700","tags":[]},{"url":"https://github.com/langchain-ai/langchain/pull/5640","tags":[]}],"priority":{"score":15.6,"factors":[{"name":"EPSS percentile","points":15.56}]},"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2024-10-08T20:27:51.396274Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"langchain","vulnerableRanges":["<0.0.325","<0.0.233"],"patched":["0.0.325","0.0.233"],"from":["GHSA-prgp-w7vf-ch62","PYSEC-2023-147"],"provenance":"source"}],"summary":{"text":"The flaw lies in the PythonAstREPLTool._run component of LangChain (langchain-ai), in version 0.0.232 and earlier. A remote attacker who can supply a crafted script to that component can execute arbitrary code.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:44:55Z"},"euvd":{"id":"EUVD-2023-0115","exploited":false,"provenance":"source"},"lineage":{"packageHistory":[{"cve":"CVE-2023-34540","published":"2023-06-14","fixed":"0.0.225","kev":false,"link":{"from":"CVE-2023-34540","to":"CVE-2023-39659","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:langchain","fromFixed":"0.0.225","toFixed":"0.0.233","daysApart":62}]}},{"cve":"CVE-2023-38896","published":"2023-08-15","fixed":"0.0.236","kev":false,"link":{"from":"CVE-2023-39659","to":"CVE-2023-38896","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:langchain","fromFixed":"0.0.233","toFixed":"0.0.236","daysApart":0}]}},{"cve":"CVE-2023-39631","published":"2023-09-01","fixed":"0.0.308","kev":false},{"cve":"CVE-2023-36281","published":"2023-08-22","fixed":"0.0.312","kev":false},{"cve":"CVE-2023-46229","published":"2023-10-19","fixed":"0.0.317","kev":false},{"cve":"CVE-2023-39659","published":"2023-08-15","fixed":"0.0.325","kev":false},{"cve":"CVE-2023-32786","published":"2023-10-20","fixed":"0.0.329","kev":false,"link":{"from":"CVE-2023-39659","to":"CVE-2023-32786","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:langchain","fromFixed":"0.0.325","toFixed":"0.0.329","daysApart":66}]}},{"cve":"CVE-2024-3571","published":"2024-04-16","fixed":"0.0.353","kev":false},{"cve":"CVE-2024-0243","published":"2024-02-24","fixed":"0.1.0","kev":false}],"package":"PyPI:langchain"}}