CVE-2024-46946: langchain langchain-experimental Improper Input Validation
Vulnerability summary
CVE-2024-46946 is a critical (CVSS 9.8) Improper Input Validation vulnerability in langchain langchain-experimental. EPSS estimates a 1.39% chance of exploitation in the next 30 days, higher than 71.8% of scored vulnerabilities. 1 public exploit is recorded.
Timeline
- 19-09-2024PublishedVulnerability first disclosed.
- 19-09-2024Last modifiedVulnerability information updated.
Description
langchain_experimental (aka LangChain Experimental) 0.1.17 through 0.3.0 for LangChain allows attackers to execute arbitrary code through sympy.sympify (which uses eval) in LLMSymbolicMathChain. LLMSymbolicMathChain was introduced in fcccde406dd9e9b05fc9babcbeb9ff527b0ec0c6 (2023-10-05).
CVSS metrics
4 scores · 3 sources · 2 versions- 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
1.39%
Chance of exploitation in the next 30 days
Percentile
72%
Versus all other CVEs
30-day change
0.00 pp
From 1.39% on 19-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
1 found68C0C58D2564Ef4141Bccd4651480820
Maturity: poc
Weaknesses
CWE · root causeAffected systems
Langchain1 product
- langchain-experimental≥ 0.1.17, ≤ 0.3.0
PyPI1 product
- langchain-experimental≥ 0.1.17, ≤ 0.3.0
2 vendors · 2 products
References
8 links- cwe.mitre.org/data/definitions/95.htmlNot Applicable