Skip to main content

CodeWhale CVE-2026-75857

| EUVDEUVD-2026-60964 HIGH
Improper Privilege Management (CWE-269)
2026-08-18 VulnCheck GHSA-g29h-pfmp-qp9r
7.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Attacker embeds prompt injection in reachable external content
  2. Delivery
    Agent fetches or processes malicious resource
  3. Exploit
    Injected instructions direct agent to write commands via exec_shell_interact
  4. Execution
    ApprovalRequirement::Auto suppresses approval prompt
  5. Persist
    Commands silently written to stdin of already-approved privileged shell
  6. Impact
    Arbitrary execution at privilege level of approved process

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V8 - Authorization Least privilege enforcement
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

Exploitation requires all three conditions to hold simultaneously: (1) CodeWhale version >= 0.8.41 and < 0.8.64 is installed; (2) the user has started and approved a long-running interactive shell via exec_shell_interact - specifically processes such as python3 -i, mysql, ssh, or sudo -i - that remains open during the agent task; and (3) the agent ingests attacker-controlled content (a fetched web page, MCP server result, or repository file containing prompt injection instructions). Limiting factors: the user must have independently initiated and explicitly approved the interactive session before the injection occurs; the attacker has no direct network access to CodeWhale; and per the CVSS 4.0 AT:P metric, a specific attack precondition (the open approved session) must exist. Unapproved or non-interactive shell invocations are not vulnerable to this bypass.

Impact

The CVSS 4.0 vector (AV:L/AC:H/AT:P/PR:N/UI:P, score 7.3) accurately reflects this attack's dependency on local execution context and a specific pre-existing condition: the user must have already started and approved an interactive shell. The High VC/VI/VA ratings are well-founded - unrestricted stdin injection into a sudo -i or ssh session is effectively root-level arbitrary execution. No KEV listing and no public POC have been provided in the source intelligence, meaning real-world exploitation has not been confirmed. EPSS data was not included, so exploitation probability quantification is not possible. The most realistic threat actors are supply-chain or watering-hole adversaries who can place prompt injection payloads in resources the agent routinely fetches (documentation pages, MCP results, repository files). AC:H and AT:P correctly capture that the attack chain requires the user to have independently approved a privileged session during the same agent task - a non-trivial precondition that substantially limits opportunistic exploitation despite the severe potential impact.

Exploit ScenarioDerived

An attacker embeds prompt injection instructions in a publicly accessible resource the CodeWhale agent is directed to fetch - a repository README, a documentation page, or a malicious MCP server response. The agent, treating the injected text as legitimate LLM instructions, invokes exec_shell_interact to write attacker-controlled commands into the stdin of a sudo -i session the user already approved and left running. Because ApprovalRequirement::Auto suppresses the approval prompt, those commands execute at root privilege with no user notification. No public POC exists at time of analysis, but the attack path requires only control over content the agent ingests.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
1 PoC candidate (unverified) Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Aug 18, 2026

Prompt-injection-driven privilege escalation in CodeWhale 0.8.41-0.8.63 allows an attacker who can place malicious instructions in content the agent ingests to execute arbitrary commands inside an already-approved long-running interactive shell session - such as python3 -i, mysql, ssh, or sudo -i - without triggering any user approval prompt. The root cause is that exec_shell_interact (and its RlmEvalTool counterpart) hardcoded ApprovalRequirement::Auto, overriding the default Required gate that governs code-executing tools. Fixed in version 0.8.64; no public exploit or CISA KEV listing has been identified at time of analysis.

RemediationAI

Upgrade to CodeWhale version 0.8.64 or later, which applies the fix from commit 57f3c89471e27ac4032d9791f6885e5d4408c381 and is confirmed by the GitHub security advisory at https://github.com/Hmbown/CodeWhale/security/advisories/GHSA-g29h-pfmp-qp9r. If immediate upgrade is not possible, two compensating controls reduce risk: first, avoid running CodeWhale agent tasks that fetch or process external untrusted content (web pages, third-party MCP server output, unknown repository files) while any interactive shell session is open - this severs the injection delivery path; second, refrain from launching privileged interactive shells (sudo -i, ssh, mysql with elevated credentials) during agent sessions, which limits the impact of any successful injection to the privilege level of the user's normal session. Both workarounds reduce but do not eliminate risk, as the approval gate bypass remains present in unpatched versions.

Affected VersionsENISA

CodeWhale 0.8.41 <0.8.64
CodeWhale 0.3.10 <0.8.41

Affected Packages

