CVE-2024-7042

CRITICAL

langchain/langchain < 0.3.1 and langchain/community < 0.3.3 - SQL Injection via GraphCypherQAChain

Title source: llm
STIX 2.1

Description

A vulnerability in the GraphCypherQAChain class of langchain-ai/langchainjs versions 0.2.5 and all versions with this class allows for prompt injection, leading to SQL injection. This vulnerability permits 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

CVSS v3 9.8
EPSS 0.0031
EPSS Percentile 22.7%
Attack Vector NETWORK
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H

CISA SSVC

Vulnrichment
Exploitation poc
Automatable no
Technical Impact partial

Details

CWE
CWE-89
Status published
Products (2)
langchain/community 0 - 0.3.3npm
langchain/langchain < 0.3.1
Published Oct 29, 2024
Tracked Since Feb 18, 2026