Home / Langchain / Langchain-experimental / CVE-2024-46946
CVE-2024-46946: is it exploited, and which versions of Langchain-experimental are affected and fixed?
CVE-2024-46946 is an improper input validation vulnerability in Langchain-experimental. It is not known to be exploited: it is not in CISA's Known Exploited Vulnerabilities catalog (catalog 2026.11.30, read December 3, 2026, 17:39 UTC). Affected: langchain-experimental through 0.3.0 (GitHub advisory GHSA-p2qj-r53j-h3xj). No fixed version is listed in the sources yet; check the vendor advisory. Severity: Critical (9.8, CVSS 3.1, from CISA-ADP).
Data checked December 3, 2026: last read CISA KEV December 3, 2026, 17:39 UTC, CVE record November 19, 2026, 07:11 UTC and NVD November 19, 2026, 07:26 UTC.
What is CVE-2024-46946?
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).
From the CVE record by mitre, last updated September 19, 2024, 14:06 UTC.
Which packages are affected, and in which version is each fixed?
| Ecosystem | Package | Affected | Fixed in | Advisory |
|---|---|---|---|---|
| PyPI | langchain-experimental | >= 0.1.17, <= 0.3.0 | none listed | GHSA-p2qj-r53j-h3xj |
GitHub Advisory Database, reviewed advisories (CC BY 4.0); advisory updated October 27, 2026. Summary: LangChain Experimental Eval Injection vulnerability.
Which products and versions does the NVD list as affected?
| Vendor | Product | Versions | Type |
|---|---|---|---|
| langchain | langchain-experimental | from 0.1.17 through 0.3.0 | application |
NVD analysis (status Analyzed), last modified June 17, 2026, 07:56 UTC.
How severe is CVE-2024-46946?
| Score | Version | Vector | Source |
|---|---|---|---|
| Critical 9.8 | CVSS 3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H | CISA-ADP |
Each score is shown as its source gave it: the CNA that wrote the record, CISA's ADP (vulnrichment) and the NVD. They can differ.
What the ratings mean: in CVSS 3 and 4, scores run from 0 to 10, with Low 0.1 to 3.9, Medium 4.0 to 6.9, High 7.0 to 8.9 and Critical 9.0 to 10.0. CVSS 2 has no Critical band: its High runs from 7.0 to 10.0. The vector lists how the flaw is reached (network, local), what an attacker needs (privileges, a user's click) and what it can harm.
Is CVE-2024-46946 exploited in the wild?
- CISA KEV
- Not listed (catalog 2026.11.30)
- CISA SSVC
- Exploitation: poc; automatable: yes; technical impact: total (CISA ADP, September 19, 2024)
- EPSS
- 1.39% probability of exploitation activity in the next 30 days, percentile 73.2 (FIRST EPSS, scores of December 3, 2026)
What kind of flaw is it?
- CWE-20 Improper Input Validation
- CWE-95 Improper Neutralization of Directives in Dynamically Evaluated Code
Where are the vendor advisories and 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
When was it published, and where is the official record?
- Reserved
- September 15, 2024
- Published
- September 19, 2024, 00:00 UTC
- CVE record updated
- September 19, 2024, 14:06 UTC by mitre
- NVD
- Analyzed, last modified June 17, 2026, 07:56 UTC
- Last checked
- CVE list November 19, 2026, 07:11 UTC; NVD November 19, 2026, 07:26 UTC; KEV December 3, 2026, 17:39 UTC; EPSS December 3, 2026
- Official record
- cve.org · NVD
What other CVEs affect Langchain-experimental?
- Jun 16, 2024CVE-2024-38459 Langchain-experimental: insecure default permissions
- Feb 26, 2024CVE-2024-27444 Langchain-experimental: exposed Dangerous Method or Function
- Oct 9, 2023CVE-2023-44467 Langchain Experimental: n/a
Every CVE in Langchain-experimental
Questions about CVE-2024-46946
Is CVE-2024-46946 exploited in the wild?
Not as far as CISA knows: it is not in the Known Exploited Vulnerabilities catalog, read December 3, 2026, 17:39 UTC. FIRST's EPSS gives it a 1.39% chance of exploitation activity in the next 30 days (scores of December 3, 2026).
Which versions of Langchain-experimental are affected by CVE-2024-46946?
langchain-experimental through 0.3.0, per the GitHub advisory GHSA-p2qj-r53j-h3xj. The tables above give every range the sources list.
Which version fixes CVE-2024-46946?
None of the sources (the CVE record, the NVD and GitHub's reviewed advisories) lists a fixed version yet. Check the vendor's advisory in the references.
How severe is CVE-2024-46946?
Critical (9.8, CVSS 3.1, from CISA-ADP). The severity table above shows each score with its source.
Where is the official record of CVE-2024-46946?
The CVE Program's record is at cve.org and the NVD's at nvd.nist.gov. For a fix, the vendor's own advisory is the one to follow.