{"id":"CVE-2023-36095","aliases":["GHSA-gwqq-6vq7-5j86","PYSEC-2023-138"],"url":"https://o3.security/vulnerability/CVE-2023-36095","summary":"langchain Code Injection vulnerability","details":"An issue in Harrison Chase langchain v.0.0.194 allows an attacker to execute arbitrary code via the python exec calls in the PALChain, affected functions include from_math_prompt and from_colored_object_prompt.","published":"2023-08-05T00:00:00Z","modified":"2026-08-12T03:51:30.008255594Z","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.236"}],"fix":{"url":"https://github.com/langchain-ai/langchain/pull/6003","label":"langchain-ai/langchain#6003"},"references":[{"type":"ADVISORY","url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2023/36xxx/CVE-2023-36095.json"},{"type":"ADVISORY","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-36095"},{"type":"REPORT","url":"https://github.com/langchain-ai/langchain/issues/5872"},{"type":"PACKAGE","url":"https://github.com/hwchase17/langchain"},{"type":"WEB","url":"https://github.com/langchain-ai/langchain/pull/6003"},{"type":"WEB","url":"https://github.com/langchain-ai/langchain/pull/7870"},{"type":"WEB","url":"https://github.com/langchain-ai/langchain/commit/8ba9835b925473655914f63822775679e03ea137"},{"type":"WEB","url":"https://github.com/langchain-ai/langchain/commit/e294ba475a355feb95003ed8f1a2b99942509a9e"},{"type":"PACKAGE","url":"https://github.com/langchain-ai/langchain"},{"type":"WEB","url":"https://github.com/langchain-ai/langchain/commits/v0.0.236?after=4d8b48bdb3f17c764c5c2e3c7140071603869e74+34&branch=v0.0.236&qualified_name=refs%2Ftags%2Fv0.0.236"},{"type":"WEB","url":"https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-138.yaml"},{"type":"WEB","url":"http://langchain.com"}],"provenance":{"sources":["OSV.dev","FIRST.org (EPSS)"],"lastVerified":"2026-08-12T03:51:30.008255594Z"}}