{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2024-46946","published":"2024-09-19T05:15:11.857000Z","last_modified":"2026-06-17T07:56:14.343000Z","status":"Analyzed","cvss":{"version":"3.1","score":9.8,"severity":"CRITICAL","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","source":"134c704f-9b21-4f2e-91b3-4a467353bcc0","primary":false},"auth":false,"cwes":["CWE-20"],"cpes":[{"criteria":"cpe:2.3:a:langchain:langchain-experimental:*:*:*:*:*:*:*:*","part":"a","vendor":"langchain","product":"langchain-experimental","version_start_including":"0.1.17","version_end_including":"0.3.0"}],"cpes_truncated":false,"vendors":["langchain"],"products":["langchain/langchain-experimental"],"ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"total"},"epss":{"score":0.02055,"percentile":0.81963,"date":"2026-11-30","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-p2qj-r53j-h3xj","ecosystem":"PyPI","name":"langchain-experimental","purl":"pkg:pypi/langchain-experimental","ranges":[{"introduced":"0.1.17","last_affected":"0.3.0"}],"versions":["0.3.0","0.3.0.dev1"],"versions_truncated":false},{"advisory":"PYSEC-2026-374","ecosystem":"PyPI","name":"langchain-experimental","purl":"pkg:pypi/langchain-experimental","ranges":[{"introduced":"0.1.17","last_affected":"0.3.0"}],"versions":["0.3.0","0.3.0.dev1"],"versions_truncated":false}],"severity":"critical","priority_score":74,"links":{"html_es":"/es/cve/CVE-2024-46946/","html_en":"/en/cve/CVE-2024-46946/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2024-46946","cve_org":"https://www.cve.org/CVERecord?id=CVE-2024-46946"},"untrusted":{"vendor_name":"Langchain","product_name":"Langchain-experimental","desc_en":"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).","affected":[{"untrusted_vendor":"langchain","untrusted_product":"langchain_experimental","versions":[]}],"references":[{"url":"https://cwe.mitre.org/data/definitions/95.html","tags":["Not Applicable"]},{"url":"https://docs.sympy.org/latest/modules/codegen.html","tags":["Technical Description"]},{"url":"https://gist.github.com/12end/68c0c58d2564ef4141bccd4651480820#file-cve-2024-46946-txt","tags":["Exploit","Third Party Advisory"]},{"url":"https://github.com/langchain-ai/langchain/releases/tag/langchain-experimental%3D%3D0.3.0","tags":["Release Notes"]}]}}