{"id":"CVE-2023-36188","aliases":["CVE-2023-36188","GHSA-57fc-8q82-gfp3","PYSEC-2023-109"],"related":[],"kind":"vulnerability","state":"published","title":"langchain vulnerable to arbitrary code execution","summary":"An issue in langchain v.0.0.64 allows a remote attacker to execute arbitrary code via the PALChain parameter in the Python exec method.","summarySource":"cvelist","descriptions":[{"lang":"en","text":"An issue in langchain v.0.0.64 allows a remote attacker to execute arbitrary code via the PALChain parameter in the Python exec method.","source":"cvelist"},{"lang":"en","text":"An issue in langchain allows a remote attacker to execute arbitrary code via the PALChain parameter in the Python exec method.","format":"markdown","source":"ghsa"}],"published":"2023-07-06T00:00:00.000Z","modified":"2026-07-06T15:00:09.441Z","severity":{"scorer":"NVD","scheme":"CVSS: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,"rating":"CRITICAL"},"severities":[{"scorer":"GitHub","scheme":"CVSS: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,"rating":"CRITICAL"},{"scorer":"NVD","scheme":"CVSS: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,"rating":"CRITICAL"}],"cwes":["CWE-74"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.0.247"}],"ecosystem":"PyPI","package":"langchain","purl":"pkg:pypi/langchain","source":"ghsa"},{"ranges":[{"status":"affected","version":"0.0.64"}],"vendor":"langchain","product":"langchain","cpe":"cpe:2.3:a:langchain:langchain:0.0.64:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0","status":"affected","fixed":"0.0.247"}],"ecosystem":"PyPI","package":"langchain","purl":"pkg:pypi/langchain","source":"pysec"}],"references":[{"url":"https://github.com/hwchase17/langchain/issues/5872","tags":["exploit","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://github.com/hwchase17/langchain/pull/6003","tags":["patch","x-transferred"],"sources":["cvelist","nvd"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2023-36188","tags":["advisory"],"sources":["ghsa"]},{"url":"https://github.com/langchain-ai/langchain/issues/5872","tags":["evidence","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/langchain-ai/langchain/pull/6003","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/langchain-ai/langchain/pull/8425","tags":["fix","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/langchain-ai/langchain/commit/e294ba475a355feb95003ed8f1a2b99942509a9e","tags":["web"],"sources":["ghsa"]},{"url":"https://github.com/advisories/GHSA-57fc-8q82-gfp3","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/langchain-ai/langchain","tags":["package"],"sources":["ghsa"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-109.yaml","tags":["web"],"sources":["ghsa"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2024-11-19T19:03:12.158Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2023-36188","url":"https://www.cve.org/CVERecord?id=CVE-2023-36188","licence":"CVE Terms of Use","modified":"2024-11-19T19:03:23.673Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-57fc-8q82-gfp3","url":"https://github.com/advisories/GHSA-57fc-8q82-gfp3","licence":"CC-BY-4.0","modified":"2026-07-06T15:00:09.441Z"},{"source":"nvd","name":"NVD","id":"CVE-2023-36188","url":"https://nvd.nist.gov/vuln/detail/CVE-2023-36188","licence":"Public domain","modified":"2026-06-17T06:05:51.997Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2023-109","url":"https://osv.dev/vulnerability/PYSEC-2023-109","licence":"CC-BY-4.0","modified":"2026-06-10T17:01:09.326Z"}],"updatedAt":"2026-11-25T22:58:25.466Z","epss":{"score":0.0188,"percentile":0.80054,"date":"2026-12-01T12:00:22.000Z"}}