Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessDeliver prompt injection to agent
-
DeliveryModel calls automation_create (auto_approve omitted)
-
ExploitUser approves one benign-looking job
-
ExecutionScheduler fires with ApprovalMode::Bypass
-
PersistMutating tools/shell auto-run unattended
-
ImpactRecurring silent code execution and file changes
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization checks on every request
MITRE ATT&CK
1 technique across 1 tactic: Privilege Escalation The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires CodeWhale <= 0.8.67 with the automation subsystem active (it is wired by default in TUI and serve mode via with_runtime_task_tools, not feature-gated). The attacker must (1) get injectable content to the agent to induce an automation_create call, and (2) obtain ONE human approval of that creation (automation_create is marked Required, so the user sees a single prompt); the auto_approve field must be omitted or true so it resolves to the insecure DEFAULT_AUTOMATION_AUTO_APPROVE=true. For silent command execution specifically, the create call must also set allow_shell:true (allow_shell defaults to false); without it, every recurring run still silently authorizes all non-shell mutating tools (write_file, apply_patch, edit_file, git, MCP writes). Limiting factors defenders can rely on: the one-time creation approval, the need for an injection foothold, and that upgrading to 0.9.0 (where the default is flipped to false) is the complete fix. |
| Impact | This is a genuine authorization/insecure-default flaw (CWE-862, CWE-1188) in CodeWhale's automation subsystem, scored CVSS 7.5 with vector AV:N/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H. The network vector and PR:N (unauthenticated) are plausible because the trigger is model-facing content (prompt injection), but AC:H and UI:R correctly reflect that exploitation is not trivial: an attacker must both land a prompt injection AND get a human to approve one apparently-benign automation_create call. The vuln.today decision label is 'this_week' (not act_now/emergency). No EPSS score and no KEV listing are provided in the input, so there is no signal of active or widespread exploitation; combined with AC:H/UI:R, this points to a meaningful-but-not-drop-everything priority rather than a high-CVSS-low-real-risk issue. The real severity driver is that a SINGLE approval creates a durable, recurring, fully auto-approved agent (ApprovalMode::Bypass) - with allow_shell:true that becomes recurring silent command execution with no human present, which is why C/I/A are all High. Note the conflict defenders should weigh: raw CVSS looks like a one-shot network RCE, but the described mechanism is a consent-laundering/persistence flaw gated behind user approval and an attacker-supplied prompt injection - verify the delivery path (how injectable content reaches the agent) against your deployment before prioritizing. |
| Exploit ScenarioDerived | An attacker plants prompt-injection content that the CodeWhale agent ingests, steering the model to call automation_create for an innocuous-sounding recurring job (e.g. 'nightly-maintenance') with allow_shell:true and auto_approve omitted. The user sees and approves a single creation prompt, not realizing the omitted auto_approve resolves to true; thereafter every scheduled fire silently auto-approves mutating tools (and, with shell enabled, executes commands) with no human present. A public PoC reference exists in the GHSA advisory showing the exact automation_create payload; it is not verified as a working end-to-end exploit. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 16, 2026
CodeWhale's automation subsystem resolves an omitted auto_approve setting to true, so a single approved automation_create call yields a durable recurring agent whose every scheduled run executes under ApprovalMode::Bypass with no human present. CodeWhale 0.8.67 and earlier are affected; the flaw defeats the hardened task-path default introduced by CVE-2026-45374 and silently authorizes all non-shell mutating tools, and with allow_shell:true set at creation also delivers recurring silent shell execution. Version 0.9.0 flips the default to false and is the complete fix; no KEV entry or confirmed exploitation is reported, and a public PoC reference exists in the advisory (a prompt-injection sequence plus automation_create payload) but is not verified as working exploit code. CVSS 7.5 with AV:N/AC:H/PR:N/UI:R reflects that one user approval of the creation prompt is required, which is why this is a this_week priority rather than an emergency.
RemediationAI
Vendor-released patch: CodeWhale 0.9.0, available at https://github.com/codewhale-hq/Codewhale/releases/tag/v0.9.0 and detailed in GHSA-8hp3-xxrg-v9c8; upgrade every deployment of rust/codewhale-tui and npm/codewhale from <= 0.8.67 to 0.9.0 or later. The fix commit 208421b9d23d81cea3311a1eeb2a2ea81d637686 flips DEFAULT_AUTOMATION_AUTO_APPROVE to false, changes the automation_create schema default for auto_approve to false so durable automations require explicit opt-in, and additionally hardens command_safety.rs so that read-only parallel classification is refused for fd --exec/--exec-batch/-x/-X, rg --pre and git grep -O/--open-files-in-pager. Until the upgrade is deployed, choose among these compensating controls with their trade-offs: audit and delete or re-create existing automations that omit auto_approve (records created pre-patch store None, which still resolves to true), and re-create them with an explicit auto_approve:false so subsequent runs require approval; keep allow_shell out of any automation definition, accepting that automations then cannot run shell commands at all but non-shell mutating tools remain silently approved; and disable the automation tools for untrusted or injection-prone workloads by not enabling automation_create/automation_run, at the cost of losing scheduled automation entirely. Reviewing the single creation prompt is not a reliable control because the resolved auto_approve=true is not surfaced to the approver.
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 coding agent (shipped as the rust/codewhale-tui crate and the npm/codewhale package) built around tool-calling turns, a task manager and a durable automation scheduler. CWE-1188 (insecure default) is the root cause: in automation_manager.rs the sibling durable settings DEFAULT_AUTOMATION_ALLOW_SHELL and DEFAULT_AUTOMATION_TRUST_MODE both default to false, but DEFAULT_AUTOMATION_AUTO_APPROVE was set to true, and the automation_create tool schema advertised the same value via "auto_approve": {"type":"boolean","default":true}. CWE-862 (missing authorization) is the resulting weakness: create_automation stores auto_approve: None when the field is omitted, AutomationRecord::task_auto_approve() resolves None to true, and enqueue_run_task constructs the NewTaskRequest with auto_approve: Some(true). Because the value is Some, the task path's safer unwrap_or(false) fallback never applies, and the flag propagates to ApprovalMode::Bypass in runtime_threads.rs, where the background approval loop approves every tool call. The auto_review safety_floor only holds Publish actions and Destructive/Secret actions from background or headless origins, so ordinary write_file, apply_patch, edit_file, git and MCP write operations pass through unattended; the automation tools are registered by default through with_runtime_task_tools in both TUI and serve mode, so no non-default feature flag is needed on the victim side. The triggering route requires attacker-supplied injectable content to induce the automation_create call plus one human approval of that call, which is consistent with the AC:H and UI:R vector components.
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:R/S:U/C:H/I:H/A:H
Injection-driven so AV:N/PR:N, but needs successful injection plus a one-time human approval (AC:H, UI:R); unattended runs then yield full read/write/exec, so C:H/I:H/A:H.
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, DEFAULT_AUTOMATION_AUTO_APPROVE caused AutomationRecord::task_auto_approve to resolve an omitted setting to true, and the automation_create schema advertised the same insecure default. enqueue_run_task converted that omission into an explicit true value, bypassing the safer task-path fallback and selecting ApprovalMode::Bypass for each scheduled run. After a user approved creation of an apparently benign recurring automation, subsequent executions could silently authorize mutating tools without a human present, and an automation created with shell access could repeatedly execute commands. This issue is fixed in version 0.9.0.
Technical POC Analysis
CWE-862 (Missing Authorization), composite with CWE-1188 (insecure default initialization - the advisory lists both).
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
CVE-2026-83817 affects CodeWhale versions 0.8.67 and earlier, where an omitted setting causes scheduled automation runs to execute with approval bypass, enabling silent and recurring execution of mutating tools and potentially shell commands. This undermines a previously hardened security default and could allow unauthorized changes to critical systems, impacting the integrity of automated workflows and requiring immediate leadership attention to prevent operational disruptions.
No vendor-released patch identified at time of analysis
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
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
Arbitrary external program execution on the developer host is achievable through CodeWhale (DeepSeek/MiMo terminal codin
EUVD-2026-126599
GHSA-8hp3-xxrg-v9c8
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB