CVE-2023-36188 json
langchain vulnerable to arbitrary code execution
published 2023-07-06 3 y ago modified 2026-07-06 4 mo ago also GHSA-57fc-8q82-gfp3 , PYSEC-2023-109 , EUVD-2023-0110
- cvss
- 9.8
- version 3.1, NVD
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 1.9%
- EPSS 1.9% chance of exploitation in 30 days, percentile 79%
- public exploits
- 0
- none known
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.
Patch / fix
- pypi langchain 0.0.247
- github.com/langchain-ai/langchain@e294ba4 commit
- github.com/hwchase17/langchain#6003 pull request
- github.com/langchain-ai/langchain#6003 pull request
- github.com/langchain-ai/langchain#8425 pull request
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- total
- Assessed
- 23 mo ago
Exploit prediction
1.88% chance of exploitation in the next 30 days, higher than 79% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/hwchase17/langchain/issues/5872 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| GitHub | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
Affected packages
| ecosystem | package | affected | fixed in |
|---|---|---|---|
| pypi | langchain | <0.0.247 |
0.0.247 |
Classification
- Weakness
-
- CWE-74 Improper Neutralization of Special Elements in Output Used by a Downstream Component
References
-
github.com
/hwchase17/langchain/pull/6003
patch
-
github.com
/langchain-ai/langchain/pull/6003
web
-
github.com
/langchain-ai/langchain/pull/8425
web, patch
-
github.com
/langchain-ai/langchain/commit/e294ba475a355feb95003ed8f1a2b99942509a9e
web
-
github.com
/hwchase17/langchain/issues/5872
exploit
-
nvd.nist.gov
/vuln/detail/CVE-2023-36188
advisory
-
github.com
/langchain-ai/langchain/issues/5872
web, evidence
-
github.com
/advisories/GHSA-57fc-8q82-gfp3
advisory
-
github.com
/langchain-ai/langchain
package
-
github.com
/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-109.yaml
web
Sources
- CVE List CVE-2023-36188
- GitHub Advisory GHSA-57fc-8q82-gfp3
- NVD CVE-2023-36188
- OSV PYSEC-2023-109
Fencer Vulns keeps one entry per vulnerability: the CVE id wins, then GHSA, and records that alias each other are merged, except that two CVEs always keep separate entries. The same data is available as JSON.