CVE-2026-75913: CodeWhale before 0.8.64 Argument Injection via git_show
CodeWhale (codewhale / codewhale-tui) versions >= 0.8.41 and < 0.8.64 contain an argument injection vulnerability in the gitshow tool. The model-supplied rev parameter is passed unvalidated into the git show argv without an --end-of-options sentinel, so a value beginning with --output= is interpreted as a git flag. Because the tool is registered as auto-approved and advertised as read-only, an attacker (via a malicious repository combined with prompt injection) can cause an unprompted arbitrary file write at the privilege of the invoking user, targeting sensitive files such as ~/.ssh/authorizedkeys, ~/.bashrc, or ~/.gitconfig. Fixed in 0.8.64 by adding rev validation.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
CodeWhale (codewhale / codewhale-tui)to a version that resolves this vulnerability.Fixed in 0.8.64
Event History
Frequently Asked Questions
Which deployments are exposed?
Users running CodeWhale or codewhale-tui versions 0.8.41 through 0.8.63 are affected. Exploitation occurs in the context of a malicious repository combined with prompt injection, and the resulting write runs with the privileges of the user invoking CodeWhale.
What does exploitation require?
The attacker needs to cause the model to supply a crafted rev value to the auto-approved git_show tool. A value beginning with --output= is interpreted by git as an option because no end-of-options sentinel is used.
What is the available remediation?
Upgrade to version 0.8.64, which adds validation for the rev parameter. The provided data does not identify an alternative mitigation for environments that cannot upgrade immediately.
How can I look for signs of exploitation?
Review sensitive files writable by the invoking user for unexpected changes, especially ~/.ssh/authorized_keys, ~/.bashrc, and ~/.gitconfig. The vulnerability can write arbitrary files through git's output option.