{"schemaVersion":1,"url":"https://cve.openhack.com/cve/CVE-2024-46946","id":"CVE-2024-46946","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).","descriptionLong":"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).","published":"2024-09-19T00:00:00.000Z","updated":"2026-10-28T02:30:45.411603835Z","reserved":"2024-09-15T00:00:00.000Z","status":"Analyzed","rejected":false,"assigner":"mitre","metric":{"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","rating":"critical","source":"CISA-ADP"},"metrics":[{"version":"4.0","score":null,"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","source":"GitHub"},{"version":"4.0","score":null,"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","source":"OSV"},{"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","rating":"critical","source":"CISA-ADP"},{"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","rating":"critical","source":"OSV"},{"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","rating":"critical","source":"GitHub"}],"rating":"critical","products":[],"affectedProducts":[{"vendor":"n/a","product":"n/a","defaultStatus":null,"versions":[{"version":"n/a","status":"affected"}],"platforms":[]}],"packages":[{"ecosystem":"PyPI","name":"langchain-experimental","purl":"pkg:pypi/langchain-experimental","ranges":[">=0.1.17 <=0.3.0"],"fixed":[],"advisory":"GHSA-p2qj-r53j-h3xj"}],"cwes":["CWE-20","CWE-95"],"aliases":["GHSA-p2qj-r53j-h3xj","PYSEC-2026-374"],"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://github.com/CVEProject/cvelistV5/tree/main/cves/2024/46xxx/CVE-2024-46946.json","tags":["advisory"]},{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-46946","tags":["advisory"]},{"url":"https://github.com/langchain-ai/langchain","tags":["package"]},{"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"]}],"patchReferenced":false,"fixAvailable":false,"exploitReferenced":true,"kev":false,"kevAdded":null,"kevDue":null,"kevEntry":null,"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total"},"epss":0.01387,"epssPercentile":0.7283,"sources":[{"name":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-46946","ok":true},{"name":"NVD","url":"https://nvd.nist.gov/vuln/detail/CVE-2024-46946","ok":true,"note":"Analyzed"},{"name":"OSV","url":"https://osv.dev/vulnerability/CVE-2024-46946","ok":true,"note":"1 package"},{"name":"GitHub Advisory","url":"https://github.com/advisories/GHSA-p2qj-r53j-h3xj","ok":true,"note":"GHSA-p2qj-r53j-h3xj"},{"name":"CISA KEV","url":"https://www.cisa.gov/known-exploited-vulnerabilities-catalog","ok":true,"note":"not listed"},{"name":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-46946","ok":true,"note":"scored 2026-11-19"}],"aiTitle":false,"tech":[],"critical":[],"attention":null}