CVE-2023-36281: langchain Code Injection
CVSS: 9.8v3.1CriticalModified
AliasesGHSA-7gfq-f96f-g85jPYSEC-2023-151
Published 22-08-2023Last modified 15-10-2024
Vulnerability summary
CVE-2023-36281 is a critical (CVSS 9.8) Code Injection vulnerability in langchain. EPSS estimates a 3.44% chance of exploitation in the next 30 days, higher than 88.8% of scored vulnerabilities. 2 public exploits are recorded.
CVSS score
9.8/10
010
Critical · v3.1 (CVE.org)EPSS score
3.44%
0%100%
Low · 0.00 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits2github, reference
Timeline
- 22-08-2023PublishedVulnerability first disclosed.
- 15-10-2024Last modifiedVulnerability information updated.
Description
An issue in langchain v.0.0.171 allows a remote attacker to execute arbitrary code via a JSON file to load_prompt. This is related to __subclasses__ or a template.
CVSS metrics
3 scores · 3 sources · 1 versionCritical 9.8Preferred score · CVE.org (CNA)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HSourcesAll 3 agree
- OSV · PypiEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- NVDNIST9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
3.44%
Chance of exploitation in the next 30 days
Percentile
89%
Versus all other CVEs
30-day change
0.00 pp
From 3.44% on 19-09-2026
19-09-202619-10-2026
EPSS score3.44%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
2 foundLangchain
Maturity: poc
Exploit Reference (aisec.today)
Maturity: unknown
Weaknesses
CWE · root causeAffected systems
Langchain1 product
- langchain0.0.171
PyPI1 product
- langchain< 0.0.312 | < 0.0.171
2 vendors · 2 products
References
9 links- github.com/hwchase17/langchain/issues/4394WEBEVIDENCEREPORTAdvisoryExploitIssue TrackingVendor Advisory