Skip to main content
Public proof of conceptFix available

CVE-2024-8309

A public proof of concept exists; no exploitation attested.

  • Published2024-10-29
  • WeaknessCWE-74 · CWE-89

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2024-10-2913:15CVE publishedNVD
  2. 2026-12-0204:55EPSS crossed 10 %FIRST EPSS

Versions per branch

NVD · OSV · CISA-ADP
Langchain
BranchAffectedFixed in
0.2= 0.2.5no fix published
langchain
BranchAffectedFixed in
0.2< 0.2.00.2.0
Langchain-ai langchain
BranchAffectedFixed in
0.3< 0.3.00.3.0

1 more product in the sources.

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As @huntr_ai, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • langchain-ai/langchain
    Affected
    • < 0.3.0fixed in 0.3.0custom

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE terms of useCVE recordupdated 2024-10-29

Distribution builds and vendor advisories

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

  • mageaiMinimOSall versions · no fixed version listed

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

Fix

  1. No fix available, says the vendor Red Hat Product Security CVE-2024-8309 · 2 productsFix deferred

Advisories and patches

Detection

read 2026-11-01 01:02 UTC
Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

  • CISA-ADPSSVC decisionpoc2024-10-29
  • NVDCVSS 3.19.8read 2026-10-23
  • CNACVSS 3.04.9known since 2026-10-23
  • CNAweakness (CWE)CWE-89known since 2026-10-23
  • NVDweakness (CWE)CWE-74read 2026-10-23
  • FIRST EPSSEPSS score13.6 %read 2026-12-04
  • PoC-in-GitHubproof of concept1known since 2026-11-01
  • OSVaffected packages—
  • GitHub AdvisoriesadvisoryLow2024-10-29

Identifiers

Technical details

CVSS v3 vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Published
2024-10-29
Last modified
2026-06-17
NVD status
Analyzed
GitHub advisory
GHSA-45pg-36p6-83v9

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?

A proof-of-concept exploit exists for CVE-2024-8309, but active exploitation has not been confirmed at this time.

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

CVE-2024-8309 has a CVSS v3 base score of 9.8 (Critical severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.

Running langchain? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website checks · 250 API requests/month

Sources for this record