CVE-2023-39631: langchain Code Injection
CVSS: 9.8v3.1CriticalModified
AliasesGHSA-f73w-4m7g-ch9xPYSEC-2023-162PYSEC-2023-163
Published 01-09-2023Last modified 01-10-2024
Vulnerability summary
CVE-2023-39631 is a critical (CVSS 9.8) Code Injection vulnerability in langchain. EPSS estimates a 1.60% chance of exploitation in the next 30 days, higher than 75.4% of scored vulnerabilities. 2 public exploits are recorded.
CVSS score
9.8/10
010
Critical · v3.1 (NVD)EPSS score
1.60%
0%100%
Low · 0.00 pp in 30 daysKEVNot listedIn no KEV catalog
RansomwareNone recordedNo known use recorded
Public exploits2github
Timeline
- 01-09-2023PublishedVulnerability first disclosed.
- 01-10-2024Last modifiedVulnerability information updated.
Description
An issue in LanChain-ai Langchain v.0.0.245 allows a remote attacker to execute arbitrary code via the evaluate function in the numexpr library.
CVSS metrics
2 scores · 2 sources · 1 versionCritical 9.8Preferred score · NVD (NIST)
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:HSourcesAll 2 agree
- OSV · PypiEcosystem advisory · calculated9.8CriticalCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
EPSS trend
Probability
1.60%
Chance of exploitation in the next 30 days
Percentile
75%
Versus all other CVEs
30-day change
0.00 pp
From 1.60% on 19-09-2026
19-09-202619-10-2026
EPSS score1.60%
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
2 foundLangchain
Maturity: poc
Numexpr
Maturity: poc
Weaknesses
CWE · root causeAffected systems
PyPI2 products
- langchain< 0.0.308
- numexpr< 2.8.5
Langchain1 product
- langchain0.0.245
2 vendors · 3 products
References
10 links- github.com/langchain-ai/langchain/issues/8363WEBREPORTEVIDENCEFIXExploitIssue TrackingPatchThird Party Advisory
- github.com/pydata/numexpr/issues/442WEBFIXEVIDENCEREPORTExploitIssue TrackingPatchThird Party Advisory