9.8

CVE-2024-8309: SQL Injection in langchain-ai/langchain

Analyzed
AliasesGHSA-45pg-36p6-83v9PYSEC-2024-115PYSEC-2026-1507
Published 29-10-2024Last modified 15-10-2025

Vulnerability summary

CVE-2024-8309 is a critical (CVSS 9.8) vulnerability in langchain-ai langchain-ai/langchain. EPSS estimates a 13.63% chance of exploitation in the next 30 days, higher than 96.5% of scored vulnerabilities. 1 public exploit is recorded.

Priority
Routine

Not severe (CVSS 4.9, local access); no exploitation reported by the 5 checked sources

Source freshness unavailable

How is this decided?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
13.63%
0%100%
Medium · -0.11 pp in 30 days
KEVNot listedNot listed by any tracked catalog.
RansomwareNot flaggedNo ransomware use recorded.
Public exploits1reference

Timeline

  1. 29-10-2024
    PublishedVulnerability first disclosed.
  2. 15-10-2025
    Last modifiedVulnerability information updated.

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.

CVSS metrics

5 scores · 3 sources · 3 versions

EPSS trend

Probability

13.63%

Chance of exploitation in the next 30 days

Percentile

97%

Versus all other CVEs

30-day change

Decrease -0.11 pp

From 13.74% on 04-11-2026

04-11-202604-12-2026

Known exploited

Compare KEV catalogs
CISA KEV

Not in the CISA KEV catalog.

ENISA CNW

Not in the ENISA CNW catalog.

CIRCL

Not in the CIRCL catalog.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (huntr.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

Version check

Known conditions: local access, no authentication, no user interaction (CVSS vector). Other conditions: not stated in public data.

PyPI2 products
  • langchain< 0.2.0 | < c2a3021bb0c5f54649d380b42a0684ca5778c255
  • langchain-community≥ 0.2.0, < 0.2.19 | ≥ 0.2.0, < 0.3.0
Langchain1 product
Langchain-ai1 product

3 vendors · 4 products

References

8 links