Skip to main content

CodeWhale CVE-2026-75913

| EUVDEUVD-2026-60971 HIGH
External Control of File Name or Path (CWE-73)
2026-08-18 VulnCheck GHSA-7j5w-7r7x-9v27
8.5
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Recon
    Attacker crafts malicious git repository
  2. Delivery
    Embeds prompt injection in repository content (README, commit message, git notes)
  3. Exploit
    Victim opens repository in vulnerable CodeWhale TUI
  4. Install
    Injected instruction coerces model to call git_show with rev='--output=~/.ssh/authorized_keys'
  5. C2
    Auto-approved tool executes git show --output= without user prompt
  6. Execute
    Attacker SSH public key written to authorized_keys
  7. Impact
    Attacker achieves persistent SSH access

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File name/path control
Exploitation Conditions

Exploitation requires two concurrent conditions: (1) the victim must be running a vulnerable CodeWhale version (0.8.41 to 0.8.63) and must open or interact with a repository containing attacker-controlled content capable of triggering prompt injection - this is a non-default user action (opening an untrusted repo) but requires no special configuration; (2) the prompt injection payload must successfully cause the language model to invoke the git_show or git_blame tool with a rev value beginning with --, which depends on the model's instruction-following behavior and the sophistication of the injected content. What limits exploitation: the attacker cannot remotely call the tool directly - they can only influence it indirectly via prompt injection, making reliable exploitation model-dependent. The write target is bounded by the invoking user's filesystem permissions; root-owned files are not reachable unless CodeWhale is run as root (non-default). No network listener or open port is required on the victim machine - the attack is delivered through the repository content itself.

Impact

The CVSS 4.0 score of 8.5 (AV:N/AC:L/AT:N/PR:N/UI:P) reflects a credible but multi-stage attack: the victim must open a malicious repository, and prompt injection must succeed in coercing the model into calling git_show with a crafted rev value. The AC:L rating in the provided vector is arguably optimistic given the prompt injection prerequisite; in practice, reliable exploitation requires careful repository crafting and a model that follows embedded instructions without challenge. The integrity impact is high (VI:H/SI:H) because the write target is only constrained by the operating system's file permissions for the invoking user - SSH authorized_keys, shell rc files, and git configuration are all reachable. No EPSS score was provided and the vulnerability is not in CISA KEV, so there is no confirmed evidence of active exploitation. The auto-approval bypass is the most consequential amplifier: a tool the user has implicitly trusted as safe becomes the write primitive. Real-world risk is meaningful for developers who use CodeWhale with untrusted repositories or whose workflows expose them to prompt injection via repository content (e.g., malicious README, .git/hooks, or COMMIT_EDITMSG content).

Exploit ScenarioDerived

An attacker publishes a malicious git repository containing prompt injection content embedded in repository metadata (e.g., a crafted COMMIT_EDITMSG, README, or git note) that instructs the CodeWhale model to call git_show with rev set to --output=/home/victim/.ssh/authorized_keys. When the victim opens or pulls the repository in an affected CodeWhale version, the model processes the injected instruction and invokes git_show with the crafted argument; because the tool is auto-approved, no confirmation dialog appears. Git interprets --output= as a file-write flag and silently overwrites the victim's SSH authorized_keys file with the git show output, enabling the attacker to inject their own public key and gain persistent SSH access to the victim's machine. No public exploit code has been identified at time of analysis.

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

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

Alert me

AnalysisAIv1 – Aug 18, 2026

Argument injection in CodeWhale's git_show tool (versions 0.8.41-0.8.63) allows an attacker to cause arbitrary file writes at the invoking user's privilege level via a malicious repository combined with prompt injection. The model-supplied rev parameter is passed directly to git show argv without an --end-of-options sentinel, meaning a value beginning with --output= is interpreted by git as a file-write flag rather than a revision. Because the git_show tool is registered as auto-approved and advertised as read-only, exploitation bypasses the user confirmation prompt entirely, enabling silent overwrite of sensitive files such as ~/.ssh/authorized_keys or ~/.bashrc. No public exploit has been identified at time of analysis, and a vendor-released patch is available in version 0.8.64.

RemediationAI

Upgrade to CodeWhale version 0.8.64 or later, which introduces the validate_git_rev() function rejecting any revision string that is empty, begins with a hyphen (-), or contains null bytes or ASCII control characters. The patch is confirmed at commit 9a34b5034d29f05d1f28fa61b04719ca6a741020 and documented in the vendor advisory at GHSA-7j5w-7r7x-9v27. If an immediate upgrade is not possible, the most effective compensating control is to revoke the auto-approval designation for the git_show and git_blame tools in CodeWhale's tool configuration, forcing user confirmation before each invocation - this eliminates the silent-write risk at the cost of requiring manual approval for every git history lookup. Additionally, restricting CodeWhale use to trusted repositories (avoid cloning or opening repositories from untrusted sources) significantly reduces the prompt injection attack surface. Do not rely on operating-system file permissions alone as a compensating control, as the write target is constrained only by the invoking user's permissions.

Affected VersionsENISA

CodeWhale 0.3.27 <0.8.41
CodeWhale 0.8.41 <0.8.64

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-assisted terminal UI coding tool that exposes git operations - including git show and git blame - as model-callable tools. These tools pass user-controllable (or in this case, model-controllable) parameters directly into subprocess argv arrays. The vulnerability (CWE-73: External Control of File Name or Path) arises because the rev parameter supplied by the language model is not validated before being appended to the git show argument vector. Git interprets any argument beginning with -- as a flag; specifically, --output=<path> causes git to write its output to an arbitrary filesystem path rather than stdout. The absence of an --end-of-options (--) sentinel before the rev argument means git cannot distinguish between an option and a legitimate revision. Critically, the tool is declared as auto-approved and read-only in the tool registry, so the MCP/tool-use layer does not prompt the user for confirmation, turning a seemingly benign read operation into a silent write primitive.

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:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:H/SC:N/SI:H/SA:H
vuln.today AI 6.9 MEDIUM

AC:H reflects mandatory prompt injection prerequisite; S:C because git writes escape application scope to user's SSH and shell config files; A:L for potential file corruption.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

DescriptionCVE.org

CodeWhale (codewhale / codewhale-tui) versions >= 0.8.41 and < 0.8.64 contain an argument injection vulnerability in the git_show tool. The model-supplied rev parameter is passed unvalidated into the git show argv without an --end-of-options sentinel, so a value beginning with --output= is interpreted as a git flag. Because the tool is registered as auto-approved and advertised as read-only, an attacker (via a malicious repository combined with prompt injection) can cause an unprompted arbitrary file write at the privilege of the invoking user, targeting sensitive files such as ~/.ssh/authorized_keys, ~/.bashrc, or ~/.gitconfig. Fixed in 0.8.64 by adding rev validation.

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's git_show tool (versions 0.8.41-0.8.63) contains an argument injection vulnerability that enables silent, unauthorized overwriting of critical user files including SSH keys and shell configurations. While no public exploit has been identified at time of analysis, the attack surface is wide: exploitation requires only malicious repository content and prompt manipulation, yet completely bypasses user confirmation dialogs. Organizations using affected versions face significant risk of credential compromise and lateral movement through victim user accounts.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 74% exploitable
Prevalence
Low
niche developer TUI tool, limited production deployment footprint
Threat Intel
1
1 sources
Data Quality
6 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA GitHub VulDB

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.3%
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
Open
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

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-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-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