{"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 a JSON file to load_prompt. This is related to __subclasses__ or a template.","published":"2023-08-22T00:00:00Z","modified":"2026-08-07T11:49:38.299726691Z","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":2,"affectedPackages":[{"ecosystem":"PyPI","name":"langchain","fixedVersion":"0.0.312"}],"fix":null,"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"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-07T11:49:38.299726691Z"}}