{"schema":"threatline.record/2","record":{"id":"CVE-2024-46946","aliases":["GHSA-p2qj-r53j-h3xj","PYSEC-2026-374"],"summary":"LangChain Experimental Eval Injection vulnerability","details":"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).","categories":["Libraries & packages"],"product":"langchain-experimental","vendor":"n/a","ecosystem":"pip","affected_ranges":[{"source":"GitHub Advisory Database","source_url":"https://github.com/advisories/GHSA-p2qj-r53j-h3xj","source_modified_at":"2026-10-27T16:52:57Z","fetched_at":"2026-10-27T21:14:11.489891Z","package":{"ecosystem":"pip","name":"langchain-experimental"},"range":">= 0.1.17, <= 0.3.0"},{"source":"CVE List","source_url":"https://www.cve.org/CVERecord?id=CVE-2024-46946","source_modified_at":"2024-09-19T14:06:52.692Z","fetched_at":"2026-10-27T21:14:11.489891Z","product":"n/a","vendor":"n/a","versions":[{"version":"n/a","status":"affected"}],"defaultStatus":null},{"source":"OSV","source_url":"https://osv.dev/vulnerability/GHSA-p2qj-r53j-h3xj","source_modified_at":"2026-10-27T17:00:03.986872162Z","fetched_at":"2026-10-27T21:14:11.489891Z","package":{"name":"langchain-experimental","ecosystem":"PyPI","purl":"pkg:pypi/langchain-experimental"},"ranges":[{"type":"ECOSYSTEM","events":[{"introduced":"0.1.17"},{"last_affected":"0.3.0"}]}],"versions":["0.3.0","0.3.0.dev1"]}],"fixed_versions":[],"cvss":9.3,"severity":"Critical","kev":{"listed":false},"epss":{"probability":0.01387,"percentile":0.72097,"score_date":"2026-10-27"},"published_at":"2024-09-19T00:00:00.000Z","modified_at":"2026-10-27T17:00:03.986872162Z","provenance":[{"source":"GitHub Advisory Database","url":"https://github.com/advisories/GHSA-p2qj-r53j-h3xj","fetched_at":"2026-10-27T21:14:11.489891Z","source_modified_at":"2026-10-27T16:52:57Z"},{"source":"CVE List","url":"https://www.cve.org/CVERecord?id=CVE-2024-46946","fetched_at":"2026-10-27T21:14:11.489891Z","source_modified_at":"2024-09-19T14:06:52.692Z"},{"source":"OSV","url":"https://osv.dev/vulnerability/GHSA-p2qj-r53j-h3xj","fetched_at":"2026-10-27T21:14:11.489891Z","source_modified_at":"2026-10-27T17:00:03.986872162Z"},{"source":"EPSS","url":"https://api.first.org/data/v1/epss?cve=CVE-2024-46946","fetched_at":"2026-10-27T21:14:11.489891Z","source_modified_at":"2026-10-27"}],"sources":["GitHub Advisory Database","CVE List","OSV","EPSS"],"references":[{"url":"https://nvd.nist.gov/vuln/detail/CVE-2024-46946","source":"GitHub Advisory Database"},{"source":"CVE List","url":"https://docs.sympy.org/latest/modules/codegen.html"},{"source":"CVE List","url":"https://gist.github.com/12end/68c0c58d2564ef4141bccd4651480820#file-cve-2024-46946-txt"},{"source":"CVE List","url":"https://github.com/langchain-ai/langchain/releases/tag/langchain-experimental%3D%3D0.3.0"},{"url":"https://github.com/pypa/advisory-database/tree/main/vulns/langchain-experimental/PYSEC-2026-374.yaml","source":"GitHub Advisory Database"},{"url":"https://pypi.org/project/langchain-experimental","source":"GitHub Advisory Database"},{"url":"https://github.com/advisories/GHSA-p2qj-r53j-h3xj","source":"GitHub Advisory Database"},{"source":"CVE List","url":"https://cwe.mitre.org/data/definitions/95.html"}],"locations":[],"motoko_assessment":{"status":"requires_architecture_review","automatic_remediation":false},"cve_state":"PUBLISHED","ssvc":{"exploitation":"poc","automatable":"yes","technical_impact":"total","assessed_at":"2024-09-19T14:04:46.354291Z"},"classification":{"method":"product-first software-layer rules","rules_version":"2.1","matched_on":"ecosystem","confidence":"heuristic","reviewed":false},"change_timestamp":"2026-10-27T17:00:03.986872162Z","content_hash":"e4979b376e824d38a4a0eb64c0a5efffeb229803db5319c8f152393923d51b32"}}
