Skip to main content

CodeWhale CVE-2026-75912

| EUVDEUVD-2026-60970 HIGH
Improper Neutralization of Argument Delimiters in a Command ('Argument Injection') (CWE-88)
2026-08-18 VulnCheck GHSA-c6mw-8xh8-gpq6
8.3
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Embed prompt injection in repository content
  2. Delivery
    Developer opens repo in vulnerable CodeWhale
  3. Exploit
    AI model calls git_blame with attacker-supplied rev
  4. Execution
    git executes with --contents flag reading arbitrary file
  5. Persist
    Sensitive file contents (SSH keys, credentials) returned as tool output
  6. Impact
    Attacker recovers credentials for lateral movement

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Argument sanitization
Exploitation Conditions

Exploitation requires that the attacker control or influence the value of the rev parameter passed to CodeWhale's git_blame or git_show tools. In practice, the most realistic vector is a prompt injection payload embedded in repository content (README, source files, commit messages) that causes the AI model to invoke the tool with a crafted rev value - this requires passive user interaction (UI:P), specifically a developer opening and interacting with a repository containing malicious content. Exploitation is further limited to CodeWhale versions before 0.8.64 and requires that the git_blame or git_show tool functionality be exercised during the session. No authentication is required per the CVSS 4.0 PR:N metric. The primary limiting factor is the prompt injection prerequisite: an attacker cannot directly call the tool without first causing the model to do so, which depends on the model's behavior when processing attacker-controlled content.

Impact

The CVSS 4.0 score of 8.3 with vector AV:N/AC:L/AT:N/PR:N/UI:P reflects the attack's low complexity and high confidentiality impact on both the vulnerable system (VC:H) and subsequent systems (SC:H). The SC:H rating is particularly significant: stolen SSH keys and credentials returned as tool output can immediately enable lateral movement to other infrastructure, making the downstream blast radius substantially larger than a local file read alone. No EPSS data was provided for this CVE; KEV listing is not confirmed, meaning active exploitation in the wild is unverified. The UI:P requirement (passive user interaction - a developer must have the tool open and process content that triggers the git_blame invocation) moderates opportunistic mass exploitation, but in AI-assisted development environments where tool calls are triggered automatically by model reasoning, this barrier may be weaker than traditional UI:P scenarios. The practical risk is highest for developers using CodeWhale to interact with untrusted or attacker-influenced repositories, where prompt injection via repository content can chain into this vulnerability. Organizations running CodeWhale in CI/CD pipelines or shared developer environments should treat this as urgent regardless of KEV status.

Exploit ScenarioDerived

An attacker embeds a prompt injection payload in a README or source file within a public repository - for example, an instruction directing the AI model to call git_blame on a specific file with rev set to --contents=/home/user/.ssh/id_rsa. When a developer opens the repository in a vulnerable CodeWhale version, the model processes the content, calls GitBlameTool with the injected rev, and receives the SSH private key as tool output. The attacker, controlling the repository or intercepting the interaction, recovers the credential for use in subsequent lateral movement.

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 versions before 0.8.64 exposes arbitrary files on the host system by accepting unsanitized option-shaped values in the git_blame and git_show tools' rev parameter. An unauthenticated remote attacker who can influence the rev value - for example via a prompt injection payload in a malicious repository - can supply flags such as --contents=/home/user/.ssh/id_rsa, causing git to read and return the targeted file as tool output visible to the AI model. Vendor-released patch: 0.8.64 is available; no public exploit identified at time of analysis.

RemediationAI

Upgrade CodeWhale to version 0.8.64 or later, which contains the input validation fix introduced in commit 9a34b5034d29f05d1f28fa61b04719ca6a741020. The fix is documented in the vendor advisory at https://github.com/Hmbown/CodeWhale/security/advisories/GHSA-c6mw-8xh8-gpq6 and the VulnCheck advisory at https://www.vulncheck.com/advisories/codewhale-before-argument-injection-via-git-blame. If an immediate upgrade is not possible, a specific compensating control is to restrict CodeWhale's use to trusted, internally controlled repositories only, preventing attacker-influenced content from reaching the git_blame or git_show tools. Additionally, running CodeWhale under a dedicated low-privilege user account with read-only access to only the necessary project directories limits the files an attacker can exfiltrate even if exploitation succeeds, though this does not prevent the vulnerability from being triggered.

Affected VersionsENISA

CodeWhale 0.8.41 <0.8.64
CodeWhale 0.3.27 <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 Rust-based terminal UI application (crate path crates/tui/src/tools/git_history.rs) that wraps git operations as LLM-callable tools. The vulnerable components are GitBlameTool and GitShowTool, both of which accepted a caller-supplied rev string and interpolated it directly into git subprocess arguments without sanitization. CWE-88 (Improper Neutralization of Argument Delimiters in a Command) is the root cause: when user-controlled data is concatenated into a command argument list, a leading dash transforms the value into an option flag rather than a positional argument - in this case, git's --contents flag reads a file from the filesystem and returns its contents. The affected CPE is cpe:2.3:a:hmbown:codewhale:*:*:*:*:*:*:*:* covering all versions prior to 0.8.64. The fix (commit 9a34b5034d29f05d1f28fa61b04719ca6a741020) introduces a validate_git_rev function that rejects strings starting with a dash, as well as null bytes and ASCII control characters, before any git execution occurs.

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

Network-reachable, no auth required, passive user interaction needed; scope changes because stolen credentials impact systems beyond CodeWhale itself.

3.1 AV:N/AC:L/PR:N/UI:R/S:C/C:H/I:N/A:N
4.0 AV:N/AC:L/AT:N/PR:N/UI:P/VC:H/VI:N/VA:N/SC:H/SI:N/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
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
High
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

CodeWhale versions before 0.8.64 contain an argument injection vulnerability in the git_blame tool that allows attackers to read arbitrary files by injecting git options into the unvalidated rev parameter. Attackers can supply rev values like --contents=/path/to/file to exfiltrate sensitive files such as SSH keys and credentials through the tool output returned to the model.

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 versions before 0.8.64 allow unauthenticated attackers to read arbitrary files from affected systems through argument injection, potentially exposing SSH keys, API credentials, and other sensitive data. This vulnerability presents a critical data breach risk if CodeWhale instances are exposed to untrusted repositories or prompt injection attacks. Immediate patching is required to prevent unauthorized disclosure of sensitive files.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.3%
Top 75% exploitable
Prevalence
Low
niche AI-assisted coding TUI with limited known enterprise adoption
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.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· derived
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
No
Human Impact
High

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