{"cve":"CVE-2024-46946","nvd":{"published":"2024-09-19T05:15:11.857","modified":"2026-06-17T07:56:14.343","status":"Analyzed","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).","cvss_v4":null,"cvss_v3":{"version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","score":9.8},"cwes":["CWE-20"],"references":["https://cwe.mitre.org/data/definitions/95.html","https://docs.sympy.org/latest/modules/codegen.html","https://gist.github.com/12end/68c0c58d2564ef4141bccd4651480820#file-cve-2024-46946-txt","https://github.com/langchain-ai/langchain/releases/tag/langchain-experimental%3D%3D0.3.0"],"products":["langchain:langchain-experimental"],"source":"nvd","synced_at":"2026-10-19T21:54:38.012257375+00:00"},"epss":{"cve":"CVE-2024-46946","score":0.01387,"percentile":0.7225,"date":"2026-10-31"},"kev":null,"osv":[{"id":"GHSA-p2qj-r53j-h3xj","url":"https://osv.dev/vulnerability/GHSA-p2qj-r53j-h3xj","summary":"LangChain Experimental Eval Injection vulnerability","modified":"2026-10-27T17:00:03.986872162Z","packages":[{"ecosystem":"PyPI","name":"langchain-experimental","purl":"pkg:pypi/langchain-experimental","ranges":[">=0.1.17 <=0.3.0"],"fixed":[]}]},{"id":"PYSEC-2026-374","url":"https://osv.dev/vulnerability/PYSEC-2026-374","summary":"LangChain Experimental Eval Injection vulnerability","modified":"2026-07-01T20:22:55.391040Z","packages":[{"ecosystem":"PyPI","name":"langchain-experimental","purl":"pkg:pypi/langchain-experimental","ranges":[">=0.1.17 <=0.3.0"],"fixed":[]}]}],"attribution":["This product uses the NVD API but is not endorsed or certified by the NVD.","EPSS scores: FIRST Exploit Prediction Scoring System, https://www.first.org/epss","Known exploited vulnerabilities: CISA Known Exploited Vulnerabilities Catalog, https://www.cisa.gov/known-exploited-vulnerabilities-catalog","Package advisories: OSV (https://osv.dev), from the GitHub Advisory Database, PyPA, Go, RustSec and other ecosystem databases, under CC-BY 4.0 or CC0","CVE records: the CVE Program's CVE List (https://www.cve.org), under its terms of use (https://www.cve.org/Legal/TermsOfUse). CVE is a registered trademark of The MITRE Corporation; this product is not affiliated with the CVE Program."]}