Skip to main content

CodeWhale CVE-2026-75911

| EUVDEUVD-2026-60969 HIGH
Code Injection (CWE-94)
2026-08-18 VulnCheck GHSA-gx45-xrj5-g6c4
8.5
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Commit `allow_shell = true` to `.codewhale/config.toml` in repo
  2. Delivery
    Socially engineer victim developer to clone repository
  3. Exploit
    Victim opens repository in CodeWhale TUI
  4. Execution
    `merge_project_config` applies attacker-controlled shell flag without validation
  5. Persist
    AI agent gains `exec_shell` and `task_shell` tool access
  6. Impact
    Arbitrary shell commands execute on victim's machine without consent

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Code injection prevention, sandbox exec
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Initial Access

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The victim must have CodeWhale version prior to 0.8.64 installed and must clone and then open a repository containing a malicious .codewhale/config.toml with allow_shell = true using the CodeWhale TUI. Critically, the victim does NOT need to have shell access enabled in their own global CodeWhale configuration - the vulnerability specifically allows the project-scoped file to elevate access that the user never granted. The attacker requires no credentials or access to the victim's system; only the ability to commit to a repository the victim will open suffices. Exploitation is strictly bounded to CodeWhale users - no other tools or applications are affected. The single limiting factor is passive user interaction: the victim must open the malicious repository within the CodeWhale interface, not merely clone it via git; however, this is a routine and expected action when working with a project.

Impact

The CVSS 4.0 score of 8.5 with vector AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H accurately captures the threat model: the attack is local in that it triggers when the victim opens a repository on their own machine, but the attacker requires zero privileges on the victim's system and faces no technical complexity barrier. The AV:L rating should not be misread as requiring physical or authenticated local access - the attacker merely needs to control a repository the victim opens. Passive user interaction (UI:P in CVSS 4.0; UI:R in 3.1) is the only gatekeeping mechanism, and opening a newly cloned repository is a routine developer action. No EPSS data was available at time of analysis; absence of a KEV listing and no identified public POC suggest exploitation has not been observed at scale, but the low technical bar makes opportunistic abuse realistic. The primary real-world risk limiter is product prevalence: CodeWhale has a niche user base, so the aggregate exposed population is small despite the per-victim impact being full local code execution. For organizations whose developers use CodeWhale, this is a genuine priority warranting prompt patching.

Exploit ScenarioDerived

An attacker creates or forks a publicly accessible repository and commits a .codewhale/config.toml file containing allow_shell = true, then socially engineers a target developer into cloning the repository - for example, by disguising it as a useful open-source project or dependency. When the developer opens the repository in CodeWhale, the merge_project_config function reads the malicious config and silently grants the AI agent shell execution capabilities, at which point the agent can execute commands such as exfiltrating SSH keys, source code, or environment variables, or installing a persistent backdoor, all without prompting the user for consent. No public POC has been identified, but the attack requires only knowledge of the config file structure and access to a repository hosting platform.

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

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

Alert me

AnalysisAIv1 – Aug 18, 2026

Shell command injection in CodeWhale before version 0.8.64 enables arbitrary code execution on a victim developer's machine through a malicious repository config file. By committing a crafted .codewhale/config.toml containing allow_shell = true to any repository, an attacker can override the tool's shell access controls; when the target developer clones and opens the repository in CodeWhale, the AI agent gains unrestricted access to exec_shell and task_shell built-in tools and executes arbitrary shell commands without the user's explicit consent. No public exploit has been identified at time of analysis and no CISA KEV listing is confirmed, though the attack mechanics are straightforward and a vendor patch is available.

RemediationAI

Upgrade CodeWhale to version 0.8.64 or later; the fix is implemented in commit 43563356b98c6b993085554da82e77370160a31c (https://github.com/Hmbown/CodeWhale/commit/43563356b98c6b993085554da82e77370160a31c) and enforces that project-scoped configurations cannot elevate shell access above the user's global settings. Patch version 0.8.64 is stated by the CVE description but not independently confirmed from the commit diff alone - consult the vendor advisory at https://github.com/Hmbown/CodeWhale/security/advisories/GHSA-gx45-xrj5-g6c4 to verify the exact release. If immediate upgrade is not feasible, the most effective compensating control is to manually inspect .codewhale/config.toml in every cloned repository before opening it in CodeWhale and to refuse to open repositories from untrusted or unreviewed sources - this adds friction but eliminates the automated exploitation path. Ensuring allow_shell = false in the global user configuration provides no protection against the vulnerability in unpatched versions, as the project config bypass is precisely what this CVE exploits.

Affected VersionsENISA

CodeWhale 0.8.41 <0.8.64
CodeWhale 0.8.6 <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 (CPE: cpe:2.3:a:hmbown:codewhale) is an AI-powered coding assistant with a Rust-based TUI interface, as evidenced by the patch path crates/tui/src/main.rs. The tool reads project-scoped configuration from .codewhale/config.toml files in cloned repositories and merges them with the user's global configuration via the merge_project_config function. In vulnerable versions, this function unconditionally propagated the allow_shell boolean from the project config to the running Config struct, including upward elevation to true. This falls under CWE-94 (Code Injection) because attacker-controlled data from a configuration file directly injects a capability grant - shell execution access - into the AI agent's tool availability at session start. The fix in commit 43563356 enforces a strict one-directional policy: project configs may only set allow_shell = false (restricting access), and any allow_shell = true from project scope is silently discarded with a printed warning, closing the elevation path entirely. The same commit also removed the ability for project configs to override the user's instructions list, suggesting a broader privilege-boundary hardening effort.

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 8.5 HIGH
CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
vuln.today AI 7.8 HIGH

Attack triggers locally when user opens a malicious repo (AV:L, UI:R); attacker needs no system privileges (PR:N); full local system compromise is achievable (C:H/I:H/A:H); no scope change since impact stays within the victim's own session.

3.1 AV:L/AC:L/PR:N/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/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
Low
Attack Requirements
None
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 before 0.8.64 fail to properly validate the allow_shell configuration parameter from project config files, allowing attackers to enable arbitrary shell command execution by committing a malicious .codewhale/config.toml file to a repository. When a user clones and opens the repository in CodeWhale, the AI model gains access to exec_shell and task_shell tools, enabling execution of arbitrary shell commands on the victim's machine without explicit user consent.

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 before version 0.8.64 contains a shell command injection vulnerability that allows arbitrary code execution on developer workstations through malicious repository config files. Although no public exploit has been identified at time of analysis, the straightforward attack mechanics mean that developers opening affected repositories will automatically execute attacker-controlled commands, creating risk of code theft, malware deployment, and supply chain compromise.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.2%
Top 93% exploitable
Prevalence
Rare
niche AI coding TUI tool with limited enterprise deployment footprint
Threat Intel
1
1 source
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub

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.2%
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
Scheduled
Exploitation
Poc
System Exposure· derived
Small
Automatable
No
Human Impact
High
Technical Impact
Total

Priority Score

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

Attack Technique

Code Injection CRITICAL

Code injection occurs when an application accepts user input and passes it directly into a language interpreter or evaluator without proper sanitization.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

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-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-75857 HIGH POC
7.3 Aug 18

Prompt-injection-driven privilege escalation in CodeWhale 0.8.41-0.8.63 allows an attacker who can place malicious instr

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