CVE-2025-8709: SQL Injection in langchain-ai/langchain
A SQL injection vulnerability exists in the langchain-ai/langchain repository, specifically in the LangGraph's SQLite store implementation. The affected version is langgraph-checkpoint-sqlite 2.0.10. The vulnerability arises from improper handling of filter operators ($eq, $ne, $gt, $lt, $gte, $lte) where direct string concatenation is used without proper parameterization. This allows attackers to inject arbitrary SQL, leading to unauthorized access to all documents, data exfiltration of sensitive fields such as passwords and API keys, and a complete bypass of application-level security filters.
Other sources
A SQL injection vulnerability exists in the langchain-ai/langgraph repository, specifically in the LangGraph's SQLite store implementation. The affected version is langgraph-checkpoint-sqlite 2.0.10. The vulnerability arises from improper handling of filter operators ($eq, $ne, $gt, $lt, $gte, $lte) where direct string concatenation is used without proper parameterization. This allows attackers to inject arbitrary SQL, leading to unauthorized access to all documents, data exfiltration of sensitive fields such as passwords and API keys, and a complete bypass of application-level security filters.
— GitHub
Affected Software
Event History
Frequently Asked Questions
What is the severity of CVE-2025-8709?
CVE-2025-8709 has been rated as a high-severity vulnerability due to its potential to allow SQL injection attacks.
How do I fix CVE-2025-8709?
To fix CVE-2025-8709, upgrade to the latest version of the langgraph-checkpoint-sqlite package that addresses this SQL injection vulnerability.
What components are affected by CVE-2025-8709?
CVE-2025-8709 affects the langgraph-checkpoint-sqlite version 2.0.10 of the LangGraph's SQLite store implementation.
What type of vulnerability is CVE-2025-8709?
CVE-2025-8709 is classified as a SQL injection vulnerability.
Can CVE-2025-8709 lead to data breaches?
Yes, CVE-2025-8709 can potentially lead to data breaches by allowing unauthorized access to the database.