Advisory Database
  • Advisories
  • Dependency Scanning
  1. cargo
  2. ›
  3. codewhale-tui
  4. ›
  5. CVE-2026-75913

CVE-2026-75913: CodeWhale: Argument Injection in `git_show` Tool Allows Arbitrary File Write Without Approval

September 4, 2026

A malicious repository combined with prompt injection, the threat model already documented in CVE-2026-45311 (auto-loaded AGENTS.md is treated as instructions by the model) yields an unprompted arbitrary file write at the privilege of the user running DeepSeek-TUI.

Useful targets reachable as the invoking user:

  • ~/.ssh/authorized_keys
  • ~/.bashrc, ~/.zshrc, ~/.profile
  • ~/.gitconfig (chainable into RCE via core.editor)
  • ~/.config/**, ~/.aws/credentials, project source files

The written content is the git show rendering of HEAD commit hash, author/date header, indented commit message, and (when patch=true) diff hunks. The commit subject, body, author identity, and diff text are entirely attacker-controlled because the attacker owns the repository HEAD. The leading commit <hash> line prevents clean overwrite of formats that reject unknown tokens, but is silently ignorable in files parsed as comments-or-text (crontab, dotfiles consumed by tolerant readers) and is irrelevant for the destructive/DoS sub-case (clobbering ~/.ssh/authorized_keys locks the user out; clobbering a project file corrupts source).

References

  • github.com/Hmbown/CodeWhale/commit/9a34b5034d29f05d1f28fa61b04719ca6a741020
  • github.com/Hmbown/CodeWhale/security/advisories/GHSA-7j5w-7r7x-9v27
  • github.com/advisories/GHSA-7j5w-7r7x-9v27
  • nvd.nist.gov/vuln/detail/CVE-2026-75913
  • www.vulncheck.com/advisories/codewhale-before-argument-injection-via-git-show

Code Behaviors & Features

Detect and mitigate CVE-2026-75913 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 0.8.41 before 0.8.64

Fixed versions

  • 0.8.64

Solution

Upgrade to version 0.8.64 or above.

Impact 9.3 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:C/C:N/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-73: External Control of File Name or Path
  • CWE-88: Improper Neutralization of Argument Delimiters in a Command ('Argument Injection')

Source file

cargo/codewhale-tui/CVE-2026-75913.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Tue, 22 Sep 2026 12:19:53 +0000.