From SQLi to RCE – Exploiting LangGraph’s Checkpointer
LangGraph, an open-source framework for stateful AI agents, contains multiple vulnerabilities in its persistence layer (checkpointers) that can be chained to achieve remote code execution (RCE). The primary issues include a SQL injection in the SQLite checkpointer (CVE-2025-67644), unsafe msgpack deserialization (CVE-2026-28277), and a similar SQL injection in the Redis checkpointer (CVE-2026-27022). These vulnerabilities allow an attacker controlling the filter parameter in get_state_history() to inject malicious SQL, insert crafted serialized data, and trigger unsafe deserialization leading to arbitrary code execution. LangChain has patched these vulnerabilities in specific versions of langgraph and its checkpointer components. The managed cloud service LangSmith Deployment is not affected.
AI Analysis
Technical Summary
Check Point Research analyzed LangGraph and discovered three vulnerabilities in its persistence layer. The SQLite checkpointer suffers from a SQL injection vulnerability in the filter parameter used to query checkpoint metadata, allowing injection of arbitrary SQL code. This injection can be used to add a fake checkpoint row with attacker-controlled serialized data. The deserialization of this data uses unsafe msgpack deserialization with a custom extension handler that can execute arbitrary Python code, enabling remote code execution. A similar SQL injection exists in the Redis checkpointer. The attack chain requires exposing the get_state_history() method with a user-controlled filter and self-hosting LangGraph with SQLite or Redis checkpointers. LangChain patched these issues in langgraph-checkpoint-sqlite 3.0.1+, langgraph 1.0.10+, and langgraph-checkpoint-redis 1.0.2+. The managed cloud service uses PostgreSQL and is not vulnerable.
Potential Impact
Successful exploitation allows an attacker to perform SQL injection to inject malicious checkpoint data into the database query results. This data is then deserialized unsafely using msgpack with a custom extension hook that can execute arbitrary code. This leads to remote code execution on the server hosting LangGraph, enabling full control over the system. The vulnerabilities affect self-hosted LangGraph deployments using SQLite or Redis checkpointers with exposed get_state_history() methods accepting user-controlled filters. The managed cloud service LangSmith Deployment is not affected.
Mitigation Recommendations
LangChain has released official patches addressing these vulnerabilities. Users should update to langgraph-checkpoint-sqlite version 3.0.1 or later, langgraph version 1.0.10 or later, and langgraph-checkpoint-redis version 1.0.2 or later. The managed cloud service LangSmith Deployment uses PostgreSQL and is not vulnerable. Applying these updates effectively mitigates the risk of exploitation. No additional mitigations are required if these patches are applied.
From SQLi to RCE – Exploiting LangGraph’s Checkpointer
Description
LangGraph, an open-source framework for stateful AI agents, contains multiple vulnerabilities in its persistence layer (checkpointers) that can be chained to achieve remote code execution (RCE). The primary issues include a SQL injection in the SQLite checkpointer (CVE-2025-67644), unsafe msgpack deserialization (CVE-2026-28277), and a similar SQL injection in the Redis checkpointer (CVE-2026-27022). These vulnerabilities allow an attacker controlling the filter parameter in get_state_history() to inject malicious SQL, insert crafted serialized data, and trigger unsafe deserialization leading to arbitrary code execution. LangChain has patched these vulnerabilities in specific versions of langgraph and its checkpointer components. The managed cloud service LangSmith Deployment is not affected.
Affected software
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Check Point Research analyzed LangGraph and discovered three vulnerabilities in its persistence layer. The SQLite checkpointer suffers from a SQL injection vulnerability in the filter parameter used to query checkpoint metadata, allowing injection of arbitrary SQL code. This injection can be used to add a fake checkpoint row with attacker-controlled serialized data. The deserialization of this data uses unsafe msgpack deserialization with a custom extension handler that can execute arbitrary Python code, enabling remote code execution. A similar SQL injection exists in the Redis checkpointer. The attack chain requires exposing the get_state_history() method with a user-controlled filter and self-hosting LangGraph with SQLite or Redis checkpointers. LangChain patched these issues in langgraph-checkpoint-sqlite 3.0.1+, langgraph 1.0.10+, and langgraph-checkpoint-redis 1.0.2+. The managed cloud service uses PostgreSQL and is not vulnerable.
Potential Impact
Successful exploitation allows an attacker to perform SQL injection to inject malicious checkpoint data into the database query results. This data is then deserialized unsafely using msgpack with a custom extension hook that can execute arbitrary code. This leads to remote code execution on the server hosting LangGraph, enabling full control over the system. The vulnerabilities affect self-hosted LangGraph deployments using SQLite or Redis checkpointers with exposed get_state_history() methods accepting user-controlled filters. The managed cloud service LangSmith Deployment is not affected.
Mitigation Recommendations
LangChain has released official patches addressing these vulnerabilities. Users should update to langgraph-checkpoint-sqlite version 3.0.1 or later, langgraph version 1.0.10 or later, and langgraph-checkpoint-redis version 1.0.2 or later. The managed cloud service LangSmith Deployment uses PostgreSQL and is not vulnerable. Applying these updates effectively mitigates the risk of exploitation. No additional mitigations are required if these patches are applied.
Technical Details
- Article Source
- {"url":"https://research.checkpoint.com/2026/from-sqli-to-rce-exploiting-langgraphs-checkpointer/","fetched":true,"fetchedAt":"2026-06-11T15:52:40.948Z","wordCount":1620}
Threat ID: 6a2ad9c9815e7002b802c76a
Added to database: 6/11/2026, 3:52:41 PM
Last enriched: 6/11/2026, 3:52:48 PM
Last updated: 6/11/2026, 5:11:54 PM
Views: 5
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.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
External Links
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.