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

- Severity: Critical 9.8 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.39%, higher than 73% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2024-09-19T00:00:00.000Z
- Modified: 2026-10-27T17:00:03.986Z
- Also known as: GHSA-p2qj-r53j-h3xj, PYSEC-2026-374
- Weaknesses: CWE-20, CWE-95
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: mitre

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

(As written by CVE List.)

## Affected

- Unspecified product: n/a
- langchain langchain_experimental: from 0.1.17 up to 0.3.0
- langchain-experimental (PyPI): from 0.1.17 up to 0.3.0
- langchain langchain-experimental: from 0.1.17 up to 0.3.0

## Every score

- CISA-ADP: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- GitHub: CVSS:4.0 Critical `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`
- PyPA Advisory Database: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- PyPA Advisory Database: CVSS:4.0 `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`

## References

- <https://gist.github.com/12end/68c0c58d2564ef4141bccd4651480820#file-cve-2024-46946-txt> (exploit, third-party-advisory, web)
- <https://cwe.mitre.org/data/definitions/95.html> (not-applicable)
- <https://github.com/langchain-ai/langchain/releases/tag/langchain-experimental%3D%3D0.3.0> (release-notes, web)
- <https://docs.sympy.org/latest/modules/codegen.html> (technical-description, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2024-46946> (advisory)
- <https://github.com/langchain-ai/langchain> (package)
- <https://github.com/pypa/advisory-database/tree/main/vulns/langchain-experimental/PYSEC-2026-374.yaml> (web)
- <https://pypi.org/project/langchain-experimental> (package, web)
- <https://github.com/advisories/GHSA-p2qj-r53j-h3xj> (advisory)

## Sources

- CVE List: [CVE-2024-46946](https://www.cve.org/CVERecord?id=CVE-2024-46946), CVE Terms of Use, modified 2024-09-19
- GitHub Advisory Database: [GHSA-p2qj-r53j-h3xj](https://github.com/advisories/GHSA-p2qj-r53j-h3xj), CC-BY-4.0, modified 2026-10-27
- NVD: [CVE-2024-46946](https://nvd.nist.gov/vuln/detail/CVE-2024-46946), Public domain, modified 2026-06-17
- PyPA Advisory Database: [PYSEC-2026-374](https://osv.dev/vulnerability/PYSEC-2026-374), CC-BY-4.0, modified 2026-07-01

---

Page: https://cve.day/CVE-2024-46946 · Whole record: https://cve.day/CVE-2024-46946.json · Rebuilt by cve.day 2026-11-25T22:58:45.622Z
