Sceawere

Vulnerability Detail

CVE-2026-75913UPDATED Verified Sceawere Triage Sources: NVD / CISA KEV

CodeWhale Git Show Argument Injection

Vulnerability Metadata

Severity
Critical
Score / CVSS
9.3
Creation Date
2h ago
Vendor
Hmbown
Product
CodeWhale
Attack Type
External Control of File Name or Path
Vector String
CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:H
Attack Complexity
LOW

Narrative and Response

Description

CodeWhale (codewhale / codewhale-tui) versions >= 0.8.41 and < 0.8.64 contain an argument injection vulnerability in the git_show 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/authorized_keys, ~/.bashrc, or ~/.gitconfig. Fixed in 0.8.64 by adding rev validation.

Executive Summary

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Executive Summary Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Technical Details

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Detailed Technical Analysis Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Mitigations

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Remediation & Mitigations Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

References

Lorem ipsum dolor sit amet, consectetur adipiscing elit. Sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.

Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.

Intelligence References Locked

Sign up to unlock professional threat analysis, mitigations, and indicator signatures.

Additional Metadata

{
  "score": "9.3",
  "pubDate": "2026-08-18T16:18:23.363Z",
  "pubdate": "2026-08-18T16:18:23.363Z",
  "executiveSummary": "CodeWhale (codewhale / codewhale-tui) versions >= 0.8.41 and < 0.8.64 suffer from an argument injection vulnerability within the git_show tool.\nThe vulnerability allows an attacker via a malicious repository combined with prompt injection to achieve unprompted arbitrary file write at the privilege of the invoking user.\nThe affected product is CodeWhale, impacting systems running vulnerable versions where the git_show tool is registered as auto-approved and advertised as read-only.\nRisk implications are severe, as exploitation can target sensitive files such as ~/.ssh/authorized_keys, ~/.bashrc, or ~/.gitconfig without requiring user interaction.\nAttacker capabilities include modifying critical user configuration and authentication files by abusing improperly sanitized model-supplied parameters passed to underlying execution primitives.",
  "technicalDetails": "The root cause of the vulnerability lies in the handling of the model-supplied rev parameter within the git_show tool.\nSpecifically, the rev parameter is passed unvalidated directly into the git show argv without utilizing an --end-of-options sentinel.\nBecause of this missing sanitization and lack of option termination, a specially crafted value beginning with --output= supplied by an attacker is incorrectly interpreted by the underlying binary as a valid git flag rather than a positional revision argument.\nThe vulnerable component is the git_show tool functionality within CodeWhale versions >= 0.8.41 and < 0.8.64.\nExploitation occurs when an attacker sets up a malicious repository and leverages prompt injection techniques to force the model to pass a malicious string to the git_show tool.\nBecause the git_show tool is registered as auto-approved and incorrectly advertised as a read-only operation, the execution proceeds without prompting the user.\nThe crafted argument leverages the injected git flag to redirect output, resulting in arbitrary file write capabilities.\nThe payload behavior allows an attacker to overwrite or create sensitive files in the context of the user running the application.\nPost-exploitation impact includes the potential compromise of user accounts and environments by targeting sensitive file paths including ~/.ssh/authorized_keys, ~/.bashrc, or ~/.gitconfig."
}
CVE-2026-75913: CodeWhale Git Show Argument Injection (CRITICAL Severity, CVSS: 9.3) - Sceawere