1. Home
  2. Vulnerabilities
  3. CVE-2024-46946

CVE-2024-46946

langchain_experimental (aka LangChain Experimental) 0.1.17 through 0.3.0 for LangChain allows attackers to…

Published 19 Sept 2024 · modified 17 Jun 2026 · Sources: NVD, CNA (vendor or assigner), CERT-FR, EPSS (FIRST)

Medium 60/100

Summary

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).

Affected products and versions

Langchain (1 line(s))
Langchain
ProductVersionsFixed inSource
Langchain experimental from 0.1.17 (included) to 0.3.0 (included) — NVD
Pypi (1 line(s))
Pypi
ProductVersionsFixed inSource
langchain-experimental from 0.1.17 (included) to 0.3.0 (included) — GitHub Advisory

Fix

Not provided by the vendor.

Workaround

No workaround provided.

Check whether you are affected

No verification method provided.

Timeline

  1. — CVE published (cve)

CERT-FR advisories

References

Data provenance

Status
NVD
Publication date
NVD
Description
NVD
CVSS score
CNA (vendor or assigner)
Weakness (CWE)
CNA (vendor or assigner)
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (CVSS 3.1, CNA:134c704f-9b21-4f2e-91b3-4a467353bcc0)
Weakness
CWE-20 · Validation d'entrée (générique)

How this data is obtained and calculated