CVE-2024-46946

Published Sep 19, 2024 CVSS 3.1 · 9.8 Critical EPSS 1.4% KEV · Not listed
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).

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-p2qj-r53j-h3xj LangChain Experimental Eval Injection vulnerability
History
Type Values Removed Values Added
First Time appeared Langchain langchain-experimental
CPEs cpe:2.3:a:langchain:langchain-experimental:*:*:*:*:*:*:*:*
Vendors & Products Langchain langchain-experimental
Type Values Removed Values Added
Metrics epss

{'score': 0.0026}

epss

{'score': 0.00269}

Type Values Removed Values Added
First Time appeared Langchain
Langchain langchain Experimental
Weaknesses CWE-20
CPEs cpe:2.3:a:langchain:langchain_experimental:*:*:*:*:*:python:*:*
Vendors & Products Langchain
Langchain langchain Experimental
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
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).
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Sep 19, 2024, 2:06 PM
Reserved
Sep 15, 2024, 12:00 AM
Status
Analyzed
Published
Sep 19, 2024, 5:15 AM
Modified
Jun 17, 2026, 7:56 AM