# CVE-2023-36188: langchain vulnerable to arbitrary code execution

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.88%, higher than 80% of CVEs (2026-12-01)
- Public exploit code or proof of concept: 2 links below, marked "exploit"
- Published: 2023-07-06T00:00:00.000Z
- Modified: 2026-07-06T15:00:09.441Z
- Also known as: GHSA-57fc-8q82-gfp3, PYSEC-2023-109
- Weaknesses: CWE-74
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

## Description

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.

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- langchain (PyPI): before 0.0.247
- langchain langchain: 0.0.64

## Every score

- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/hwchase17/langchain/issues/5872> (exploit)
- <https://github.com/langchain-ai/langchain/issues/5872> (exploit, evidence, web)
- <https://github.com/hwchase17/langchain/pull/6003> (patch)
- <https://nvd.nist.gov/vuln/detail/CVE-2023-36188> (advisory)
- <https://github.com/langchain-ai/langchain/pull/6003> (web)
- <https://github.com/langchain-ai/langchain/pull/8425> (fix, web)
- <https://github.com/langchain-ai/langchain/commit/e294ba475a355feb95003ed8f1a2b99942509a9e> (web)
- <https://github.com/advisories/GHSA-57fc-8q82-gfp3> (advisory)
- <https://github.com/langchain-ai/langchain> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-109.yaml> (web)

## Sources

- CVE List: [CVE-2023-36188](https://www.cve.org/CVERecord?id=CVE-2023-36188), CVE Terms of Use, modified 2024-11-19
- GitHub Advisory Database: [GHSA-57fc-8q82-gfp3](https://github.com/advisories/GHSA-57fc-8q82-gfp3), CC-BY-4.0, modified 2026-07-06
- NVD: [CVE-2023-36188](https://nvd.nist.gov/vuln/detail/CVE-2023-36188), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2023-109](https://osv.dev/vulnerability/PYSEC-2023-109), CC-BY-4.0, modified 2026-06-10

---

Page: https://cve.day/CVE-2023-36188 · Whole record: https://cve.day/CVE-2023-36188.json · Rebuilt by cve.day 2026-11-25T22:58:25.466Z
