{"id":"CVE-2024-46946","aliases":["EUVD-2024-2841","GHSA-p2qj-r53j-h3xj","PYSEC-2026-374"],"status":"published","title":"LangChain Experimental Eval Injection vulnerability","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).","severity":{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"adp","from":"cve"},"epss":{"day":"2026-11-12","score":0.01387,"percentile":0.72628,"model":"v2026.06.15"},"facts":{"in_kev":false,"known_exploited":false,"public_exploit":false,"fix_available":false},"cwes":["CWE-20","CWE-95"],"published":"2024-09-19T00:00:00Z","modified":"2026-10-28T02:30:45Z","affected":[{"source":"ghsa","ecosystem":"PyPI","package":"langchain-experimental","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.1.17"},{"last_affected":"0.3.0"}]}]},{"source":"osv","ecosystem":"PyPI","package":"langchain-experimental","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.1.17"},{"last_affected":"0.3.0"}]}],"versions":["0.3.0","0.3.0.dev1"]},{"source":"osv","ecosystem":"PyPI","package":"langchain-experimental","ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.1.17"},{"last_affected":"0.3.0"}]}],"versions":["0.3.0","0.3.0.dev1"]}],"products":[{"vendor":"langchain","product":"langchain-experimental"},{"vendor":"langchain","product":"langchain_experimental"}],"references":[{"url":"https://cwe.mitre.org/data/definitions/95.html","tags":["Not Applicable","web"]},{"url":"https://github.com/langchain-ai/langchain/releases/tag/langchain-experimental%3D%3D0.3.0","tags":["Release Notes","web"]},{"url":"https://docs.sympy.org/latest/modules/codegen.html","tags":["Technical Description","web"]},{"url":"https://gist.github.com/12end/68c0c58d2564ef4141bccd4651480820#file-cve-2024-46946-txt","tags":["Exploit","Third Party Advisory","web"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-46946","tags":["advisory"]},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/langchain-experimental/PYSEC-2026-374.yaml","tags":["web"]},{"url":"https://pypi.org/project/langchain-experimental","tags":["web","package"]},{"url":"https://github.com/advisories/GHSA-p2qj-r53j-h3xj","tags":["advisory"]},{"url":"https://github.com/CVEProject/cvelistV5/tree/main/cves/2024/46xxx/CVE-2024-46946.json","tags":["advisory"]},{"url":"https://github.com/langchain-ai/langchain","tags":["package"]}],"sources":{"cve":[{"id":"CVE-2024-46946","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).","status":"published","published":"2024-09-19T00:00:00Z","modified":"2024-09-19T14:06:52.692Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"adp"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:34:08.500935Z"}],"euvd":[{"id":"EUVD-2024-2841","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).","status":"published","published":"2024-09-19T00:00:00Z","modified":"2024-09-19T14:06:52Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-03T00:28:19.06347Z"}],"ghsa":[{"id":"GHSA-p2qj-r53j-h3xj","title":"LangChain Experimental Eval Injection vulnerability","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).","status":"published","published":"2024-09-19T06:31:36Z","modified":"2026-10-27T16:52:57Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"},{"version":"4.0","score":9.3,"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","level":"critical"}],"cwes":["CWE-95"],"updated_at":"2026-11-02T14:41:38.969831Z"}],"nvd":[{"id":"CVE-2024-46946","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).","status":"published","published":"2024-09-19T05:15:11.857Z","modified":"2026-06-17T07:56:14.343Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical","assessor":"secondary"}],"cwes":["CWE-20"],"updated_at":"2026-11-02T14:10:27.456509Z"}],"osv":[{"id":"CVE-2024-46946","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).","status":"published","published":"2024-09-19T00:00:00Z","modified":"2026-10-28T02:30:45.411603835Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"}],"updated_at":"2026-11-02T15:44:43.253252Z"},{"id":"GHSA-p2qj-r53j-h3xj","title":"LangChain Experimental Eval Injection vulnerability","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).","status":"published","published":"2024-09-19T06:31:36Z","modified":"2026-10-27T17:00:03.986872162Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"},{"version":"4.0","score":9.3,"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","level":"critical"}],"cwes":["CWE-95"],"updated_at":"2026-11-02T15:46:52.534897Z"},{"id":"PYSEC-2026-374","title":"LangChain Experimental Eval Injection vulnerability","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).","status":"published","published":"2026-06-29T11:50:41.097287Z","modified":"2026-07-01T20:22:55.39104Z","cvss":[{"version":"3.1","score":9.8,"vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","level":"critical"},{"version":"4.0","score":9.3,"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","level":"critical"}],"updated_at":"2026-11-02T15:52:57.255153Z"}]}}
