摘要与解读
LangGraph的SQLite存储实现以字符串拼接构造查询,过滤键可注入任意SQL,PoC演示绕过访问过滤读取私有文档。
六维情报分析
6 个维度 · 原文可溯源影响范围
- langgraph-checkpoint-sqlite · <= 2.0.10(不高于 2.0.10)
-
来源报告的影响对象是使用 LangGraph SQLite store 实现(langgraph/store/sqlite/base.py 中 SqliteStore)的应用:JSON path 的 key 部分被直接拼接进 SQL 字符串而未参数化,攻击者可注入任意 SQL 并绕过访问控制。触发前提是 filter key 非静态、未经校验或白名单过滤即传入 store;若 key 静态或已校验/白名单化,风险不适用。LangSmith 部署(原 LangGraph Platform)依赖不同 checkpointer 实现,不受影响。后果按 CVSS 3.1 向量为机密性高、完整性低、可用性无影响。
原文依据 · 3
中文译文
SqliteStore", "description": "### 摘要\nLangGraph 的 SQLite 存储实现存在 SQL 注入漏洞:它直接拼接字符串,未进行适当的参数化,可能使攻击者注入任意 SQL 并绕过访问控制。\n\n### 详情\n[`/langgraph/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py`]([源链接])\n\nJSON 路径的键部分未经清理,直接拼接到 SQL 字符串中。原文至此截断。
原文引文
SqliteStore", "description": "### Summary\nLangGraph'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.\n\n### Details\n[`/langgraph/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py`](https://github.com/langchain-ai/langgraph/blob/ee5d052a07aadd76dae123a27009ea0a3694fa0a/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py#L407)\n\nThe key portion of the JSON path is concatenated directly into the SQL string without sanitation. The
查看原文 · v1原文引文
nIf filter keys are static or validated/allowlisted before being passed to the store, the risk does not apply.\n\nNote: users of LangSmith deployments (previously known as LangGraph Platform) are not affected as those deployments rely on a different checkpointer implementation.\n\n### PoC\n_Complete instructions, including specific configuration details, to reproduce the vulnerability._\n\n```python\n#!/usr/bin/env python3\n\"\"\"Minimal SQLite Key Injection POC for LangGraph\"\"\"\n\nfrom langgraph.store.sqlite import SqliteStore\n\n# Create store with test data\nwith SqliteStore.from_conn_st
查看原文 · v1中文译文
"site_admin": false }, "type": "报告者" } ], "comments": 2, "cvss": { "vector_string": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N", "score": 7.3 }, "epss": { "percentage": 0.00241, "percentile": 0.15135 } }
原文引文
"site_admin": false }, "type": "reporter" } ], "comments": 2, "cvss": { "vector_string": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N", "score": 7.3 }, "epss": { "percentage": 0.00241, "percentile": 0.15135 } }
查看原文 · v1
关联资产
- langgraph-checkpoint-sqlite · pip
-
原文明示的关联资产:Python 包 langgraph-checkpoint-sqlite(含 langgraph/store/sqlite/base.py 中的 SqliteStore 类)、其 SQLite 存储后端与 JSON path filter key 输入接口,以及 LangGraph 源码仓库 langchain-ai/langgraph。适用条件为部署使用该 SQLite store 且 filter key 非静态或未经校验/白名单;LangSmith 部署因使用不同 checkpointer 实现不适用。未提供本地资产清单,未与任何本地资产匹配。
原文依据 · 3
中文译文
SqliteStore", "description": "### 摘要\nLangGraph 的 SQLite 存储实现存在 SQL 注入漏洞:它直接拼接字符串,未进行适当的参数化,可能使攻击者注入任意 SQL 并绕过访问控制。\n\n### 详情\n[`/langgraph/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py`]([源链接])\n\nJSON 路径的键部分未经清理,直接拼接到 SQL 字符串中。原文至此截断。
原文引文
SqliteStore", "description": "### Summary\nLangGraph'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.\n\n### Details\n[`/langgraph/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py`](https://github.com/langchain-ai/langgraph/blob/ee5d052a07aadd76dae123a27009ea0a3694fa0a/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py#L407)\n\nThe key portion of the JSON path is concatenated directly into the SQL string without sanitation. The
查看原文 · v1原文引文
nIf filter keys are static or validated/allowlisted before being passed to the store, the risk does not apply.\n\nNote: users of LangSmith deployments (previously known as LangGraph Platform) are not affected as those deployments rely on a different checkpointer implementation.\n\n### PoC\n_Complete instructions, including specific configuration details, to reproduce the vulnerability._\n\n```python\n#!/usr/bin/env python3\n\"\"\"Minimal SQLite Key Injection POC for LangGraph\"\"\"\n\nfrom langgraph.store.sqlite import SqliteStore\n\n# Create store with test data\nwith SqliteStore.from_conn_st
查看原文 · v1原文引文
h-checkpoint-sqlite" }, "vulnerable_version_range": "<= 2.0.10", "first_patched_version": "2.0.11", "vulnerable_functions": [] } ], "cvss_severities": { "cvss_v3": { "vector_string": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N", "score": 7.3 }, "cvss_v4": { "vector_string": null, "score": 0.0 } }, "cwes": [ { "cwe_id": "CWE-89", "name": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')" } ], "credits": [ { "user": { "login": "ColeMurray",
查看原文 · v1
风险评估
-
已报道机制为 CWE-89 SQL 注入:直接字符串拼接使 filter key 可改变 SQL 语义,进而绕过访问控制。触发条件为应用将外部可控或未校验的 filter key 传入 SqliteStore 查询路径;防护优先级应高于一般配置加固,因为公告定级 severity 为 high、CVSS 3.1 为 7.3(AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N),EPSS 为 0.00241(百分位 0.15135),即利用门槛低但短期被利用概率信号较弱。
原文依据 · 3
中文译文
SqliteStore", "description": "### 摘要\nLangGraph 的 SQLite 存储实现存在 SQL 注入漏洞:它直接拼接字符串,未进行适当的参数化,可能使攻击者注入任意 SQL 并绕过访问控制。\n\n### 详情\n[`/langgraph/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py`]([源链接])\n\nJSON 路径的键部分未经清理,直接拼接到 SQL 字符串中。原文至此截断。
原文引文
SqliteStore", "description": "### Summary\nLangGraph'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.\n\n### Details\n[`/langgraph/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py`](https://github.com/langchain-ai/langgraph/blob/ee5d052a07aadd76dae123a27009ea0a3694fa0a/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py#L407)\n\nThe key portion of the JSON path is concatenated directly into the SQL string without sanitation. The
查看原文 · v1原文引文
", "severity": "high", "repository_advisory_url": "https://api.github.com/repos/langchain-ai/langgraph/security-advisories/GHSA-7p73-8jqx-23r8", "source_code_location": "https://github.com/langchain-ai/langgraph", "identifiers": [ { "value": "GHSA-7p73-8jqx-23r8", "type": "GHSA" }, { "value": "CVE-2025-64104", "type": "CVE" } ], "references": [ "https://github.com/langchain-ai/langgraph/security/advisories/GHSA-7p73-8jqx-23r8", "https://nvd.nist.gov/vuln/detail/CVE-2025-64104", "https://github.com/langchain-ai/langgraph/commit/bc9
查看原文 · v1中文译文
"site_admin": false }, "type": "报告者" } ], "comments": 2, "cvss": { "vector_string": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N", "score": 7.3 }, "epss": { "percentage": 0.00241, "percentile": 0.15135 } }
原文引文
"site_admin": false }, "type": "reporter" } ], "comments": 2, "cvss": { "vector_string": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N", "score": 7.3 }, "epss": { "percentage": 0.00241, "percentile": 0.15135 } }
查看原文 · v1
相关研究
-
来源为 GitHub 安全公告 GHSA-7p73-8jqx-23r8(对应 CVE-2025-64104),由报告者 ColeMurray 提交,含 2 条评论,并附 PoC 章节与最小复现脚本框架(导入 langgraph.store.sqlite 的 SqliteStore 并创建测试数据)。公告定位到具体源码行并说明拼接点,贡献在于把注入点、受影响包版本区间与修复版本对应起来;材料未提供修复提交的代码细节,链接内容未读取。
原文依据 · 4
中文译文
SqliteStore", "description": "### 摘要\nLangGraph 的 SQLite 存储实现存在 SQL 注入漏洞:它直接拼接字符串,未进行适当的参数化,可能使攻击者注入任意 SQL 并绕过访问控制。\n\n### 详情\n[`/langgraph/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py`]([源链接])\n\nJSON 路径的键部分未经清理,直接拼接到 SQL 字符串中。原文至此截断。
原文引文
SqliteStore", "description": "### Summary\nLangGraph'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.\n\n### Details\n[`/langgraph/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py`](https://github.com/langchain-ai/langgraph/blob/ee5d052a07aadd76dae123a27009ea0a3694fa0a/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py#L407)\n\nThe key portion of the JSON path is concatenated directly into the SQL string without sanitation. The
查看原文 · v1原文引文
nIf filter keys are static or validated/allowlisted before being passed to the store, the risk does not apply.\n\nNote: users of LangSmith deployments (previously known as LangGraph Platform) are not affected as those deployments rely on a different checkpointer implementation.\n\n### PoC\n_Complete instructions, including specific configuration details, to reproduce the vulnerability._\n\n```python\n#!/usr/bin/env python3\n\"\"\"Minimal SQLite Key Injection POC for LangGraph\"\"\"\n\nfrom langgraph.store.sqlite import SqliteStore\n\n# Create store with test data\nwith SqliteStore.from_conn_st
查看原文 · v1原文引文
h-checkpoint-sqlite" }, "vulnerable_version_range": "<= 2.0.10", "first_patched_version": "2.0.11", "vulnerable_functions": [] } ], "cvss_severities": { "cvss_v3": { "vector_string": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N", "score": 7.3 }, "cvss_v4": { "vector_string": null, "score": 0.0 } }, "cwes": [ { "cwe_id": "CWE-89", "name": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')" } ], "credits": [ { "user": { "login": "ColeMurray",
查看原文 · v1原文引文
", "severity": "high", "repository_advisory_url": "https://api.github.com/repos/langchain-ai/langgraph/security-advisories/GHSA-7p73-8jqx-23r8", "source_code_location": "https://github.com/langchain-ai/langgraph", "identifiers": [ { "value": "GHSA-7p73-8jqx-23r8", "type": "GHSA" }, { "value": "CVE-2025-64104", "type": "CVE" } ], "references": [ "https://github.com/langchain-ai/langgraph/security/advisories/GHSA-7p73-8jqx-23r8", "https://nvd.nist.gov/vuln/detail/CVE-2025-64104", "https://github.com/langchain-ai/langgraph/commit/bc9
查看原文 · v1
验证资料
-
来源给出的可核查数据:受影响包为 langgraph-checkpoint-sqlite,vulnerable_version_range 为 <= 2.0.10,first_patched_version 为 2.0.11;CVSS v4 向量为空、score 为 0.0,与 CVSS v3 的 7.3 并存。防御性核查可围绕版本比对(是否 <= 2.0.10)、filter key 来源是否静态或经白名单校验、以及 SQLite 查询日志中 filter key 位置出现异常 SQL 片段的迹象展开;这些指标为分析建议,来源未给出实测日志数据。
原文依据 · 3
原文引文
h-checkpoint-sqlite" }, "vulnerable_version_range": "<= 2.0.10", "first_patched_version": "2.0.11", "vulnerable_functions": [] } ], "cvss_severities": { "cvss_v3": { "vector_string": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N", "score": 7.3 }, "cvss_v4": { "vector_string": null, "score": 0.0 } }, "cwes": [ { "cwe_id": "CWE-89", "name": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')" } ], "credits": [ { "user": { "login": "ColeMurray",
查看原文 · v1原文引文
nIf filter keys are static or validated/allowlisted before being passed to the store, the risk does not apply.\n\nNote: users of LangSmith deployments (previously known as LangGraph Platform) are not affected as those deployments rely on a different checkpointer implementation.\n\n### PoC\n_Complete instructions, including specific configuration details, to reproduce the vulnerability._\n\n```python\n#!/usr/bin/env python3\n\"\"\"Minimal SQLite Key Injection POC for LangGraph\"\"\"\n\nfrom langgraph.store.sqlite import SqliteStore\n\n# Create store with test data\nwith SqliteStore.from_conn_st
查看原文 · v1中文译文
SqliteStore", "description": "### 摘要\nLangGraph 的 SQLite 存储实现存在 SQL 注入漏洞:它直接拼接字符串,未进行适当的参数化,可能使攻击者注入任意 SQL 并绕过访问控制。\n\n### 详情\n[`/langgraph/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py`]([源链接])\n\nJSON 路径的键部分未经清理,直接拼接到 SQL 字符串中。原文至此截断。
原文引文
SqliteStore", "description": "### Summary\nLangGraph'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.\n\n### Details\n[`/langgraph/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py`](https://github.com/langchain-ai/langgraph/blob/ee5d052a07aadd76dae123a27009ea0a3694fa0a/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py#L407)\n\nThe key portion of the JSON path is concatenated directly into the SQL string without sanitation. The
查看原文 · v1
处置建议
-
按序处置:一、清点依赖 langgraph-checkpoint-sqlite 的服务,将版本升级至 first_patched_version 2.0.11 及以上,替换 <= 2.0.10 的部署;二、在升级前对传入 store 的 filter key 实施静态化或白名单校验,依据是公告明确该条件下风险不适用;三、对 SQLite 查询路径增加参数化封装与异常 SQL 片段监测,作为纵深防御;四、回归验证覆盖 filter key 含特殊字符的查询场景,确认访问控制边界生效。上述为基于来源事实的条件性建议,来源未逐条提出。
原文依据 · 3
原文引文
h-checkpoint-sqlite" }, "vulnerable_version_range": "<= 2.0.10", "first_patched_version": "2.0.11", "vulnerable_functions": [] } ], "cvss_severities": { "cvss_v3": { "vector_string": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N", "score": 7.3 }, "cvss_v4": { "vector_string": null, "score": 0.0 } }, "cwes": [ { "cwe_id": "CWE-89", "name": "Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')" } ], "credits": [ { "user": { "login": "ColeMurray",
查看原文 · v1原文引文
nIf filter keys are static or validated/allowlisted before being passed to the store, the risk does not apply.\n\nNote: users of LangSmith deployments (previously known as LangGraph Platform) are not affected as those deployments rely on a different checkpointer implementation.\n\n### PoC\n_Complete instructions, including specific configuration details, to reproduce the vulnerability._\n\n```python\n#!/usr/bin/env python3\n\"\"\"Minimal SQLite Key Injection POC for LangGraph\"\"\"\n\nfrom langgraph.store.sqlite import SqliteStore\n\n# Create store with test data\nwith SqliteStore.from_conn_st
查看原文 · v1中文译文
SqliteStore", "description": "### 摘要\nLangGraph 的 SQLite 存储实现存在 SQL 注入漏洞:它直接拼接字符串,未进行适当的参数化,可能使攻击者注入任意 SQL 并绕过访问控制。\n\n### 详情\n[`/langgraph/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py`]([源链接])\n\nJSON 路径的键部分未经清理,直接拼接到 SQL 字符串中。原文至此截断。
原文引文
SqliteStore", "description": "### Summary\nLangGraph'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.\n\n### Details\n[`/langgraph/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py`](https://github.com/langchain-ai/langgraph/blob/ee5d052a07aadd76dae123a27009ea0a3694fa0a/libs/checkpoint-sqlite/langgraph/store/sqlite/base.py#L407)\n\nThe key portion of the JSON path is concatenated directly into the SQL string without sanitation. The
查看原文 · v1
模型与引文记录
- 模型
- deepseek-flash
- 生成时间
- 记录编号
- REQ-58157cdf935240dab8b6babbd8a15310
- 分析原文
- 查看原文 · v1
情报标识:GHSA-7p73-8jqx-23r8 · CVE-2025-64104
来源字段与 CVSS 指标
受影响产品
langgraph-checkpoint-sqlite · pip
查看来源依据
结构化证据路径 $.vulnerabilities[0].package
{"ecosystem": "pip", "name": "langgraph-checkpoint-sqlite"}受影响版本
langgraph-checkpoint-sqlite · <= 2.0.10(不高于 2.0.10)
查看来源依据
结构化证据路径 $.vulnerabilities[0].vulnerable_version_range
"<= 2.0.10"
字段所属产品与版本上下文
[
{
"format": "github_advisory",
"json_path": "$.vulnerabilities[0]",
"quote": "{\"first_patched_version\": \"2.0.11\", \"package\": {\"ecosystem\": \"pip\", \"name\": \"langgraph-checkpoint-sqlite\"}, \"vulnerable_functions\": [], \"vulnerable_version_range\": \"\u003c= 2.0.10\"}",
"record_path": "$.vulnerabilities[0]"
}
]来源列出的修复版本
langgraph-checkpoint-sqlite · 2.0.11
查看来源依据
结构化证据路径 $.vulnerabilities[0].first_patched_version
"2.0.11"
字段所属产品与版本上下文
[
{
"format": "github_advisory",
"json_path": "$.vulnerabilities[0]",
"quote": "{\"first_patched_version\": \"2.0.11\", \"package\": {\"ecosystem\": \"pip\", \"name\": \"langgraph-checkpoint-sqlite\"}, \"vulnerable_functions\": [], \"vulnerable_version_range\": \"\u003c= 2.0.10\"}",
"record_path": "$.vulnerabilities[0]"
}
]来源风险评分
7.3 / 10 · CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N · CVSS 3.1
- 攻击途径
- 本地 (AV:L)
- 攻击复杂度
- 低 (AC:L)
- 所需权限
- 低权限 (PR:L)
- 用户交互
- 不需要 (UI:N)
- 安全权限范围
- 改变 (S:C)
- 机密性影响
- 高 (C:H)
- 完整性影响
- 低 (I:L)
- 可用性影响
- 无 (A:N)
查看来源依据 · 2 处相同值
结构化证据路径 $.cvss
{"score": 7.3, "vector_string": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N"}结构化证据路径 $.cvss_severities.cvss_v3
{"score": 7.3, "vector_string": "CVSS:3.1/AV:L/AC:L/PR:L/UI:N/S:C/C:H/I:L/A:N"}0.0 / 10 · CVSS v4(来源字段)
查看来源依据
结构化证据路径 $.cvss_severities.cvss_v4
{"score": 0.0, "vector_string": null}图片与附件
1 项关联材料-
advisories.json
采集与来源记录
- 文件名称
- advisories.json
- 记录大小
- 496090 字节
- 文件格式
- application/json
- 关联登记时间
- 2026-10-31 17:24 UTC
- 关联原文
- v1
- 保存时校验
2560688b97e50c11bce138e0065ac8f19dfb63580853a345189f8e37e5fabd3f
相关文献与资料
参考资料 · 5 条
https://github.com/langchain-ai/langgraph/security/advisories/GHSA-7p73-8jqx-23r8
查看链接来源
$.references[0]
"https://github.com/langchain-ai/langgraph/security/advisories/GHSA-7p73-8jqx-23r8"
https://nvd.nist.gov/vuln/detail/CVE-2025-64104
查看链接来源
$.references[1]
"https://nvd.nist.gov/vuln/detail/CVE-2025-64104"
https://github.com/langchain-ai/langgraph/commit/bc9d45b476101e441cb1cc602dea03eb29232de4
查看链接来源
$.references[2]
"https://github.com/langchain-ai/langgraph/commit/bc9d45b476101e441cb1cc602dea03eb29232de4"
查看链接来源
$.references[3]
"https://github.com/pypa/advisory-database/tree/main/vulns/langgraph-checkpoint-sqlite/PYSEC-2026-1529.yaml"
https://github.com/advisories/GHSA-7p73-8jqx-23r8
查看链接来源
$.references[4]
"https://github.com/advisories/GHSA-7p73-8jqx-23r8"