LangChain Experimental Eval Injection vulnerability
CVE-2024-46946 · GHSA-p2qj-r53j-h3xj · published 2024-09-19 · updated 2026-10-27
- Severity
- Critical
- CVSS score
- 9.8
- Chance of exploitation (EPSS)
- 1.4%
- Fixed in
- No fix yet
- Exploitation Public proof of concept
- Automatable Yes
- Technical impact Total
- CISA SSVC
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).
No fixed release is listed yet for langchain-experimental. Follow the source advisory for updates, and until one ships:
General guidance from ShieldPi, not a vendor fix
- Command or code injection. Remove or disable the affected server or tool, or run it in a sandbox with no secrets in its environment.
| Package | Registry | Affected | Fixed in |
|---|---|---|---|
| langchain-experimental | PyPI | >= 0.1.17, <= 0.3.0 | No fix yet |
- CriticalUnauthenticated Remote Code Execution in Langflow via Public Flow Build EndpointlangflowExploited
- CriticalRay is vulnerable to Critical RCE via Safari & Firefox Browsers through DNS Rebinding AttackrayExploited
- CriticalLangflow Unauth RCElangflow, langflow-baseExploited
- HighLiteLLM: Authenticated command execution via MCP stdio test endpointslitellmExploited
- CriticalMLflow vulnerable to remote code execution on unauthenticated servers via third-party scorer deserialization importing caller-placed artifacmlflow
- CriticalAgno: Arbitrary code execution via `eval()` on `field_type` in `FunctionCall`agno
- Criticallangchain-experimental vulnerable to Arbitrary Code Executionlangchain-experimental
- CriticalLangChain Experimental vulnerable to arbitrary code executionlangchain-experimental
- Criticallangchain_experimental vulnerable to arbitrary code execution via PALChain in the python exec methodlangchain-experimental
- Highlangchain_experimental Code Execution via Python REPL accesslangchain-experimental
The impact, patch and workaround text comes from the advisory, shortened (GitHub Advisory Database, CC BY 4.0). Proof-of-concept and reproduction sections and code are left out; the original advisory has them.