{"id":"CVE-2023-36281","aliases":["GHSA-7gfq-f96f-g85j","PYSEC-2023-151"],"url":"https://o3.security/vulnerability/CVE-2023-36281","summary":"langchain vulnerable to arbitrary code execution","details":"An issue in langchain v.0.0.171 allows a remote attacker to execute arbitrary code via the via the a json file to the `load_prompt` parameter. This is related to `__subclasses__` or a template.","published":"2023-08-22T00:00:00Z","modified":"2026-08-12T03:51:25.297803123Z","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.0344,"percentile":0.88055,"asOf":"2026-08-24"},"cisaKev":null,"exploitsKnown":2,"affectedPackages":[{"ecosystem":"PyPI","name":"langchain","fixedVersion":"0.0.312"}],"fix":{"url":"https://github.com/langchain-ai/langchain/pull/10252","label":"langchain-ai/langchain#10252"},"references":[{"type":"WEB","url":"https://aisec.today/LangChain-2e6244a313dd46139c5ef28cbcab9e55"},{"type":"WEB","url":"https://github.com/langchain-ai/langchain/releases/tag/v0.0.312"},{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/36xxx/CVE-2023-36281.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-36281"},{"type":"REPORT","url":"https://github.com/hwchase17/langchain/issues/4394"},{"type":"WEB","url":"https://github.com/langchain-ai/langchain/pull/10252"},{"type":"WEB","url":"https://github.com/langchain-ai/langchain/commit/22abeb9f6cc555591bf8e92b5e328e43aa07ff6c"},{"type":"PACKAGE","url":"https://github.com/langchain-ai/langchain"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-151.yaml"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:25.297803123Z"}}