PT-2024-32293 · Unknown+1 · Langchain Experimental+1

·

CVE-2024-46946

·

Published

2024-09-18

·

Updated

2026-06-29

CVSS v3.1

9.8

Critical

VectorAV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Name of the Vulnerable Software and Affected Versions langchain experimental versions 0.1.17 through 0.3.0
Description The issue allows attackers to execute arbitrary code through sympy.sympify (which uses eval) in LLMSymbolicMathChain. LLMSymbolicMathChain was introduced in a specific commit on October 5, 2023.
Recommendations For versions 0.1.17 through 0.3.0, consider disabling the sympy.sympify function until a patch is available to prevent arbitrary code execution. At the moment, there is no information about a newer version that contains a fix for this vulnerability.

Exploit

Eval Injection

RCE

Found an issue in the description? Have something to add? Feel free to write us 👾

Weakness Enumeration

Related Identifiers

CVE-2024-46946
GHSA-P2QJ-R53J-H3XJ
PYSEC-2026-374

Affected Products

Langchain Experimental
Sympy