CVE-2023-39631: LangChain arbitrary code execution via numexpr
Attack on AI2 Disclosed vulnerabilityInfrastructure vulnerability
An issue in LangChain allowed remote code execution via the evaluate function in the optional numexpr dependency. Patches were released to fix the vulnerability.
disclosed CVENo confirmed exploitation, so this record is tracked as a disclosed vulnerability and not counted as an incident. It moves into the counts if CISA or the vendor confirms exploitation. Why
Details
- type
- Attack on AIAn AI model, agent or AI-powered product was the thing exploited, abused or leaked.
- categories
- Infrastructure vulnerabilityCVEs and advisories in AI frameworks, inference servers, MCP servers, AI developer tools and hosting stacks.
- Infrastructure vulnerability
- owasp llm top 10
- mitre atlas
- no technique for these categoriesBoth rows are derived from the type and categories (OWASP 2025 edition, ATLAS release 2026.09), not classified per record. How
- severity
- 2 · Disclosed vulnerabilityCVE or vendor advisory, patched or patchable, no confirmed exploitation.
- targets
- Framework / tooling
- products
- LangChain, numexpr
- incident date
- 1 Sep 2023
- first reported
- 1 Sep 2023
- origin
- GitHub Advisory DatabaseVulnerability record from NVD / the GitHub Advisory Database. This product uses the NVD API but is not endorsed or certified by the NVD.
- classifier confidence
- 0.95 · published at or above 0.80; see the methodology
- tags
- CVE-2023-39631 · rce · langchain · numexpr
- record
- created 2026-10-18 07:00Z · updated 2026-10-18 10:04Z · json
Sources · 2
- 2023-09-01CVE-2023-39631: Langchain vulnerable to arbitrary code execution via the evaluate function in the numexpr libraryGitHub Advisory Database · github.com/advisories/GHSA-f73w-4m7g-ch9x
- 2023-09-01CVE-2023-39631: An issue in LanChain-ai Langchain v.0.0.245 allows a remote attacker to execute arbitrary code via the evaluate function in the…NVD · nvd.nist.gov/vuln/detail/CVE-2023-39631
Titles and links belong to their publishers. The summary above is written by GCD AI RADAR in its own words; data is CC BY-SA 4.0.
Related incidents
- 2023-08-15CVE-2023-38860: LangChain arbitrary code execution vulnerability2 Disclosedon AIInfra vuln2 src
- 2024-02-26CVE-2024-0243: LangChain Server-Side Request Forgery vulnerability2 Disclosedon AIInfra vuln1 src
- 2023-10-20CVE-2023-32786: Prompt injection and SSRF vulnerability in Langchain2 Disclosedon AIPrompt inj.Infra vuln1 src
- 2023-10-19CVE-2023-46229: LangChain Server Side Request Forgery vulnerability2 Disclosedon AIInfra vuln2 src
- 2024-10-29CVE-2024-8309: LangChain GraphCypherQAChain SQL injection vulnerability2 Disclosedon AIPrompt inj.Infra vuln2 src
- 2024-09-17CVE-2024-5998: LangChain pickle deserialization of untrusted data2 Disclosedon AIInfra vulnSupply chain2 src