CVE-2026-137185
7.3HighPublished Nov 30, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite
High
0CVSS v3.110
- Attack vector
- Local
- Complexity
- Low
- Privileges
- Low
- User action
- Required
- Impact
- Full C/I/A compromise
- Weakness
- CWE-78, CWE-863
What an attacker gets
Attackers can execute arbitrary code outside the project root as the process user. This requires the attacker to influence a model-issued command and, in default mode, requires human approval.
Root cause
The shell command validator fails to inspect arguments passed to interpreters like Python, allowing subprocess execution to bypass allowlist filters.
Affected versions
Code Graph RAG 0.0.844 and earlier
CVSS v3.1 · CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Fix & remediation
Upgrade to version 0.0.845. If you cannot patch immediately, disable the --yolo mode to ensure human approval is required for all commands.
$ pip install --upgrade code-graph-ragAI-suggested. Run it in staging first and check it against the vendor advisory. Why?
NVD 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.
References
- https://github.com/vitali87/code-graph-rag/commit/033b64be855c0d2c0767d8dd225fe0129ebe05da
- https://github.com/vitali87/code-graph-rag/commit/25c4c7ecfc8d030380ab11fbacd412db210193fc
- https://github.com/vitali87/code-graph-rag/releases/tag/v0.0.845
- https://github.com/vitali87/code-graph-rag/security/advisories/GHSA-wvxg-744g-6pcg
Related Critical / High CVEs
More fully triaged vulnerabilities you may want to check next.
- CVE-2026-1399907.5HighUnauthenticated attackers can extract database contents via time-based blind SQL injection. They only need network access to the GLPI web interface.
- CVE-2026-1399897.8HighAttackers can execute arbitrary code with the privileges of the process using the library. This requires a user to load a malicious Hugging Face model containing a crafted chat_template.
- CVE-2026-1398177.3HighRemote attackers can trigger an out-of-bounds write by manipulating the max_seqlen_k argument. This can lead to memory corruption or arbitrary code execution.
- CVE-2026-1371899.3CriticalUnauthenticated remote attackers can bypass access controls to modify Jupyter backend configurations or access health endpoints. This is possible because the server trusts the client-supplied Host header to verify request origin.
- CVE-2026-1371868.7HighAuthenticated attackers can execute arbitrary OS commands on the host. This occurs during the installation of a STDIO MCP server before sandboxing is applied.
- CVE-2026-1371847.8HighLocal attackers can steal plaintext WinRM credentials from process command lines or telemetry logs. This occurs when the winrm_exec tool is used with explicit credentials.