{"id":"CVE-2023-38860","aliases":["GHSA-fj32-q626-pjjc","PYSEC-2023-145"],"url":"https://o3.security/vulnerability/CVE-2023-38860","summary":"LangChain vulnerable to arbitrary code execution","details":"An issue in LangChain prior to v.0.0.247 allows a remote attacker to execute arbitrary code via the prompt parameter.","published":"2023-08-15T00:00:00Z","modified":"2026-08-12T03:51:48.071117485Z","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":{"score":0.01417,"percentile":0.70329,"asOf":"2026-08-23"},"cisaKev":null,"exploitsKnown":1,"affectedPackages":[{"ecosystem":"PyPI","name":"langchain","fixedVersion":"0.0.247"}],"fix":{"url":"https://github.com/langchain-ai/langchain/pull/8092","label":"langchain-ai/langchain#8092"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/38xxx/CVE-2023-38860.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-38860"},{"type":"REPORT","url":"https://github.com/hwchase17/langchain/issues/7641"},{"type":"WEB","url":"https://github.com/langchain-ai/langchain/issues/7641"},{"type":"WEB","url":"https://github.com/langchain-ai/langchain/pull/8092"},{"type":"WEB","url":"https://github.com/langchain-ai/langchain/pull/8425"},{"type":"WEB","url":"https://github.com/langchain-ai/langchain/commit/d353d668e4b0514122a443cef91de7f76fea4245"},{"type":"WEB","url":"https://github.com/langchain-ai/langchain/commit/fab24457bcf8ede882abd11419769c92bc4e7751"},{"type":"PACKAGE","url":"https://github.com/hwchase17/langchain"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-145.yaml"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:48.071117485Z"}}