Skip to main content

CodeWhale CVE-2026-75859

| EUVDEUVD-2026-60966 HIGH
Path Traversal (CWE-22)
2026-08-18 VulnCheck GHSA-62f5-cp2p-vq95
8.7
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Attacker crafts repo with malicious .codewhale/config.toml
  2. Delivery
    Victim clones repository to local workstation
  3. Exploit
    CodeWhale loads project config on startup
  4. Execution
    Path traversal entries in instructions array resolve outside workspace
  5. Persist
    Sensitive files read into AI system prompt
  6. Impact
    File contents transmitted to AI backend and exfiltrated

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

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

Exploitation Conditions

Exploitation requires the victim to be running CodeWhale in a version prior to 0.8.64 and to open a repository that contains a .codewhale/config.toml with attacker-controlled instructions path entries. The targeted files must be readable by the OS user account running CodeWhale - this naturally includes home directory files such as SSH keys, shell history, and credential files. The attack does not require any network exposure of CodeWhale itself, any listening service, or any authentication bypass; the only prerequisite is that the victim clones and opens the malicious repository. Exfiltration is limited to files readable by the victim's user account and requires the attacker to receive the system prompt content, either by controlling the configured AI backend endpoint or by having visibility into the AI session. Non-default configurations, elevated privileges, and specific OS platforms are not required.

Impact

The provided CVSS 4.0 score of 8.7 uses AV:N/AC:L/AT:N/PR:N/UI:N, reflecting a high-severity network-reachable confidentiality impact. However, the UI:N rating deserves scrutiny: exploitation realistically requires a victim to clone a repository containing the malicious config and open it with CodeWhale, which constitutes passive user interaction (UI:P in CVSS 4.0 terms) rather than zero interaction. This places real-world exploitability closer to a CVSS 4.0 score in the 7.x range, which still warrants priority patching but is meaningfully lower than 8.7. EPSS data was not provided in the intelligence sources, so exploitation probability cannot be compared against the CVSS signal. No KEV listing confirms active exploitation, and no public exploit code has been identified. The attack is covert by design - the victim has no visible indicator that files are being read - which increases severity for sensitive workstation environments but requires the attacker to either control the AI backend or observe the session to extract the exfiltrated data. Deployment footprint is the primary limiter on aggregate risk: CodeWhale is a niche tool and widespread exploitation would require targeted campaigns against organizations known to use it.

Exploit ScenarioDerived

An attacker publishes an open-source repository containing a .codewhale/config.toml with an instructions entry such as ~/.ssh/id_rsa or /etc/passwd. A developer clones the repository and opens it with a pre-0.8.64 version of CodeWhale, which silently reads the targeted file and injects its contents into the AI system prompt. Any subsequent AI interaction in that session transmits the file contents to the AI backend, where an attacker controlling or monitoring the backend endpoint receives the exfiltrated material without triggering any user-visible warning.

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

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

Alert me

AnalysisAIv1 – Aug 18, 2026

Arbitrary file read in CodeWhale before version 0.8.64 allows an attacker to exfiltrate files from a developer's workstation by embedding a malicious .codewhale/config.toml in a repository. The instructions array in project config accepted arbitrary filesystem paths without workspace boundary enforcement, causing the tool to silently read and inject targeted files into the AI system prompt. No public exploit or CISA KEV listing has been identified at time of analysis, but the attack primitive is a well-understood path traversal and requires no technical sophistication beyond crafting a config file.

RemediationAI

Upgrade to CodeWhale version 0.8.64 or later, which removes project-scope instructions processing entirely via patch commit 43563356b98c6b993085554da82e77370160a31c. The fix is confirmed in the vendor advisory at https://github.com/Hmbown/CodeWhale/security/advisories/GHSA-62f5-cp2p-vq95. If immediate upgrade is not possible, manually inspect .codewhale/config.toml before opening any cloned repository with CodeWhale, specifically auditing the instructions array for paths that reference locations outside the project root - any absolute path or relative path containing .. segments is a red flag. Additionally, restrict CodeWhale use to repositories from trusted, reviewed sources until patched. Note that the workaround relies on human review, which is error-prone and does not scale for teams cloning many repositories.

Affected VersionsENISA

CodeWhale 0.8.41 <0.8.64
CodeWhale 0.8.8 <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 a terminal-based AI coding assistant implemented in Rust that supports per-project configuration via a .codewhale/config.toml file at the repository root. The instructions field in that config accepts an array of file paths whose contents are prepended to the AI model's system prompt as context. The root cause is CWE-22 (Improper Limitation of a Pathname to a Restricted Directory): path entries were resolved relative to the system without verifying they remained within the workspace directory tree, permitting traversal sequences or absolute paths targeting files elsewhere on the filesystem. The patch commit (43563356b98c6b993085554da82e77370160a31c) fully mitigates this by stripping project-scope instructions processing entirely - the key is now ignored with a warning, making the feature a no-op from untrusted project config. A parallel fix in the same commit also prevents project-scope allow_shell = true from escalating shell permissions, indicating a broader architectural decision to distrust project-controlled config for security-sensitive settings.

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

Victim must clone and open a malicious repo (UI:R); attack delivers via network but requires local tool execution; confidentiality-only impact with no integrity or availability effect.

3.1 AV:N/AC:L/PR:N/UI:R/S:U/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:N/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
None
Vulnerable system: Confidentiality
High
Vulnerable system: Integrity
None
Vulnerable system: Availability
None
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

CodeWhale versions before 0.8.64 fail to validate file paths in the project config instructions field, allowing attackers to read arbitrary files on the victim's system. A malicious .codewhale/config.toml file in a cloned repository can specify paths outside the workspace that are read and injected into the AI system prompt for exfiltration.

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 attackers to exfiltrate sensitive files from developer workstations through malicious repository configurations, exposing credentials, source code, and intellectual property to unauthorized access. Any developer cloning a compromised repository is at risk. This represents a supply chain attack vector requiring immediate remediation across development teams.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 65% exploitable
Prevalence
Low
niche AI coding TUI tool with limited 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.4%
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
Yes
Human Impact
High

Priority Score

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

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

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