{"id":"CVE-2023-39659","aliases":["GHSA-prgp-w7vf-ch62","PYSEC-2023-147"],"url":"https://o3.security/vulnerability/CVE-2023-39659","summary":"LangChain vulnerable to arbitrary code execution","details":"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.","published":"2023-08-15T00:00:00Z","modified":"2026-08-07T11:31:29.805918813Z","cvss":{"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"},"epss":null,"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"PyPI","name":"langchain","fixedVersion":"0.0.325"}],"fix":{"url":"https://github.com/langchain-ai/langchain/pull/5640","label":"langchain-ai/langchain#5640"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/39xxx/CVE-2023-39659.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-39659"},{"type":"REPORT","url":"https://github.com/langchain-ai/langchain/issues/7700"},{"type":"FIX","url":"https://github.com/langchain-ai/langchain/pull/5640"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-07T11:31:29.805918813Z"}}