CVE-2023-39631
CVE-2023-39631 is a critical-severity vulnerability in Langchain with a CVSS 3.x base score of 9.8. It is not currently listed as actively exploited by CISA, and its EPSS exploit-prediction score is low. The underlying weakness is classified as CWE-94.
Key facts
- Severity: Critical (CVSS 3.x base score 9.8)
- EPSS exploit prediction: 1% (67th percentile)
- Actively exploited: Not listed in CISA KEV
- Weakness: CWE-94
- Affected product: Langchain
- Published:
- Last modified:
Description
An issue in LanChain-ai Langchain v.0.0.245 allows a remote attacker to execute arbitrary code via the evaluate function in the numexpr library.
Frequently asked questions
- What is CVE-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 numexpr library.
- How severe is CVE-2023-39631?
- CVE-2023-39631 has a CVSS 3.x base score of 9.8, rated critical severity. It is exploitable over network with low attack complexity, requires no privileges and no user interaction. Impact on confidentiality is high, integrity high, and availability high.
- Is CVE-2023-39631 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 1% (67th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2023-39631?
- CVE-2023-39631 affects Langchain. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2023-39631?
- Review the linked vendor and NVD advisories for patched versions and mitigations, then upgrade or apply the recommended workaround. Given its critical severity, prioritise patching exposed systems.
- When was CVE-2023-39631 published?
- CVE-2023-39631 was published on 2023-09-01 and last updated on 2026-06-17.
References
Affected products (1)
- cpe:2.3:a:langchain:langchain:0.0.245:*:*:*:*:*:*:*
More vulnerabilities in Langchain
- CVE-2025-2828 — Critical (CVSS 10.0): A Server-Side Request Forgery (SSRF) vulnerability exists in the RequestsToolkit component of the langchain-community…
- CVE-2024-8309 — Critical (CVSS 9.8): A vulnerability in the GraphCypherQAChain class of langchain-ai/langchain version 0.2.5 allows for SQL injection…
- CVE-2024-7042 — Critical (CVSS 9.8): A vulnerability in the GraphCypherQAChain class of langchain-ai/langchainjs versions 0.2.5 and all versions with this…
- CVE-2023-36281 — Critical (CVSS 9.8): An issue in langchain v.0.0.171 allows a remote attacker to execute arbitrary code via a JSON file to load_prompt. This…
- CVE-2023-39659 — Critical (CVSS 9.8): An issue in langchain langchain-ai v.0.0.232 and before allows a remote attacker to execute arbitrary code via a…
- CVE-2023-38896 — Critical (CVSS 9.8): An issue in Harrison Chase langchain v.0.0.194 and before allows a remote attacker to execute arbitrary code via the…
All CVEs affecting Langchain →
Other CWE-94 (Code Injection) vulnerabilities
- CVE-2026-57624 — Critical (CVSS 10.0): Unauthenticated Remote Code Execution (RCE) in Blocksy Companion Pro <= 2.1.46 versions.
- CVE-2026-10134 — Critical (CVSS 10.0): IBM Langflow OSS 1.0.0 through 1.9.3 allows an attacker to read every secret available to the Langflow process, read…
- CVE-2026-53576 — Critical (CVSS 10.0): Kestra is an open-source, event-driven orchestration platform. Prior to 1.0.45 and 1.3.21, the authentication filter…
- CVE-2026-10561 — Critical (CVSS 10.0): IBM Langflow OSS 1.0.0 through 1.9.3 has an vulnerability due to an improper isolation of Python execution combined…
- CVE-2026-25470 — Critical (CVSS 10.0): Improper Control of Generation of Code ('Code Injection') vulnerability in ACPT ACPT (Pro) - Custom Post Types Plugin…
- CVE-2026-48836 — Critical (CVSS 10.0): Unauthenticated Remote Code Execution (RCE) in Easy Invoice <= 2.1.19 versions.