CVE-2026-137185

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.
Configurations

No configuration.

History

01 Dec 2026, 14:18

Type Values Removed Values Added
References () https://github.com/vitali87/code-graph-rag/security/advisories/GHSA-wvxg-744g-6pcg - () https://github.com/vitali87/code-graph-rag/security/advisories/GHSA-wvxg-744g-6pcg -

30 Nov 2026, 19:17

Type Values Removed Values Added
New CVE

Information

Published : 2026-11-30 19:17

Updated : 2026-12-01 14:18


NVD link : CVE-2026-137185

Mitre link : CVE-2026-137185

CVE.ORG link : CVE-2026-137185


JSON object : View

Products Affected

No product.

CWE
CWE-78

Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')

CWE-863

Incorrect Authorization