{"id":"CVE-2025-67644","published":"2025-12-10T23:37:36Z","modified":"2025-12-11T15:35:59Z","title":"LangGraph SQLite Checkpoint is vulnerable to SQL Injection via metadata filter key in checkpointer list method","vendor":"langchain-ai","product":"langgraph","tier":"tail","description":{"text":"LangGraph SQLite Checkpoint is an implementation of LangGraph CheckpointSaver that uses SQLite DB (both sync and async, via aiosqlite). Versions 3.0.0 and below are vulnerable to SQL injection through the checkpoint implementation. Checkpoint allows attackers to manipulate SQL queries through metadata filter keys, affecting applications that accept untrusted metadata filter keys (not just filter values) in checkpoint search operations. The _metadata_predicate() function constructs SQL queries by interpolating filter keys directly into f-strings without validation. This issue is fixed in version 3.0.1.","provenance":"source","from":"CVE.org"},"cvss":{"score":7.3,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.02471,"percentile":0.84919,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/langchain-ai/langgraph/security/advisories/GHSA-9rwj-6rc7-p77c","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/langchain-ai/langgraph/commit/297242913f8ad2143ee3e2f72e67db0911d48e2a","tags":["x_refsource_MISC"]}],"priority":{"score":27.1,"factors":[{"name":"EPSS percentile","points":16.98},{"name":"Public exploit code","points":5.0},{"name":"CVSS severity","points":5.11}]},"exploitSources":{"pocGithub":{"count":1,"skipped":0,"earliest":"2026-02-22","earliestUrl":"https://github.com/mbanyamer/CVE-2025-67644-LangGraph-3.0.1-SQLite-Checkpoint-SQL-Injection","repos":[{"name":"mbanyamer/CVE-2025-67644-LangGraph-3.0.1-SQLite-Checkpoint-SQL-Injection","url":"https://github.com/mbanyamer/CVE-2025-67644-LangGraph-3.0.1-SQLite-Checkpoint-SQL-Injection","stars":1,"created":"2026-02-22"}]},"first":{"date":"2026-02-22","source":"PoC-in-GitHub","url":"https://github.com/mbanyamer/CVE-2025-67644-LangGraph-3.0.1-SQLite-Checkpoint-SQL-Injection"},"provenance":"source"},"vendorSlug":"langchain-ai","affectedVersions":[{"vendor":"langchain-ai","product":"langgraph","versions":["< 3.0.1"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"partial","timestamp":"2025-12-11T15:35:51.799973Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"PyPI","package":"langgraph-checkpoint-sqlite","vulnerableRanges":["<3.0.1"],"patched":["3.0.1"],"from":["GHSA-9rwj-6rc7-p77c","PYSEC-2026-1530"],"provenance":"source"}],"summary":{"text":"The LangGraph SQLite Checkpoint component of langchain-ai's langgraph, which implements the LangGraph CheckpointSaver on SQLite (sync and async via aiosqlite), fails to validate metadata filter keys, so the _metadata_predicate() function interpolates them directly into SQL f-strings. An attacker who can supply metadata filter keys (not merely filter values) to checkpoint search operations can manipulate the resulting SQL, which requires a low-privilege account, and the attack needs no user interaction and is limited to applications that accept untrusted filter keys.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T05:37:56Z"},"euvd":{"id":"EUVD-2025-202333","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-langchain-ai-langgraph-cve-2025-8709","parents":[{"from":"CVE-2025-8709","to":"CVE-2025-67644","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["libs/checkpoint-sqlite/langgraph/store/sqlite/base.py"],"commits":["https://github.com/langchain-ai/langgraph/commit/297242913f8ad2143ee3e2f72e67db0911d48e2a","https://github.com/langchain-ai/langgraph/commit/bc9d45b476101e441cb1cc602dea03eb29232de4"],"basis":"shared function","functions":["_decode_ns_text","_prepare_batch_search_queries"]}]},{"from":"CVE-2025-64104","to":"CVE-2025-67644","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["libs/checkpoint-sqlite/langgraph/store/sqlite/base.py"],"commits":["https://github.com/langchain-ai/langgraph/commit/bc9d45b476101e441cb1cc602dea03eb29232de4","https://github.com/langchain-ai/langgraph/commit/297242913f8ad2143ee3e2f72e67db0911d48e2a"],"basis":"shared function","functions":["_decode_ns_text","_prepare_batch_search_queries"]}]},{"from":"CVE-2025-64439","to":"CVE-2025-67644","relation":"related","confidence":"medium","kind":"lineage","evidence":[{"kind":"same-code","provenance":"machine","files":["libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/__init__.py","libs/checkpoint-sqlite/langgraph/checkpoint/sqlite/aio.py"],"commits":["https://github.com/langchain-ai/langgraph/commit/c5744f583b11745cd406f3059903e17bbcdcc8ac","https://github.com/langchain-ai/langgraph/commit/297242913f8ad2143ee3e2f72e67db0911d48e2a"],"basis":"shared function","functions":["alist","list"]}]}],"children":[{"from":"CVE-2025-67644","to":"CVE-2026-71433","relation":"successor","confidence":"high","kind":"lineage","evidence":[{"kind":"version-step","provenance":"source","package":"PyPI:langgraph-checkpoint-sqlite","fromFixed":"3.0.1","toFixed":"3.1.1","daysApart":239},{"kind":"same-code","provenance":"machine","files":["libs/checkpoint-sqlite/langgraph/store/sqlite/base.py"],"commits":["https://github.com/langchain-ai/langgraph/commit/297242913f8ad2143ee3e2f72e67db0911d48e2a","https://github.com/langchain-ai/langgraph/commit/66ebe1a0da921e73f0f9f879ba105d314c079f7c"],"basis":"shared function","functions":["__init__","_prepare_batch_search_queries"]}]}],"packageHistory":[{"cve":"CVE-2025-64104","published":"2025-10-29","fixed":"2.0.11","kev":false},{"cve":"CVE-2025-8709","published":"2025-10-26","fixed":"2.0.11","kev":false},{"cve":"CVE-2025-67644","published":"2025-12-10","fixed":"3.0.1","kev":false},{"cve":"CVE-2026-71433","published":"2026-08-06","fixed":"3.1.1","kev":false},{"cve":"CVE-2026-115883","published":"2026-10-23","fixed":"3.1.2","kev":false}],"package":"PyPI:langgraph-checkpoint-sqlite"}}