SQL Injection in Langchain
CVE-2024-8309
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.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS 0.137, 96.6th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Langchain — versions 0.2.5
- Langchain-Ai Langchain-Ai/langchain — versions unspecified
Weakness classification (CWE)
Public exploits and proof-of-concept code
1 public repository with exploit or proof-of-concept code for this CVE:
- liadlevy/CVE-2024-8309 (3 stars, last pushed 2024-10-05): A PoC for CVE-2024–8309
Also mentioned in 1 other repository (nomi-sec/PoC-in-GitHub). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- huntr.com/bounties/8f4ad910-7fdc-4089-8f0a-b5df5f32e7c5 (Exploit, Third Party Advisory)
- github.com/langchain-ai/langchain/commit/c2a3021bb0c5f54649d380b42a0684ca5778c2… (Patch)
This CVE has public exploit evidence. See the latest CVEs with public exploits.