CVE-2026-137185

7.3High

Published Nov 30, 2026 · NVD status: Received · AI triage by gemini-3.1-flash-lite

7.3CVSS

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.

remediation — bash
$ pip install --upgrade code-graph-rag

AI-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

Source: nvd.nist.gov/vuln/detail/CVE-2026-137185

More fully triaged vulnerabilities you may want to check next.