CVE-2023-34541 json
Langchain vulnerable to arbitrary code execution
published 2023-06-20 3 y ago modified 2026-06-17 4 mo ago also GHSA-6643-h7h5-x9wh , PYSEC-2023-92 , EUVD-2023-0121
- cvss
- 9.8
- version 3.1, CNA
- cisa kev
- Not listed
- not in CISA's catalog
- epss
- 0.9%
- EPSS 0.9% chance of exploitation in 30 days, percentile 61%
- public exploits
- 0
- none known
Summary
Langchain 0.0.171 is vulnerable to Arbitrary code execution in load_prompt.
Patch / fix
- pypi langchain 0.0.247
- github.com/langchain-ai/langchain@fab2445 commit
- github.com/langchain-ai/langchain#8425 pull request
CISA SSVC
- Exploitation
- Proof of concept is public
- Automatable
- yes
- Technical impact
- total
- Assessed
- 22 mo ago
Exploit prediction
0.94% chance of exploitation in the next 30 days, higher than 61% of all scored CVEs (FIRST EPSS, 2026-11-08).
Exploits and checks
- github.com https://github.com/hwchase17/langchain/issues/4849 referenced PoC, tagged "exploit" by a source, unverified
CVSS scores
| assigned by | version | score | vector |
|---|---|---|---|
| CISA ADP | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| NVD | 3.1 | 9.8 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H |
| CNA | 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 |
References
-
github.com
/langchain-ai/langchain/pull/8425
web
-
github.com
/langchain-ai/langchain/commit/fab24457bcf8ede882abd11419769c92bc4e7751
web
-
github.com
/hwchase17/langchain/issues/4849
exploit, issue-tracking
-
nvd.nist.gov
/vuln/detail/CVE-2023-34541
advisory
-
github.com
/langchain-ai/langchain/issues/4849
web, evidence, report
-
github.com
/langchain-ai/langchain/issues/4849#issuecomment-1697896569
web
-
github.com
/langchain-ai/langchain
package
-
github.com
/pypa/advisory-database/tree/main/vulns/langchain/PYSEC-2023-92.yaml
web
-
github.com
/advisories/GHSA-6643-h7h5-x9wh
advisory
Sources
- CVE List CVE-2023-34541
- GitHub Advisory GHSA-6643-h7h5-x9wh
- NVD CVE-2023-34541
- OSV PYSEC-2023-92
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.