{"id":1284,"date":"2026-06-12T10:10:50","date_gmt":"2026-06-12T10:10:50","guid":{"rendered":"https:\/\/thedigitalfortress.us\/?p=1284"},"modified":"2026-06-12T10:10:50","modified_gmt":"2026-06-12T10:10:50","slug":"langgraph-flaw-chain-exposes-self-hosted-ai-agents-to-remote-code-execution","status":"publish","type":"post","link":"https:\/\/thedigitalfortress.us\/?p=1284","title":{"rendered":"LangGraph Flaw Chain Exposes Self-Hosted AI Agents to Remote Code Execution"},"content":{"rendered":"<div>\n<p><span class=\"p-author\"><i class=\"icon-font icon-user\">\ue804<\/i><span class=\"author\">Ravie Lakshmanan<\/span><i class=\"icon-font icon-calendar\">\ue802<\/i><span class=\"author\">Jun 12, 2026<\/span><\/span><span class=\"p-tags\">Vulnerability \/ AI Security<\/span><\/p>\n<\/div>\n<div id=\"articlebody\">\n<div class=\"separator\" style=\"clear: both;\"><a href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEifnUd6CRFC-YdhoEDgmNoLtKUYjbZvqQJOETqK59Zd5Pk_epd9uGMfPCrujB3grOrajNxMls_p7TWQwnyCxFo1Ou8MM70yUh3dP04776sp-xk3O8544Z9YD-v_konqCTv1eX_42iMBkr4j5c-h0_I5dyBWvrr_3jrphGH3xLcZgaDAN1uH8OA5rWerJE5B\/s1700-e365\/langgraph.jpg\" style=\"display: block;  text-align: center; clear: left; float: left;\"><\/a><\/div>\n<p>Cybersecurity researchers have disclosed details of three now-patched security flaws impacting <a href=\"https:\/\/www.langchain.com\/langgraph\">LangGraph<\/a>, including a critical vulnerability chain that could result in remote code execution.<\/p>\n<p>LangGraph is an open-source framework created by LangChain to build complex, stateful, and multi-agent artificial intelligence (AI) agentic applications.<\/p>\n<p>\u00abAn SQL injection in LangGraph&#8217;s function could allow attackers to gain full control via remote code execution of a server by exploiting weaknesses in how the system processes and handles data,\u00bb Check Point <a href=\"https:\/\/blog.checkpoint.com\/research\/when-your-ai-agents-memory-becomes-a-security-liability\/\">said<\/a>.<\/p>\n<p>The list of identified vulnerabilities is as follows &#8211;<\/p>\n<ul>\n<li><b><a href=\"https:\/\/github.com\/langchain-ai\/langgraph\/security\/advisories\/GHSA-9rwj-6rc7-p77c\">CVE-2025-67644<\/a><\/b> (CVSS score: 7.3) &#8211; A SQL injection vulnerability exists in LangGraph&#8217;s SQLite checkpoint implementation that allows attackers to manipulate SQL queries through metadata filter keys. (Affects langgraph-checkpoint-sqlite versions before 3.0.1)<\/li>\n<li><b><a href=\"https:\/\/github.com\/langchain-ai\/langgraph\/security\/advisories\/GHSA-g48c-2wqr-h844\">CVE-2026-28277<\/a><\/b> (CVSS score: 6.8) &#8211; An unsafe <a href=\"https:\/\/msgpack.org\/index.html\">msgpack<\/a> deserialization vulnerability in LangGraph that could be used to trigger object reconstruction when a checkpoint is loaded by an attacker who can modify checkpoint data. (Affects langgraph versions before 1.0.10)<\/li>\n<li><b><a href=\"https:\/\/github.com\/langchain-ai\/langgraphjs\/security\/advisories\/GHSA-5mx2-w598-339m\">CVE-2026-27022<\/a><\/b> (CVSS score: 6.5) &#8211; A RediSearch Query Injection in @langchain\/langgraph-checkpoint-redis that can be used to bypass access controls. (Affects @langchain\/langgraph-checkpoint-redis versions before 1.0.1)<\/li>\n<\/ul>\n<p>\u00abThe vulnerability chain is exploitable in self-hosted deployments using the SQLite or Redis checkpointer with user-controlled filter input,\u00bb Check Point said. \u00abLangChain&#8217;s managed platform (LangSmith Deployment), is not affected.\u00bb<\/p>\n<div class=\"dog_two clear\">\n<div class=\"cf\"><a href=\"https:\/\/thehackernews.uk\/vpn-threat-report-m\" rel=\"nofollow noopener sponsored\" target=\"_blank\"><img loading=\"lazy\" decoding=\"async\" class=\"lazyload\" alt=\"Cybersecurity\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhFlTC7RrRZGiFAgASS0noWSL0qsQGFVp8-Hvuw9yp3X3VKRuTcb5SsPX09wJzrdIM6pu1_5lS4EeZp7Sx4iYBpNJkrGnpr08yyaS1HQ5_5TxaCsP6O0OtHNuOkesn6CbNjao1GPulCJk-uljYMSfMZfBYNrngpe669t7jlRn1FqiEnXhsFD1WVkpaYIVgh\/s728-e100\/ai-d.jpg\" width=\"729\" height=\"91\"\/><\/a><\/div>\n<\/div>\n<p>Security researcher Yarden Porat, who is credited with discovering and reporting all three flaws, <a href=\"https:\/\/research.checkpoint.com\/2026\/from-sqli-to-rce-exploiting-langgraphs-checkpointer\/\">said<\/a> CVE-2025-67644 and CVE-2026-28277 could be chained to achieve remote code execution.<\/p>\n<p>Specifically, the attack chain hinges on the application exposing the <a href=\"https:\/\/reference.langchain.com\/python\/langgraph\/pregel\/remote\/RemoteGraph\/get_state_history\">get_state_history()<\/a> endpoint, which then allows an attacker to retrieve historical checkpoints based on their metadata. It requires the following steps &#8211;<\/p>\n<ul>\n<li>The attacker prepares a msgpack payload containing instructions to execute arbitrary code.<\/li>\n<li>The attacker sends a malicious filter parameter that exploits the SQL injection vulnerability to return a fake checkpoint row to the database query results, where the checkpoint column contains attacker-controlled serialized data.<\/li>\n<li>When the application processes the query results, it deserializes the malicious checkpoint&#8217;s BLOB.<\/li>\n<li>The attacker exploits the unsafe deserialization vulnerability to execute the attacker&#8217;s payload, giving them remote code execution on the server.<\/li>\n<\/ul>\n<div class=\"separator\" style=\"clear: both;\"><a href=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhV-YjfyONNV77yQ5KwfXDgnEWA0TadqpAvsJvAS7wexd3CK9UVe3n44HrRYJl6CgsIV_diJc1ZLFSPJ7AJu8RCXVsy-xgKYx4XR8lcXQh6qF-Wqnhr5L9rImOGP0iefsoYnDXhyphenhyphenUEIYbX-Ce7c_lyGNCbnMNloiz4b-54Na_LtY0OhTJXfmDvPgJhFTEiU\/s1700-e365\/sql.jpg\" style=\"clear: left; display: block; float: left;  text-align: center;\"><img decoding=\"async\" src=\"https:\/\/blogger.googleusercontent.com\/img\/b\/R29vZ2xl\/AVvXsEhV-YjfyONNV77yQ5KwfXDgnEWA0TadqpAvsJvAS7wexd3CK9UVe3n44HrRYJl6CgsIV_diJc1ZLFSPJ7AJu8RCXVsy-xgKYx4XR8lcXQh6qF-Wqnhr5L9rImOGP0iefsoYnDXhyphenhyphenUEIYbX-Ce7c_lyGNCbnMNloiz4b-54Na_LtY0OhTJXfmDvPgJhFTEiU\/s1700-e365\/sql.jpg\" alt=\"\" border=\"0\" data-original-height=\"745\" data-original-width=\"900\"\/><\/a><\/div>\n<p>LangGraph has described CVE-2026-28277 as a post-exploitation issue, where successful exploitation requires the ability to write attacker-controlled checkpoint data and turn that into code execution in the application runtime, and it does not pose any risks to existing LangSmith-hosted deployments.<\/p>\n<p>In such a scenario, this escalation from write access to checkpoint store\u00bb to code execution may \u00abexpose runtime secrets or provide access to other systems the runtime can reach,\u00bb LangGraph maintainers said. \u00abThe described threat model requires an attacker to tamper with the checkpoint persistence layer used by the deployment; typical hosted configurations are designed to prevent such access.\u00bb<\/p>\n<p>Check Point said the findings illustrate how classic vulnerability classes like SQL injection can become more potent when they manifest inside AI agent frameworks that carry elevated access and trust, thereby opening the door to sensitive data exposure.<\/p>\n<p>Users are advised to apply the latest fixes, implement authentication for self-hosted LangGraph servers, avoid long-lived static secrets, enforce network segmentation, treat AI agents as privileged identities, and apply the principle of least privilege (PoLP) to limit the agent&#8217;s access footprint.<\/p>\n<\/div>\n","protected":false},"excerpt":{"rendered":"<p>\ue804Ravie Lakshmanan\ue802Jun 12, 2026Vulnerability \/ AI Security Cybersecurity researchers have disclosed details of three now-patched security flaws impacting LangGraph, including a critical vulnerability chain that could result in remote code&hellip;<\/p>\n","protected":false},"author":1,"featured_media":1285,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[335,219,10,13,985,70,917,12,2021],"class_list":["post-1284","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-uncategorized","tag-agents","tag-chain","tag-code","tag-execution","tag-exposes","tag-flaw","tag-langgraph","tag-remote","tag-selfhosted"],"_links":{"self":[{"href":"https:\/\/thedigitalfortress.us\/index.php?rest_route=\/wp\/v2\/posts\/1284","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/thedigitalfortress.us\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/thedigitalfortress.us\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/thedigitalfortress.us\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/thedigitalfortress.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1284"}],"version-history":[{"count":0,"href":"https:\/\/thedigitalfortress.us\/index.php?rest_route=\/wp\/v2\/posts\/1284\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/thedigitalfortress.us\/index.php?rest_route=\/wp\/v2\/media\/1285"}],"wp:attachment":[{"href":"https:\/\/thedigitalfortress.us\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1284"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/thedigitalfortress.us\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1284"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/thedigitalfortress.us\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1284"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}