Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-137185— Code Graph RAG: EXECUTE_SHELL allowlist and dangerous-pattern blacklist both miss xargs <interpreter> -c — approved/yolo shell commands reach unconfined RCE

Quick assessment

Affected
vitali87 code-graph-rag
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Code Graph RAG 是一个基于 AI 的知识图谱与检索系统,用于查询、理解和编辑多语言代码库。在 0.0.844 及更早版本中, 中的 仅验证基础命令,而不验证被白名单允许的 启动的程序。其危险模式过滤器会遗漏使用 等模块而非直接 的 Python 解释器代码,从而允许未列入白名单的解释器执行任意代码。能够影响模型所发命令的攻击者,在默认模式下经过人工批准后可以进程用户身份在项目根目录之外执行代码;在 模式下则可在无需人工批准的情况下执行。非交互式 shell 包装器不允许 。该问题已在 0.0.845

CVSS 7.3 · High

Affected Version Matrix 1

VendorProduct Version RangeStatus
vitali87 code-graph-rag < 0.0.845 affected
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-137185

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
Code Graph RAG: EXECUTE_SHELL allowlist and dangerous-pattern blacklist both miss xargs <interpreter> -c — approved/yolo shell commands reach unconfined RCE
Source: 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. In 0.0.844 and earlier, execute_shell_command in codebase_rag/tools/shell_command.py validates only the base command, not the program launched by allowlisted xargs. Its dangerous-pattern filter misses Python interpreter code using modules such as subprocess instead of importing os, allowing an unlisted interpreter to execute arbitrary code. An attacker influencing a model-issued command can execute code outside the project root as the process user after human approval in default mode, or without approval in --yolo mode. The noninteractive shell wrapper does not allow xargs. This issue is fixed in 0.0.845.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Source: CVE Program / CVE List V5
Vulnerability Type
OS命令中使用的特殊元素转义处理不恰当(OS命令注入)
Source: CVE Program / CVE List V5

Affected Products

Vendor Product Affected Versions CPE Subscribe
vitali87 code-graph-rag < 0.0.845 -

II. Public POCs for CVE-2026-137185

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-137185

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

Other References for CVE-2026-137185 (4)

IV. Related Vulnerabilities