Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessInject command via prompt injection in indexed content
-
DeliveryCraft xargs python3 -c subprocess payload
-
ExploitBypass allowlist and dangerous-pattern filter
-
ExecutionHuman approves (or --yolo skips approval)
-
ImpactExecute arbitrary code as process user outside project root
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization OS command sanitization, avoid shell exec
MITRE ATT&CK
2 techniques across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Exploitation requires the allowlisted |
| Impact | The CVSS 3.1 vector (AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H, base 7.3) frames this as a locally-vectored, low-privilege flaw requiring user interaction, with full confidentiality, integrity and availability impact - accurate for a sandbox-escape in a tool whose entire purpose is to confine model-issued commands. The vuln.today decision label is 'this_week' (priority, not emergency). This is NOT in CISA KEV and no EPSS score was supplied, so there is no evidence of widespread automated exploitation; however the GHSA-wvxg-744g-6pcg advisory contains a demonstrated proof-of-concept that ran |
| Exploit ScenarioDerived | An attacker plants instructions in repository or web content that the Code Graph RAG agent indexes, coaxing the orchestrator model (prompt injection) into issuing a shell command shaped like |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 30, 2026
Unconfined command execution in Code Graph RAG 0.0.844 and earlier lets a model-issued shell command escape the execute_shell_command validator by routing through the allowlisted xargs launcher into an interpreter (python3, perl, ruby, node) that the allowlist never vets. The only blacklist rule aimed at this case fires exclusively on the literal import os token, so a -c one-liner that reaches subprocess, pty or ctypes passes both layers and runs as the code-graph-rag process user with no project-root confinement. In default mode a human must approve one click on a command that reads as an ordinary batch job, while --yolo mode executes it unattended the moment the model emits it; the noninteractive shell wrapper is unaffected because xargs is absent from its read-only command set. The maintainers shipped a fix in 0.0.845, the advisory carries a working proof-of-concept reproduction, and no public exploit code or in-the-wild exploitation has been confirmed (not in CISA KEV); vuln.today priority is this_week.
RemediationAI
Vendor-released patch: 0.0.845 - upgrade the code-graph-rag package to 0.0.845 or later (pip install -U code-graph-rag), which is the only complete fix per the advisory; the remediation is documented at https://github.com/vitali87/code-graph-rag/security/advisories/GHSA-wvxg-744g-6pcg and the release at https://github.com/vitali87/code-graph-rag/releases/tag/v0.0.845, with the accompanying changes in commits 033b64be855c0d2c0767d8dd225fe0129ebe05da and 25c4c7ecfc8d030380ab11fbacd412db210193fc. Until upgrading, the highest-leverage compensating control is to stop running the agent in --yolo mode, because that path removes the single human approval click that is the only remaining gate in default mode; the trade-off is that every model-issued shell command then requires manual review, and reviewers must treat launcher commands (xargs/awk/sed) followed by any interpreter as suspicious rather than as ordinary batch processing. A second control, per the advisory's own suggested fix, is to remove xargs, awk and sed from SHELL_COMMAND_ALLOWLIST in codebase_rag/config.py (or deny interpreter one-liners reached through those launchers) so the first-token check can no longer be bypassed; the trade-off is loss of legitimate batch-processing and text-processing functionality for the agent. The noninteractive wrapper already rejects these segments and does not need changing. Note that blocking individual module names or adding more blacklist regexes is not an effective mitigation, since perl/ruby/node one-liners and python -c using subprocess, pty or ctypes are equally unmatched.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 1 package in euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The affected component is a Python tool layer, codebase_rag/tools/shell_command.py, which attempts to confine model-issued shell commands with two independent layers: a base-command allowlist (SHELL_COMMAND_ALLOWLIST, which contains xargs, awk and sed but not python3/python/perl/ruby/node) and a regex veto list (SHELL_DANGEROUS_PATTERNS_SEGMENT) applied even to allowlisted commands. _validate_segment only inspects cmd_parts[0], the segment's own base command; the program that xargs is told to spawn is never checked against the allowlist because it is not the first token of any parsed segment. The surviving blacklist entries are shape-specific: python.*-c.*(import os|__import__('os')) requires the literal os-import spelling, and the xargs rules cover only rm/chmod/chown/mv/dd/mkfs, xargs -I ... sh and xargs ... bash. An interpreter one-liner that performs its work via subprocess, pty or ctypes therefore matches nothing. Once validation passes, ShellCommander.execute launches the segment with asyncio.create_subprocess_exec(..., cwd=project_root, ...) with no seccomp, container or path confinement - and because the payload is interpreter code rather than a filesystem operation, the validate_project_path confinement used by the other tools is irrelevant. This is CWE-78 (OS command injection) compounded by CWE-863 (incorrect authorization), since the authorization model treats a general-purpose program launcher as if it were a leaf utility. The advisory explicitly identifies this as a third instance of the same class after GHSA-4p93-4vf7-4m8r (find -exec) and GHSA-2rr7-8xrw-gmhr (git config), and the upstream fix generalizes the validator: the commit diff adds explicit handling for launcher nesting depth caps (SHELL_MAX_LAUNCHER_NESTING), program-naming flag suffixes, git global/optional-argument flags, ripgrep --pre/--hostname-bin and awk program-file and value flags, plus config-key suffix backstops. Authentication requirements are not confirmed from available data beyond the CVSS vector, which specifies PR:L; the trigger requires the ability to influence a model-issued command, typically via prompt injection from analyzed repository or web content.
Know when Python gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Local agent-tool vector (AV:L), no special timing (AC:L), attacker needs to drive a model-issued command and default mode needs a human approval click (PR:L/UI:R); interpreter runs unconfined giving full C:H/I:H/A:H.
Primary rating from Vendor (github).
CVSS VectorVendor: github
Lifecycle Timeline
2DescriptionCVE.org
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.
Technical POC Analysis
CWE-78 (OS command injection; the advisory also tags CWE-863) in the model-facing executeshellcommand tool of code-graph-rag.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
A high-severity command execution flaw in Code Graph RAG (versions 0.0.844 and earlier) allows a model-generated shell command to bypass the product's command validator and run arbitrary code as the tool's process user, outside any project-root confinement. Teams running this tooling-especially in unattended --yolo mode-could face unauthorized code execution on developer and analysis systems, which leadership should treat as a potential path to data exposure and lateral movement rather than a mere developer inconvenience.
Vendor-released patch: 0.0.845. Until deployed, disable --yolo unattended mode, require and scrutinize human approval for any command invoking xargs with interpreter launchers, and run the tool under a least-privilege account isolated from sensitive repositories and credentials.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
OS command injection occurs when an application passes unsanitized user input directly into system shell commands.
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
Wazuh SIEM platform versions 4.4.0 through 4.9.0 contain an unsafe deserialization vulnerability in the DistributedAPI t
BentoML version 1.4.2 and earlier contains an unauthenticated remote code execution vulnerability through insecure deser
pgAdmin 4 contains critical remote code execution vulnerabilities in the Query Tool download and Cloud Deployment endpoi
The renderLocalView function in render/views.py in graphite-web in Graphite 0.9.5 through 0.9.10 uses the pickle Python
BentoML is a Python library for building online serving systems optimized for AI apps and model inference. Rated critica
OpenSSL before 0.9.8za, 1.0.0 before 1.0.0m, and 1.0.1 before 1.0.1h does not properly restrict processing of ChangeCiph
pyLoad download manager version prior to 0.5.0b3.dev77 exposes the Flask SECRET_KEY through an unauthenticated endpoint.
Langflow (a visual LLM pipeline builder) contains a critical unauthenticated code execution vulnerability (CVE-2026-3301
In Mercurial before 4.1.3, "hg serve --stdio" allows remote authenticated users to launch the Python debugger, and conse
Unauthenticated remote code execution affects Kestra OSS (the open-source event-driven orchestration platform) prior to
Unauthenticated remote code execution in Marimo ≤0.20.4 allows attackers to execute arbitrary system commands via the `/
pyLoad is the free and open-source Download Manager written in pure Python. Rated medium severity (CVSS 5.3), this vulne
EUVD-2026-139635
NVD
CVE.org
EPSS
Vulnrichment
GitHub
Exploit-DB