---
title: "CVE-2024-46946: LangChain Experimental Eval Injection vulnerability"
url: https://erroneo.us/security/cve/CVE-2024-46946/
description: "CVE-2024-46946 (langchain-experimental (PyPI)): langchainexperimental (aka LangChain Experimental) 0.1.17 through 0.3.0 for LangChain allows attackers to…"
type: vulnerability-record
section: "Security Digest"
date_published: 2024-09-19
date_modified: 2024-09-19
publisher: erroneo.us
author: erroneo.us Security Desk
cve: "CVE-2024-46946"
kev: false
cvss: 9.3
epss: 0.01387
license: All rights reserved. Quote with attribution and a link.
---

# CVE-2024-46946: LangChain Experimental Eval Injection vulnerability

**Signal:** Critical and remotely reachable. No known exploitation yet, but it is network-reachable without credentials. (Computed from CISA KEV, EPSS and CVSS; not an editorial verdict.)

## Should you act?

- Not in CISA KEV , but CISA’s SSVC assessment records a public proof-of-concept, so attack code exists.
- EPSS 1.4% , percentile 72: FIRST’s model estimates a 1.4% chance of exploitation activity in the next 30 days, higher than 72% of all scored CVEs (moderate). EPSS is a probability, not a verdict.
- Remotely reachable with no login and no user interaction. If the vulnerable service is exposed to the internet, prioritize it.
- Only applies if your dependency tree includes langchain-experimental (PyPI) >= 0.1.17, <= 0.3.0, no fixed version listed . Check your lockfile, including transitive dependencies.

## What it is

langchainexperimental (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 packages

- PyPI `langchain-experimental` >= 0.1.17, <= 0.3.0 → fixed: none listed

## Affected products (CVE record)

- n/a n/a: see advisory

## Severity

- CISA-ADP CVSS 3.1: 9.8 `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub CVSS 4.0: 9.3 `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N`

## Exploitation

- CISA KEV: not listed (no confirmed in-the-wild exploitation known to CISA).
- CISA SSVC assessment: exploitation poc , automatable yes , technical impact total .
- FIRST EPSS (model of 2026-10-21): 1.39% probability of exploitation activity in the next 30 days; percentile 72.

## Sources

- [GitHub Advisory GHSA-p2qj-r53j-h3xj](https://github.com/advisories/GHSA-p2qj-r53j-h3xj)
- [CVE.org record CVE-2024-46946](https://www.cve.org/CVERecord?id=CVE-2024-46946)
- [NVD entry CVE-2024-46946](https://nvd.nist.gov/vuln/detail/CVE-2024-46946)
- [cwe.mitre.org](https://cwe.mitre.org/data/definitions/95.html)
- [github.com](https://github.com/langchain-ai/langchain/releases/tag/langchain-experimental%3D%3D0.3.0)
- [docs.sympy.org](https://docs.sympy.org/latest/modules/codegen.html)
- [gist.github.com](https://gist.github.com/12end/68c0c58d2564ef4141bccd4651480820#file-cve-2024-46946-txt)

---
Source page: https://erroneo.us/security/cve/CVE-2024-46946/ · Security Digest: https://erroneo.us/security/ · More: https://erroneo.us/llms.txt
