# CVE-2024-46946

- Priority: **Prioritise**
- Reason: Public exploit (GitHub, Date unknown)
- Next step: Check applicability and the vendor advisory: no fix release is recorded here
- Status: published
- Published: 2024-09-19 · Modified: 2024-09-19
- Aliases: GHSA-p2qj-r53j-h3xj, PYSEC-2026-374
- Record: https://cvemate.com/vulnerability/CVE-2024-46946 · JSON: https://cvemate.com/vulnerability/CVE-2024-46946/json

## Description

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

## Signals

- CVSS: 9.8 critical (v3.1, CVE.org) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.387%, percentile 73.184%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (github)

## Affected

- langchain langchain-experimental: ≥ 0.1.17, ≤ 0.3.0
- PyPI langchain-experimental (PyPI): ≥ 0.1.17, ≤ 0.3.0

## References

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

---

Data as of 2026-12-05T13:17:54.130Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
