Skip to content
CriticalVulnerabilityLLM-specific

CVE-2024-46946: LangChain Experimental arbitrary code execution through LLMSymbolicMathChain

Identifier
CVE-2024-46946
Published
Record updated
View JSON
Affected
  • langchain-experimental >= 0.1.17, <= 0.3.0
Fixed in
No fixed version was stated when the source was last read.
Known exploitation
Not listed in the CISA Known Exploited Vulnerabilities catalog at the last check.
EPSS
1.4%

Summary

CVE-2024-46946 affects langchain_experimental (LangChain Experimental) versions 0.1.17 through 0.3.0. The flaw lies in LLMSymbolicMathChain, which passes input to sympy.sympify, which uses eval, allowing attackers to execute arbitrary code. The chain was introduced on 2023-10-05, and NVD has not yet provided an assessment.

Mitigation

Release notes for langchain-experimental==0.3.0 are referenced in the source, but the source does not state the fix or a workaround in its text. The source text does not describe a mitigation; see https://github.com/langchain-ai/langchain/releases/tag/langchain-experimental%3D%3D0.3.0 for release notes.