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.

Project Subscriptions

Vendors Products
Vitali87 Subscribe
Code-graph-rag Subscribe
Advisories

No advisories yet.

Fixes

Solution

No solution given by the vendor.


Workaround

No workaround given by the vendor.

History

Tue, 01 Dec 2026 19:45:00 +0000

Type Values Removed Values Added
First Time appeared Vitali87
Vitali87 code-graph-rag
Vendors & Products Vitali87
Vitali87 code-graph-rag

Mon, 30 Nov 2026 18:45:00 +0000

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

{'score': 7.3, 'vector': 'CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H'}


Projects

Sign in to view the affected projects.

cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-12-01T13:23:15.496Z

Reserved: 2026-11-25T21:33:08.026Z

Link: CVE-2026-137185

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-30T19:17:55.780

Modified: 2026-12-01T14:18:12.733

Link: CVE-2026-137185

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-12-01T19:30:05Z

Weaknesses