cargo codewhale fix: 0.8.64
cargo codewhale-tui fix: 0.8.64
cargo deepseek-tui fix: 0.8.41
npm codewhale fix: 0.8.64
npm codewhale-tui fix: 0.8.64
npm deepseek-tui fix: 0.8.41
euvd codewhale fix: 0.8.41, 0.8.64

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 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 TUI-based AI coding agent (vendor: hmbown, CPE cpe:2.3:a:hmbown:codewhale:*:*:*:*:*:*:*:*) that channels LLM output into local shell sessions. The affected surface is two tool implementations: ShellInteractTool in crates/tui/src/tools/shell.rs and RlmEvalTool in crates/tui/src/tools/rlm.rs. Both returned ApprovalRequirement::Auto from their approval_requirement() method, meaning the agent framework would silently write LLM-controlled stdin into an interactive process without presenting an approval dialog. CWE-269 (Improper Privilege Management) applies because the tools failed to enforce the privilege boundary between the LLM-controlled input stream and processes that may be running at elevated privilege levels. The commit 57f3c89471e27ac4032d9791f6885e5d4408c381 fixes both tools by switching to ApprovalRequirement::Required and adding ToolCapability::RequiresApproval, restoring the approval gate, and adds regression tests asserting the corrected behavior.

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

Vendor (VulnCheck) PRIMARY 7.3 HIGH
CVSS:4.0/AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.0 HIGH

AV:L because CodeWhale runs on the victim's local machine; AC:H and UI:R because an already-approved interactive shell must be running; PR:N because the attacker only needs to control content the agent fetches.

3.1 AV:L/AC:H/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
High
Attack Requirements
Present
Privileges Required
None
User Interaction
Passive
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
High
Vulnerable system: Availability
High
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

CodeWhale versions >= 0.8.41 and < 0.8.64 contain a vulnerability in the exec_shell_interact (alias exec_interact) tool, whose approval_requirement returns ApprovalRequirement::Auto. This overrides the default Required approval for code-executing tools, so LLM-controlled stdin is written into an already-approved long-running interactive shell (e.g., a python3 -i REPL, mysql, ssh, or sudo -i session) without any approval prompt. An attacker who can inject instructions via untrusted content the agent ingests (a fetched page, MCP result, or repo file) can cause commands to run at the privilege level of that approved process. Fixed in 0.8.64.

Latest POC

1 PoC candidate from github (unverified)

Sign in to open the public PoC links collected for this CVE.

Executive ViewAI

Why It Matters

CodeWhale interactive agent deployment versions 0.8.41-0.8.63 contain a vulnerability allowing attackers with data-input access to bypass approval controls and execute unauthorized commands on underlying systems. Affected organizations lose critical security controls that prevent unapproved code execution in production environments, creating risk of data breach, system compromise, or operational disruption. Patching to version 0.8.64 restores these enforcement controls.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Rare
niche AI coding agent by small vendor hmbown
Threat Intel
1
1 source
Data Quality
5 sources
Confidence: Medium

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC Yes
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

56
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.

CVE-2026-75856 CRITICAL POC
9.2 Aug 18

Server-side request forgery in CodeWhale before 0.8.64 lets remote attackers reach internal-only IP addresses through th

CVE-2026-75915 HIGH POC
8.7 Aug 18

Environment variable inheritance in CodeWhale's js_execution tool prior to version 0.8.64 allows crafted JavaScript payl

CVE-2026-75914 HIGH POC
8.7 Aug 18

Unauthenticated file disclosure in CodeWhale before 0.8.64 allows arbitrary local file reads via the image_analyze tool'

CVE-2026-75859 HIGH POC
8.7 Aug 18

Arbitrary file read in CodeWhale before version 0.8.64 allows an attacker to exfiltrate files from a developer's worksta

CVE-2026-75913 HIGH POC
8.5 Aug 18

Argument injection in CodeWhale's git_show tool (versions 0.8.41-0.8.63) allows an attacker to cause arbitrary file writ

CVE-2026-75858 HIGH POC
8.5 Aug 18

Remote code execution in CodeWhale (packages codewhale and codewhale-tui) versions 0.8.41 through 0.8.63 allows an attac

CVE-2026-75911 HIGH POC
8.5 Aug 18

Shell command injection in CodeWhale before version 0.8.64 enables arbitrary code execution on a victim developer's mach

CVE-2026-75912 HIGH POC
8.3 Aug 18

Argument injection in CodeWhale versions before 0.8.64 exposes arbitrary files on the host system by accepting unsanitiz

CVE-2026-83816 HIGH
8.1 Nov 16

Arbitrary external program execution on the developer host is achievable through CodeWhale (DeepSeek/MiMo terminal codin

CVE-2026-83817 HIGH
7.5 Nov 16

CodeWhale's automation subsystem resolves an omitted auto_approve setting to true, so a single approved automation_creat

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy