目标达成 感谢每一位支持者 — 我们达成了 100% 目标!

目标: 1000 元 · 已筹: 1359 元

100%

CVE-2026-87008— Code Graph RAG 越权读取符号链接漏洞

一分钟漏洞结论

影响对象
vitali87 code-graph-rag
利用判断
尚无明确在野利用证据,仍需结合暴露面评估
建议动作
优先检查厂商安全公告和参考链接中的修复版本;无法立即升级时,限制受影响服务暴露并加强监测。

Code Graph RAG 是一个由人工智能驱动的知识图谱与检索系统,用于查询、理解和编辑多语言代码库。在 0.0.589 版本之前, 中的 会枚举 下的文件,并依赖 中的 函数对其进行分类。然而,该包含性检查是基于未解析的 lexical 路径(字面路径)执行的。因此,若在被分析的项目仓库中植入一个符号链接(symbolic link),该链接可指向配置根目录之外的文件,同时仍被视为在扫描范围内。 工具会跟随该符号链接,并在未经过任何审批流程的情况下泄露可读内容;而 工具在 模式下也会跟随该链接,直接覆盖可写内

CVSS 7.1 · High
获取后续新漏洞提醒 登录后订阅

一、 漏洞 CVE-2026-87008 基础信息

漏洞信息

对漏洞内容有疑问?看看神龙的深度分析是否有帮助!
查看神龙十问 ↗

尽管我们使用了先进的大模型技术,但其输出仍可能包含不准确或过时的信息。神龙努力确保数据的准确性,但请您根据实际情况进行核实和判断。

Vulnerability Title
Code Graph RAG structural tools follow out-of-root symlinks
来源: CVE Program / CVE List V5
Vulnerability Description
Code Graph RAG is an AI-powered knowledge graph and retrieval system for querying, understanding, and editing multi-language codebases. Prior to 0.0.589, AstGrepService in codebase_rag/tools/ast_grep_service.py enumerates files beneath project_root and relies on should_skip_path in codebase_rag/utils/path_utils.py to classify them, but the containment check operates on unresolved lexical paths. A symbolic link planted inside an analyzed repository can therefore reference a file outside the configured root while still appearing in scope. The structural_search tool follows the link and discloses readable content without an approval gate, while structural_replace with dry_run=False follows it and overwrites writable content; the MCP path invokes structural replacement without the agent-loop approval control. An attacker who causes a victim to analyze a repository containing such a link can read credentials, keys, environment files, or sibling source and can modify files accessible to the code-graph-rag process. This issue is fixed in version 0.0.589.
来源: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:N
来源: CVE Program / CVE List V5
Vulnerability Type
对路径名的限制不恰当(路径遍历)
来源: CVE Program / CVE List V5

受影响产品

厂商 产品 影响版本 CPE 订阅
vitali87 code-graph-rag < 0.0.589 -

二、漏洞 CVE-2026-87008 的公开POC

# POC 描述 源链接 神龙链接
AI 生成 POC 高级

未找到公开 POC。

登录以生成 AI POC

三、漏洞 CVE-2026-87008 的情报信息

请登录查看更多情报信息。

CVE-2026-87008 其他参考 (3)

IV. Related Vulnerabilities