CVE-2024-46946 LangChain Experimental Eval Injection vulnerability
CriticalCVSS 9.8
EPSS 1.4%
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- Proof of concept public · automatable: yes · technical impact: total
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).
Upgrade path
3 packages: 3 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| @langchain langchain experimental | >= 0.1.17, <= 0.3.0 | after 0.3.0 | Fixed |
| @langchain langchain-experimental | >= 0.1.17, <= 0.3.0 | after 0.3.0 | Fixed |
| pypi langchain-experimental(PyPI) | = 0.3.0; = 0.3.0.dev1; >= 0.1.17, <= 0.3.0 | after 0.3.0 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| pypi langchain-experimental(PyPI) | >= 0.1.17, <= 0.3.0 | No fix listed |
| pypi langchain-experimental(PyPI) | = 0.3.0 | No fix listed |
| pypi langchain-experimental(PyPI) | = 0.3.0.dev1 | No fix listed |
| @langchain langchain experimental | >= 0.1.17, <= 0.3.0 | No fix listed |
| @langchain langchain-experimental | >= 0.1.17, <= 0.3.0 | No fix listed |
References
- nvd.nist.gov third-party-advisory vendor-advisory
- docs.sympy.org technical-description
- gist.github.com exploit third-party-advisory
- github.com product
- github.com release-notes
- github.com
- pypi.org product
- github.com vendor-advisory
- cwe.mitre.org not-applicable