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.
Published: 2026-08-18
Score: 8.5 High
EPSS: n/a
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

The reported vulnerability is an argument injection flaw in CodeWhale's git_show utility. The rev parameter supplied by the model is injected directly into the git show command line without validation or an end‑of‑options separator. This allows values beginning with the option prefix ‑‑output= to be interpreted as git flags, letting an attacker redirect output or alter file destinations. An attacker can exploit this by hosting a malicious repository and combining it with prompt injection techniques, causing the utility to perform an arbitrary file write at the privilege level of the user executing CodeWhale.

Affected Systems

Affected versions are CodeWhale 0.8.41 through 0.8.63, inclusive. The vendor Hmbown lists the product CodeWhale, and the vulnerability is present in the codewhale and codewhale‑tui packages across those releases.

Risk and Exploitability

The CVSS score of 8.5 indicates a high impact and moderate to high exploitation likelihood. EPSS is not available, and the vulnerability is not yet listed in CISA's KEV catalog. Exploitation requires the git_show tool to run with untrusted input; because the tool is registered as auto‑approved and advertised as read‑only, the attack surface is broad in environments that automatically trust CodeWhale repositories. The lack of an end‑of‑options sentinel and the ability to write arbitrary files such as ~/.ssh/authorized_keys or ~/.bashrc could lead to privilege escalation or persistence on the host.

Generated by OpenCVE AI on August 18, 2026 at 16:54 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade CodeWhale to version 0.8.64 or later, where rev validation is applied.
  • If immediate upgrade is not possible, restrict the execution of git_show to trusted repositories or disable its auto‑approved status to prevent unexpected file writes.
  • Apply custom input validation for the rev parameter to reject or escape any values containing '––' prefixes before passing it to git show.

Generated by OpenCVE AI on August 18, 2026 at 16:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 18 Aug 2026 17:45:00 +0000

Type Values Removed Values Added
First Time appeared Hmbown
Hmbown codewhale
Vendors & Products Hmbown
Hmbown codewhale

Tue, 18 Aug 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}


Tue, 18 Aug 2026 15:30:00 +0000

Type Values Removed Values Added
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.
Title CodeWhale before 0.8.64 Argument Injection via git_show
Weaknesses CWE-73
References
Metrics cvssV3_1

{'score': 9.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:H'}

cvssV4_0

{'score': 8.5, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:P/VC:N/VI:H/VA:H/SC:N/SI:H/SA:H'}


Subscriptions

Hmbown Codewhale
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-08-18T15:56:59.766Z

Reserved: 2026-08-18T15:05:54.225Z

Link: CVE-2026-75913

cve-icon Vulnrichment

Updated: 2026-08-18T15:56:52.195Z

cve-icon NVD

Status : Received

Published: 2026-08-18T16:18:23.363

Modified: 2026-08-18T16:18:23.363

Link: CVE-2026-75913

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-08-18T17:30:15Z

Weaknesses
  • CWE-73

    External Control of File Name or Path