{"cve":"CVE-2023-39659","nvd":{"published":"2023-08-15T17:15:12.930","modified":"2026-06-17T06:12:40.930","status":"Modified","description":"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.","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/langchain-ai/langchain/issues/7700","https://github.com/langchain-ai/langchain/pull/5640","https://github.com/langchain-ai/langchain/issues/7700","https://github.com/langchain-ai/langchain/pull/5640"],"products":["langchain:langchain"],"source":"nvd","synced_at":"2026-10-19T21:39:14.809778102+00:00"},"epss":{"cve":"CVE-2023-39659","score":0.01534,"percentile":0.74815,"date":"2026-11-01"},"kev":null,"osv":[{"id":"GHSA-prgp-w7vf-ch62","url":"https://osv.dev/vulnerability/GHSA-prgp-w7vf-ch62","summary":"LangChain vulnerable to arbitrary code execution","modified":"2024-09-27T21:33:25.955251Z","packages":[{"ecosystem":"PyPI","name":"langchain","purl":"pkg:pypi/langchain","ranges":["<0.0.325"],"fixed":["0.0.325"]}]},{"id":"PYSEC-2023-147","url":"https://osv.dev/vulnerability/PYSEC-2023-147","summary":"","modified":"2026-06-10T17:02:00.020660387Z","packages":[{"ecosystem":"PyPI","name":"langchain","purl":"pkg:pypi/langchain","ranges":["<0.0.233"],"fixed":["0.0.233"]}]}],"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."]}