Skip to main content
CRITICAL

CVE-2024-8309

CVSS v3

9.8

CRITICAL

EPSS Score

13.7 %

exploit probability, as of 2026-10-19

CISA KEV

No

known exploited

Exploitation

—

SSVC status

Get an alert for each new CVE published for langchain.

Set up CVE WatchFree account · no credit card

Affected and fixed versions

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • langchainPyPIall versions · fixed in 0.2.0
  • langchain-communityPyPIfrom 0.2.0 · fixed in 0.3.0

Vendor advisories

  • CVE-2024-8309 Red Hat Product Security2 known affected

    langchain: SQL Injection in langchain-ai/langchain

    ansible-automation-platform-24/ee-dellemc-openmanage-rhel8 as a component of Red Hat Ansible Automation Platform 2 · ansible-automation-platform-25/platform-resource-runner-rhel8 as a component of Red Hat Ansible Automation Platform 2

Full record on NVD

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.

Technical details

Published
2024-10-29

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.

Is CVE-2024-8309 actively exploited?

Active exploitation of CVE-2024-8309 has not been confirmed. Its EPSS score was 13.7% on 2026-10-19, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2024-8309?

CVE-2024-8309 has a CVSS v3 base score of 9.8 (CRITICAL severity).

Running langchain? Hear about its next vulnerability

CVE Watch matches each new CVE to the vendors and products you list (vendor and product, not the version) and puts it in your alerts with its KEV and EPSS status.

Already have an account? Open CVE WatchNo credit card required · No monthly cap on website lookups · 250 API requests/month