Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAttacker crafts repo with malicious .codewhale/config.toml
-
DeliveryVictim clones repository to local workstation
-
ExploitCodeWhale loads project config on startup
-
ExecutionPath traversal entries in instructions array resolve outside workspace
-
PersistSensitive files read into AI system prompt
-
ImpactFile 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 |
| 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 |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
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.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
Apply vendor patch.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.
Server-side request forgery in CodeWhale before 0.8.64 lets remote attackers reach internal-only IP addresses through th
Environment variable inheritance in CodeWhale's js_execution tool prior to version 0.8.64 allows crafted JavaScript payl
Unauthenticated file disclosure in CodeWhale before 0.8.64 allows arbitrary local file reads via the image_analyze tool'
Argument injection in CodeWhale's git_show tool (versions 0.8.41-0.8.63) allows an attacker to cause arbitrary file writ
Remote code execution in CodeWhale (packages codewhale and codewhale-tui) versions 0.8.41 through 0.8.63 allows an attac
Shell command injection in CodeWhale before version 0.8.64 enables arbitrary code execution on a victim developer's mach
Argument injection in CodeWhale versions before 0.8.64 exposes arbitrary files on the host system by accepting unsanitiz
Prompt-injection-driven privilege escalation in CodeWhale 0.8.41-0.8.63 allows an attacker who can place malicious instr
Arbitrary external program execution on the developer host is achievable through CodeWhale (DeepSeek/MiMo terminal codin
CodeWhale's automation subsystem resolves an omitted auto_approve setting to true, so a single approved automation_creat
EUVD-2026-60966
GHSA-62f5-cp2p-vq95
NVD
CVE.org
EPSS
Exploit-DB