CVE-2024-8309
CVE-2024-8309 is a critical-severity vulnerability in Langchain with a CVSS 3.x base score of 9.8. Its EPSS exploit-prediction score of 14% places it in the 96th percentile, indicating an elevated likelihood of exploitation. The underlying weakness is classified as CWE-74.
Key facts
- Severity: Critical (CVSS 3.x base score 9.8)
- EPSS exploit prediction: 14% (96th percentile)
- Actively exploited: Not listed in CISA KEV
- EU (EUVD) id: EUVD-2024-0089
- Weakness: CWE-74
- Affected product: Langchain
- Published:
- Last modified:
Description
A vulnerability in the GraphCypherQAChain class of langchain-ai/langchain version 0.2.5 allows for SQL injection through prompt injection. This vulnerability can lead to unauthorized data manipulation, data exfiltration, denial of service (DoS) by deleting all data, breaches in multi-tenant security environments, and data integrity issues. Attackers can create, update, or delete nodes and relationships without proper authorization, extract sensitive data, disrupt services, access data across different tenants, and compromise the integrity of the database.
Frequently asked questions
- What is CVE-2024-8309?
- A vulnerability in the GraphCypherQAChain class of langchain-ai/langchain version 0.2.5 allows for SQL injection through prompt injection. This vulnerability can lead to unauthorized data manipulation, data exfiltration, denial of service (DoS) by deleting all data, breaches in multi-tenant security environments, and data integrity issues. Attackers can create, update, or delete nodes and relationships without proper authorization, extract sensitive data, disrupt services, access data across different tenants, and compromise the integrity of the database.
- How severe is CVE-2024-8309?
- CVE-2024-8309 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-2024-8309 being actively exploited?
- It is not currently listed in CISA's KEV catalog. Its EPSS exploit-prediction score is 14% (96th percentile), an estimate of the probability of exploitation in the next 30 days.
- What products are affected by CVE-2024-8309?
- CVE-2024-8309 affects Langchain. See the affected-products list for the exact vulnerable versions.
- How do I fix CVE-2024-8309?
- 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.
- Does CVE-2024-8309 have an EU (EUVD) identifier?
- Yes. CVE-2024-8309 is tracked in the ENISA EU Vulnerability Database (EUVD) as EUVD-2024-0089.
- When was CVE-2024-8309 published?
- CVE-2024-8309 was published on 2024-10-29 and last updated on 2026-06-17.
References
- https://github.com/langchain-ai/langchain/commit/c2a3021bb0c5f54649d380b42a0684ca5778c255
- https://huntr.com/bounties/8f4ad910-7fdc-4089-8f0a-b5df5f32e7c5
Affected products (1)
- cpe:2.3:a:langchain:langchain:0.2.5:*:*:*:*:*:*:*
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-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-39631 — Critical (CVSS 9.8): An issue in LanChain-ai Langchain v.0.0.245 allows a remote attacker to execute arbitrary code via the evaluate…
- 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-74 (Improper Neutralization of Special Elements (Injection)) vulnerabilities
- CVE-2026-25586 — Critical (CVSS 10.0): SandboxJS is a JavaScript sandboxing library. Prior to 0.8.29, a sandbox escape is possible by shadowing hasOwnProperty…
- CVE-2026-25520 — Critical (CVSS 10.0): SandboxJS is a JavaScript sandboxing library. Prior to 0.8.29, The return values of functions aren't wrapped.…
- CVE-2025-20265 — Critical (CVSS 10.0): A vulnerability in the RADIUS subsystem implementation of Cisco Secure Firewall Management Center (FMC) Software could…
- CVE-2025-20337 — Critical (CVSS 10.0): A vulnerability in a specific API of Cisco ISE and Cisco ISE-PIC could allow an unauthenticated, remote attacker to…
- CVE-2025-20281 — Critical (CVSS 10.0): A vulnerability in a specific API of Cisco ISE and Cisco ISE-PIC could allow an unauthenticated, remote attacker to…
- CVE-2024-42472 — Critical (CVSS 10.0): Flatpak is a Linux application sandboxing and distribution framework. Prior to versions 1.14.0 and 1.15.10, a malicious…
Browse all CWE-74 (Improper Neutralization of Special Elements (Injection)) vulnerabilities →