Code Graph RAG: EXECUTE_SHELL allowlist and dangerous-pattern blacklist both miss xargs <interpreter> -c — approved/yolo shell commands reach unconfined RCE
Default status is the baseline for the product, each version can override it (e.g. patched versions marked unaffected).
| Vendor | Product | Default status | Versions | ||||||
|---|---|---|---|---|---|---|---|---|---|
| vitali87 | code-graph-rag | affected |
|
No data.
No data.
No data available yet.
No CVSS v4.0
No CVSS v3.0
No CVSS v2
This CVE is not in the KEV list.
No EPSS score available.
Key SSVC decision points have not yet been added.
| Type | Values Removed | Values Added |
|---|---|---|
| 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. | |
| Title | Code Graph RAG: EXECUTE_SHELL allowlist and dangerous-pattern blacklist both miss xargs <interpreter> -c — approved/yolo shell commands reach unconfined RCE | |
| Weaknesses | CWE-78 CWE-863 |
|
| References |
|
|
| Metrics |
cvssV3_1
|
No data.