Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessEmbed prompt injection in repository content
-
DeliveryDeveloper opens repo in vulnerable CodeWhale
-
ExploitAI model calls git_blame with attacker-supplied rev
-
Executiongit executes with --contents flag reading arbitrary file
-
PersistSensitive file contents (SSH keys, credentials) returned as tool output
-
ImpactAttacker 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 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
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
Network-reachable, no auth required, passive user interaction needed; scope changes because stolen credentials impact systems beyond CodeWhale itself.
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
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
Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.
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'
Arbitrary file read in CodeWhale before version 0.8.64 allows an attacker to exfiltrate files from a developer's worksta
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
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-60970
GHSA-c6mw-8xh8-gpq6
NVD
CVE.org
EPSS
Exploit-DB