Live threats

All CVEs / Langchain

CVE-2024-8309Langchain

Critical 9.8 No auth needed

Priority
74
CVSS 3.1
9.8
EPSS
0.6%
probability of exploitation in 30 days · percentile 45
Auth required
No
Published
Oct 29, 2024
Updated
Jun 17, 2026
Category
Application · Cross-platform
Weakness (CWE)
CWE-89, CWE-74
SSVC (CISA)
Exploitation: proof of concept · Automatable: no · Technical impact: partial
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

What happens

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.

Original NVD text.

What to do

  1. Apply the vendor's security update for Langchain.
  2. It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.

Affected packages

EcosystemPackageAffected versionsFixed inHow to upgrade
PyPI langchain < 0.2.0 0.2.0 pip install "langchain>=0.2.0"
PyPI langchain < 0.2.0 0.2.0 pip install "langchain>=0.2.0"
PyPI langchain-community ≥ 0.2.0 < 0.2.19 0.2.19 pip install "langchain-community>=0.2.19"

Per OSV / GitHub Advisories (GHSA-45pg-36p6-83v9, PYSEC-2026-1507). Check the version in your lockfile before upgrading.

Affected products (CPE)

VendorProductVersions
langchainlangchain0.2.5

Official sources

References

Links published by the sources. Open them with care.