CVE-2024-8309

SQL Injection in langchain-ai/langchain

State
Published
Severity
4.9 Medium
Published
Oct 29, 2024
Updated
Oct 15, 2025
Reserved
Aug 29, 2024

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.04.9 MediumCVSS:3.0/AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:L/A:L@huntr_ai

Weaknesses

  • CWE-89 Improper Neutralization of Special Elements used in an SQL Command

Affected Products

ProductVersions
langchain-ai/langchainlangchain-ai
  • before 0.3.0Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.