{"id":"CVE-2024-46946","aliases":["CVE-2024-46946","GHSA-p2qj-r53j-h3xj","PYSEC-2026-374"],"related":[],"kind":"vulnerability","state":"published","title":"LangChain Experimental Eval Injection vulnerability","summary":"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).","summarySource":"cvelist","descriptions":[{"lang":"en","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).","source":"cvelist"},{"lang":"es","text":"langchain_experimental (también conocido como LangChain Experimental) 0.1.17 a 0.3.0 para LangChain permite a los atacantes ejecutar código arbitrario a través de sympy.sympify (que utiliza eval) en LLMSymbolicMathChain. LLMSymbolicMathChain se introdujo en fcccde406dd9e9b05fc9babcbeb9ff527b0ec0c6 (2023-10-05).","source":"nvd"}],"published":"2024-09-19T00:00:00.000Z","modified":"2026-10-27T17:00:03.986Z","severity":{"scorer":"CISA-ADP","scheme":"CVSS: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,"rating":"CRITICAL"},"severities":[{"scorer":"CISA-ADP","scheme":"CVSS: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,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS: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,"rating":"CRITICAL"},{"scorer":"GitHub","scheme":"CVSS:4.0","vector":"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","rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS: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,"rating":"CRITICAL"},{"scorer":"PyPA Advisory Database","scheme":"CVSS:4.0","vector":"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"}],"cwes":["CWE-20","CWE-95"],"affected":[{"ranges":[{"version":"n/a","status":"affected"}],"source":"cvelist"},{"ranges":[{"type":"custom","introduced":"0.1.17","lastAffected":"0.3.0","status":"affected"}],"vendor":"langchain","product":"langchain_experimental","cpe":"cpe:2.3:a:langchain:langchain_experimental:*:*:*:*:*:python:*:*","source":"cvelist"},{"ranges":[{"type":"ecosystem","introduced":"0.1.17","status":"affected","lastAffected":"0.3.0"}],"ecosystem":"PyPI","package":"langchain-experimental","purl":"pkg:pypi/langchain-experimental","source":"ghsa"},{"ranges":[{"status":"affected","introduced":"0.1.17","lastAffected":"0.3.0"}],"vendor":"langchain","product":"langchain-experimental","cpe":"cpe:2.3:a:langchain:langchain-experimental:*:*:*:*:*:*:*:*","source":"nvd"},{"ranges":[{"type":"ecosystem","introduced":"0.1.17","status":"affected","lastAffected":"0.3.0"}],"ecosystem":"PyPI","package":"langchain-experimental","purl":"pkg:pypi/langchain-experimental","source":"pysec"}],"references":[{"url":"https://cwe.mitre.org/data/definitions/95.html","tags":["not-applicable"],"sources":["cvelist","nvd"]},{"url":"https://github.com/langchain-ai/langchain/releases/tag/langchain-experimental%3D%3D0.3.0","tags":["release-notes","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://docs.sympy.org/latest/modules/codegen.html","tags":["technical-description","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://gist.github.com/12end/68c0c58d2564ef4141bccd4651480820#file-cve-2024-46946-txt","tags":["exploit","third-party-advisory","web"],"sources":["cvelist","ghsa","nvd","pysec"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-46946","tags":["advisory"],"sources":["ghsa","pysec"]},{"url":"https://github.com/langchain-ai/langchain","tags":["package"],"sources":["ghsa","pysec"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/langchain-experimental/PYSEC-2026-374.yaml","tags":["web"],"sources":["ghsa"]},{"url":"https://pypi.org/project/langchain-experimental","tags":["package","web"],"sources":["ghsa","pysec"]},{"url":"https://github.com/advisories/GHSA-p2qj-r53j-h3xj","tags":["advisory"],"sources":["pysec"]}],"credits":[],"assigner":"mitre","ssvc":{"scorer":"CISA-ADP","exploitation":"poc","automatable":"yes","technicalImpact":"total","date":"2024-09-19T14:04:46.354Z"},"sources":[{"source":"cvelist","name":"CVE List","id":"CVE-2024-46946","url":"https://www.cve.org/CVERecord?id=CVE-2024-46946","licence":"CVE Terms of Use","modified":"2024-09-19T14:06:52.692Z"},{"source":"ghsa","name":"GitHub Advisory Database","id":"GHSA-p2qj-r53j-h3xj","url":"https://github.com/advisories/GHSA-p2qj-r53j-h3xj","licence":"CC-BY-4.0","modified":"2026-10-27T17:00:03.986Z"},{"source":"nvd","name":"NVD","id":"CVE-2024-46946","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-46946","licence":"Public domain","modified":"2026-06-17T07:56:14.343Z"},{"source":"pysec","name":"PyPA Advisory Database","id":"PYSEC-2026-374","url":"https://osv.dev/vulnerability/PYSEC-2026-374","licence":"CC-BY-4.0","modified":"2026-07-01T20:22:55.391Z"}],"updatedAt":"2026-11-25T22:58:45.622Z","epss":{"score":0.01387,"percentile":0.73041,"date":"2026-12-01T12:00:22.000Z"}}