CVE-2024-46946GHSA-p2qj-r53j-h3xjPYSEC-2026-374
langchain-experimental: LangChain Experimental Eval Injection vulnerability
n/a langchain-experimentalpipLibraries & packages
CVSS
9.3CriticalExploitationPublic exploit codeCISA's assessment says proof of concept code is public, assessed 19 Sep 2024. Not in the KEV catalogCISA via CVE List
Exploit odds (EPSS)1.39%Chance of exploitation activity in the next 30 days, higher than 72% of CVEs. Scored 27 Oct 2026FIRST EPSS
Fixed inNone listedNo source names a fixed version. Check the vendor advisory below
What fixes it
No source in this snapshot names a fixed version. The vendor advisories under References are the place to check.
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).
Text from CVE List
Affected versions 5
- langchain-experimental, pip>= 0.1.17, <= 0.3.0GitHub
- n/aaffected: n/aCVE List
- langchain-experimental, PyPIfrom 0.1.17, through 0.3.0OSV
- langchain-experimental, PyPI0.3.0OSV
- langchain-experimental, PyPI0.3.0.dev1OSV
References 8
- github.com/langchain-ai/langchain/releases/tag/langchain-experimental%3D%3D0.3.0Fixvia CVE List
- github.com/pypa/advisory-database/tree/main/vulns/langchain-experimental/PYSEC-2026-374.yamlAdvisoryvia GitHub
- github.com/advisories/GHSA-p2qj-r53j-h3xjAdvisoryvia GitHub
- nvd.nist.gov/vuln/detail/CVE-2024-46946Referencevia GitHub
- docs.sympy.org/latest/modules/codegen.htmlReferencevia CVE List
- gist.github.com/12end/68c0c58d2564ef4141bccd4651480820#file-cve-2024-46946-txtReferencevia CVE List
- pypi.org/project/langchain-experimentalReferencevia GitHub
- cwe.mitre.org/data/definitions/95.htmlReferencevia CVE List