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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
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
Lifecycle Timeline
3DescriptionCVE.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.
AnalysisAI
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.
Technical ContextAI
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.
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.
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
Same weakness CWE-22 – Path Traversal
View allSame technique Path Traversal
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-60966
GHSA-62f5-cp2p-vq95