9.8

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

CVSS: 9.8v3.1CriticalAnalyzed
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) SQL Injection vulnerability in langchain-ai langchain-ai/langchain. EPSS estimates a 13.74% chance of exploitation in the next 30 days, higher than 96.4% of scored vulnerabilities. 1 public exploit is recorded.

Overall risk
70/100
0100
High · default modelHow is this calculated?
CVSS score
9.8/10
010
Critical · v3.1 (NVD)
EPSS score
13.74%
0%100%
Medium · 0.00 pp in 30 days
KEVNot listedIn no KEV catalog
RansomwareNone recordedNo known 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.74%

Chance of exploitation in the next 30 days

Percentile

96%

Versus all other CVEs

30-day change

0.00 pp

From 13.74% on 19-09-2026

19-09-202619-10-2026
EPSS score
13.74%

Known exploited

Compare KEV catalogs

Not in any of the 3 tracked catalogs.

Public exploits

1 found
  • referenceUnverified

    Exploit Reference (huntr.com)

    Maturity: unknown

Weaknesses

CWE · root cause

Affected systems

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