CVE-2025-64104: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in langchain-ai langgraph
LangGraph SQLite Checkpoint is an implementation of LangGraph CheckpointSaver that uses SQLite DB (both sync and async, via aiosqlite). Prior to 2.0.11, LangGraph's SQLite store implementation contains SQL injection vulnerabilities using direct string concatenation without proper parameterization, allowing attackers to inject arbitrary SQL and bypass access controls. This vulnerability is fixed in 2.0.11.
AI Analysis
Technical Summary
CVE-2025-64104 identifies a SQL injection vulnerability in the LangGraph SQLite Checkpoint component of the langchain-ai project, specifically in versions before 2.0.11. LangGraph uses SQLite databases for checkpoint saving, supporting both synchronous and asynchronous operations via aiosqlite. The vulnerability stems from unsafe coding practices where SQL queries are constructed through direct string concatenation without proper parameterization or escaping of user-supplied input. This improper neutralization of special elements (CWE-89) allows an attacker with limited privileges (local access) to inject arbitrary SQL commands. The injected SQL can manipulate the database queries to bypass access controls and potentially extract sensitive information, compromising confidentiality. The vulnerability does not require user interaction but does require some level of authenticated access, limiting remote exploitation. The CVSS v3.1 score is 7.3 (high), reflecting the significant confidentiality impact and the complexity of exploitation. No known exploits are currently reported in the wild. The issue was addressed in langgraph version 2.0.11 by implementing proper parameterized queries to prevent injection.
Potential Impact
For European organizations, this vulnerability poses a significant risk to the confidentiality of data managed by applications using vulnerable versions of langgraph. Attackers with local or limited access could exploit the SQL injection to bypass access controls and extract sensitive information from SQLite databases. This could lead to data breaches involving personal data, intellectual property, or other confidential information, potentially violating GDPR and other data protection regulations. While the vulnerability does not directly affect system availability or integrity to a large extent, the confidentiality breach alone can have severe reputational and legal consequences. Organizations relying on langgraph for AI or data processing workflows should be aware that exploitation requires some level of access, so insider threats or compromised accounts are primary concerns. The impact is heightened in sectors with stringent data privacy requirements such as finance, healthcare, and government within Europe.
Mitigation Recommendations
European organizations should immediately upgrade langgraph to version 2.0.11 or later, where the vulnerability is fixed by proper parameterization of SQL queries. Until upgrading is possible, restrict access to systems running vulnerable versions to trusted users only and monitor for unusual database query activity. Implement strict access controls and auditing on systems using langgraph to detect potential misuse. Employ runtime application self-protection (RASP) or database activity monitoring tools to detect and block suspicious SQL commands. Conduct code reviews and penetration testing focused on SQL injection vectors in custom integrations with langgraph. Additionally, ensure that database user permissions are minimized to limit the impact of any injection attempts. Regularly update and patch all dependencies to reduce exposure to similar vulnerabilities.
Affected Countries
Germany, France, United Kingdom, Netherlands, Sweden, Finland, Denmark, Belgium, Italy, Spain
CVE-2025-64104: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in langchain-ai langgraph
Description
LangGraph SQLite Checkpoint is an implementation of LangGraph CheckpointSaver that uses SQLite DB (both sync and async, via aiosqlite). Prior to 2.0.11, LangGraph's SQLite store implementation contains SQL injection vulnerabilities using direct string concatenation without proper parameterization, allowing attackers to inject arbitrary SQL and bypass access controls. This vulnerability is fixed in 2.0.11.
AI-Powered Analysis
Technical Analysis
CVE-2025-64104 identifies a SQL injection vulnerability in the LangGraph SQLite Checkpoint component of the langchain-ai project, specifically in versions before 2.0.11. LangGraph uses SQLite databases for checkpoint saving, supporting both synchronous and asynchronous operations via aiosqlite. The vulnerability stems from unsafe coding practices where SQL queries are constructed through direct string concatenation without proper parameterization or escaping of user-supplied input. This improper neutralization of special elements (CWE-89) allows an attacker with limited privileges (local access) to inject arbitrary SQL commands. The injected SQL can manipulate the database queries to bypass access controls and potentially extract sensitive information, compromising confidentiality. The vulnerability does not require user interaction but does require some level of authenticated access, limiting remote exploitation. The CVSS v3.1 score is 7.3 (high), reflecting the significant confidentiality impact and the complexity of exploitation. No known exploits are currently reported in the wild. The issue was addressed in langgraph version 2.0.11 by implementing proper parameterized queries to prevent injection.
Potential Impact
For European organizations, this vulnerability poses a significant risk to the confidentiality of data managed by applications using vulnerable versions of langgraph. Attackers with local or limited access could exploit the SQL injection to bypass access controls and extract sensitive information from SQLite databases. This could lead to data breaches involving personal data, intellectual property, or other confidential information, potentially violating GDPR and other data protection regulations. While the vulnerability does not directly affect system availability or integrity to a large extent, the confidentiality breach alone can have severe reputational and legal consequences. Organizations relying on langgraph for AI or data processing workflows should be aware that exploitation requires some level of access, so insider threats or compromised accounts are primary concerns. The impact is heightened in sectors with stringent data privacy requirements such as finance, healthcare, and government within Europe.
Mitigation Recommendations
European organizations should immediately upgrade langgraph to version 2.0.11 or later, where the vulnerability is fixed by proper parameterization of SQL queries. Until upgrading is possible, restrict access to systems running vulnerable versions to trusted users only and monitor for unusual database query activity. Implement strict access controls and auditing on systems using langgraph to detect potential misuse. Employ runtime application self-protection (RASP) or database activity monitoring tools to detect and block suspicious SQL commands. Conduct code reviews and penetration testing focused on SQL injection vectors in custom integrations with langgraph. Additionally, ensure that database user permissions are minimized to limit the impact of any injection attempts. Regularly update and patch all dependencies to reduce exposure to similar vulnerabilities.
For access to advanced analysis and higher rate limits, contact root@offseq.com
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2025-10-27T15:26:14.127Z
- Cvss Version
- 3.1
- State
- PUBLISHED
Threat ID: 69026375e09a14ef713ad330
Added to database: 10/29/2025, 6:56:53 PM
Last enriched: 11/6/2025, 2:14:42 AM
Last updated: 12/14/2025, 12:32:36 AM
Views: 198
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Related Threats
CVE-2025-13832
UnknownCVE-2025-14637: SQL Injection in itsourcecode Online Pet Shop Management System
MediumCVE-2025-14636: Use of Weak Hash in Tenda AX9
MediumCVE-2025-14622: SQL Injection in code-projects Student File Management System
MediumCVE-2025-14623: SQL Injection in code-projects Student File Management System
MediumActions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need enhanced features?
Contact root@offseq.com for Pro access with improved analysis and higher rate limits.