Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessPlant injected instructions in repo/issue/page
-
DeliveryAgent ingests attacker-controlled content
-
ExploitModel emits exec_shell with fd/rg exec flag
-
ExecutionClassifier auto-approves as parallel read-only
-
ImpactSilent arbitrary program execution on developer host
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 | Requires CodeWhale (DeepSeek/MiMo terminal coding agent) at version <= 0.8.67 running in its default interactive Agent profile, and the agent must process attacker-controlled content so that indirect prompt injection coerces the model into emitting an exec_shell call using an exec-capable but allowlisted command: |
| Impact | This is a genuine, prioritize-this-week issue rather than a paper-high-CVSS finding, but its reach is bounded by product footprint and exploitation difficulty. The CVSS vector (AV:N/AC:H/PR:N/UI:N, C:H/I:H/A:H, score 8.1) describes unauthenticated, no-interaction compromise with full confidentiality/integrity/availability impact, the high severity driven by the AC:H trigger condition. PR:N correctly reflects that no user approval or authentication is required - the whole point of the flaw is that the approval prompt the default interactive profile promises is silently skipped. The vuln.today decision label is 'this_week', consistent with a confirmed, maintainer-validated approval-bypass that yields arbitrary program execution. No EPSS score and no CISA KEV entry were provided, and there is no signal of active exploitation, so this should be treated as a confirmed-but-not-yet-exploited bug. A detailed public PoC reference exists in the GHSA advisory (metachar-free commands such as |
| Exploit ScenarioDerived | An attacker plants instructions in content the CodeWhale agent will read - a repository file, issue, or fetched web page - that coerce the model into emitting an exec_shell call like |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 16, 2026
Arbitrary external program execution on the developer host is achievable through CodeWhale (DeepSeek/MiMo terminal coding agent) 0.8.67 and earlier, because the default interactive Agent profile's 'parallel read-only' classifier auto-approves fd, rg and git grep invocations that carry exec-capable flags (fd -x/--exec/--exec-batch, rg --pre, git grep -O/--open-files-in-pager), so the approval prompt the profile promises is never shown. An attacker who controls content the agent ingests - a repo file, an issue, or a fetched page - can use indirect prompt injection to make the model emit such an exec_shell call and run any binary with attacker-chosen arguments, unauthenticated and without user interaction. The maintainers validated the report and fixed it in 0.9.0; the advisory documents proof-of-concept command payloads (not verified as working exploit code) and no active exploitation (CISA KEV) is recorded. This is a genuine prioritize-this-week item rather than a paper-high finding, although its reach is bounded by product footprint and the probabilistic nature of the model coercion required.
RemediationAI
Vendor-released patch: upgrade to CodeWhale 0.9.0 or later, available from https://github.com/codewhale-hq/Codewhale/releases/tag/v0.9.0, which contains commit 208421b9d23d81cea3311a1eeb2a2ea81d637686; per the advisory everyone on 0.8.67 or earlier should upgrade. The fix adds has_exec_capable_readonly_flag to the classifier so that fd --exec/--exec-batch and short-flag forms containing x or X, rg --pre/--pre=, and git grep -O/--open-files-in-pager (including combined and = forms) are no longer classified as parallel read-only and therefore no longer bypass the approval prompt; it also flips the automation auto_approve default from true to false in both the tool schema and DEFAULT_AUTOMATION_AUTO_APPROVE. For environments that cannot upgrade immediately, the documented pre-0.9.0 configuration levers are limited: explicitly set automation auto_approve to false where automation records are created (the pre-fix default was true, so leaving it unset leaves that path open), and treat everything the agent ingests - repository files, issues, fetched pages - as attacker-controlled, since the trigger is indirect prompt injection and the shell approval gate itself cannot be re-configured to repair the misclassification; the trade-off is that restricting the agent to trusted content removes much of its usefulness, and no per-binary way to disable the fd, rg or git grep auto-approval path is described in the available sources.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in cargo, npm, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
CodeWhale is a Rust terminal UI agent (crates codewhale-tui, also shipped as the npm package codewhale) that is explicitly documented to gate every shell command behind an approval prompt in its default interactive Agent profile (config.rs:3725-3736). The flaw is a control-logic defect in that gate, rooted in CWE-78 (OS command injection) combined with CWE-863 (incorrect authorization). ExecShellTool::approval_requirement_for downgrades exec_shell from Required to Auto whenever exec_shell_input_is_parallel_readonly returns true (shell.rs:2314-2320). That classifier strips flags, rejects shell metacharacters, and matches the flag-stripped base command against PARALLEL_READONLY_PREFIXES (command_safety.rs:363-385, 419-433), which contains fd, rg and git grep; because fd and rg are absent from COMMAND_ARITY, an invocation such as 'fd -u -tf -x ./pwn.sh' canonicalizes to plain 'fd'. registered_tool_approval_required then returns false for Auto at turn_loop.rs:37-38 before the auto_approve check is reached, so no prompt appears even for users who never enabled the auto-approve mode. The second gate at the execution sink, analyze_command, only blocks SafetyLevel::Dangerous and rates fd and rg as Safe via SAFE_COMMANDS (command_safety.rs:527,530), so the block at shell.rs:2408 never fires. The default execpolicy is empty (engine.rs:494), which resolves to Skip, and the interactive-origin auto_review safety_floor only holds Publish, not interactive shell. The CVSS vector AV:N/AC:H/PR:N/UI:N reflects that no credentials or user interaction are needed, but that the model must actually be induced to emit the crafted metacharacter-free command, which the exec flags of the underlying utilities - not a shell - turn into program execution.
Know when Codewhale 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:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Injection delivered over the network (AV:N); success hinges on coercing the model and evading the approval gate (AC:H); no auth or approval needed (PR:N/UI:N); arbitrary execution on host yields full C/I/A.
Primary rating from Vendor (GitHub_M).
CVSS VectorVendor: GitHub_M
Lifecycle Timeline
2DescriptionCVE.org
CodeWhale is a DeepSeek and MiMo coding agent for the terminal. Prior to 0.9.0, the ExecShellTool::approval_requirement_for path used is_parallel_readonly_command to downgrade commands to automatic approval based on a flag-stripped command allowlist. The allowlist treated fd, rg, and git grep as read-only even when fd -x or fd --exec, rg --pre, or git grep --open-files-in-pager selected an external program. registered_tool_approval_required returned without displaying a prompt for that automatic classification, and the later command-safety check also treated the base utilities as safe. Attacker-controlled content that influenced an agent tool call could therefore cause arbitrary program execution on the developer host without the approval promised by the default interactive profile, resulting in unauthorized access, modification, or disruption. This issue is fixed in version 0.9.0.
Technical POC Analysis
Improper neutralization of special elements in an OS command (CWE-78), with a secondary incorrect authorization weakness (CWE-863) in the approval gate.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CodeWhale versions 0.8.67 and earlier contain a high-severity flaw that allows attackers to execute arbitrary programs on developer hosts by bypassing the approval prompt via crafted repository content or web pages. This impacts all development teams using the tool, potentially leading to unauthorized code execution, data breaches, and supply chain compromise.
Apply vendor patch (upgrade to CodeWhale 0.9.0 or later). If patching is delayed, restrict the tool's execution to sandboxed environments, disable the 'parallel read-only' classifier, and enforce network segmentation to limit attacker reach.
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.
Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.
Server-side request forgery in CodeWhale before 0.8.64 lets remote attackers reach internal-only IP addresses through th
Environment variable inheritance in CodeWhale's js_execution tool prior to version 0.8.64 allows crafted JavaScript payl
Unauthenticated file disclosure in CodeWhale before 0.8.64 allows arbitrary local file reads via the image_analyze tool'
Arbitrary file read in CodeWhale before version 0.8.64 allows an attacker to exfiltrate files from a developer's worksta
Argument injection in CodeWhale's git_show tool (versions 0.8.41-0.8.63) allows an attacker to cause arbitrary file writ
Remote code execution in CodeWhale (packages codewhale and codewhale-tui) versions 0.8.41 through 0.8.63 allows an attac
Shell command injection in CodeWhale before version 0.8.64 enables arbitrary code execution on a victim developer's mach
Argument injection in CodeWhale versions before 0.8.64 exposes arbitrary files on the host system by accepting unsanitiz
Prompt-injection-driven privilege escalation in CodeWhale 0.8.41-0.8.63 allows an attacker who can place malicious instr
CodeWhale's automation subsystem resolves an omitted auto_approve setting to true, so a single approved automation_creat
EUVD-2026-126598
GHSA-3mgh-93r5-r7jf
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB