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
Vulnerability · Reported by NVD · · CWE-78, CWE-863
- Severity
- High Risk score 73/100
- CVSS
- 7.3 v3.1 · from NVD
- Exploit chance (EPSS)
- – Not available yet
- Known exploited
- No Not in CISA KEV
Summary
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.
How this vulnerability can be exploited
An attacker can exploit this vulnerability with local access to the system, with a low-privileged account, and only if a user is tricked into an action (such as clicking a link or opening a file). Attack complexity is low, so no special conditions are needed. If successful, the attacker could read sensitive data, modify data or code and crash or disrupt the service.
Is it being exploited?
There is no public evidence of active exploitation yet. Monitor for exploit releases, especially if the product is internet-facing.
Patch priority and what to do
Schedule patching in your next maintenance window, and sooner for internet-facing systems. 1) Check whether you run the affected product and version. 2) Apply the vendor update or patch listed in the advisory. 3) Warn users about suspicious links and files that could trigger the flaw. 4) Review logs for signs of exploitation since the publication date.
CVSS vector
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Tags
rce, CVE-2026-137185
Sources & references
- Original article / advisory (NVD) ↗
- NIST NVD: CVE-2026-137185 ↗
- CVE.org record ↗
- FIRST.org EPSS model ↗
How this data is collected: methodology & sources.