Skip to main content
← All vulnerabilities
CVE-2024-8309GHSA-45PG-36P6-83V9PYSEC-2024-115PYSEC-2026-1507

SQL Injection in langchain-ai/langchain

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 0.3.0, 0.2.19, 0.2.0
1 proof of concept on GitHub
  • Exploitation: poc
  • Automatable: no
  • Technical impact: partial

Summary

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

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: no · Technical impact: partial

  3. Record last updated
  4. EPSS reached 10%

    FIRST estimates at least a 10% chance of exploitation in the next 30 days

Affected versions

  • langchain-ai langchain-ai/langchain

    fixed in 0.3.0

  • langchain-communityPyPI

    From 0.2.0 · fixed in 0.2.19

  • langchainPyPI

    fixed in 0.2.0

References 3

huntr.com

GitHub · langchain-ai/langchain

GitHub · liadlevy/CVE-2024-8309