Skip to content
← Blog · · df00tech

CVE-2026-83816: CodeWhale's exec_shell "Safe Command" Classifier Lets fd, rg and git grep Spawn Arbitrary Processes

vuln-intel rust npm CVE-2026-83816 #checker-reject

What's happening

CodeWhale (available as both the codewhale-tui and codewhale packages) ships an exec_shell tool that auto-approves certain commands it classifies as "parallel-readonly" — safe to run without prompting the user for confirmation. That classifier trusts fd, rg (ripgrep) and git grep unconditionally, treating them as always read-only. They aren't: each exposes flags that spawn arbitrary child processes — fd's --exec, -x and --exec-batch, ripgrep's --pre preprocessor, and git grep's -O/--open-files-in-pager. Because the classifier is based on the binary name rather than the full argument list, an attacker who can influence the agent's command stream — via a malicious repository, a prompt injection, or crafted project files — can get arbitrary code execution past the approval gate without ever triggering a confirmation prompt. This is a command-injection and broken-authorization bug (CWE-78, CWE-863) with a CVSS score of 8.1.

Affected software

  • Products: codewhale-tui and codewhale
  • Distributions: Rust (crates.io) and npm
  • Affected versions: <= 0.8.67
  • Fixed in: 0.9.0 (commit 208421b)

Exploitation status

A public proof-of-concept exists for CVE-2026-83816. There is no indication it has been weaponized at scale or added to KEV, but public PoC code substantially lowers the bar for exploitation — defenders should treat this as actively exploitable rather than theoretical, particularly in environments where CodeWhale processes untrusted or third-party repositories.

How our detection catches it

Our rule hunts at the process-tree level rather than relying on the agent's own (bypassable) approval logic. It looks for CodeWhale child processes invoking fd, rg or git grep with exec-capable flags (--exec, -x, --exec-batch, --pre, -O, --open-files-in-pager), and then flags the unexpected grandchild processes those invocations spawn — the actual signal that the "read-only" command silently broke out into arbitrary execution. This logic is shipped across Microsoft Sentinel (KQL), Splunk (SPL), Elastic (EQL), QRadar (AQL), Sumo Logic, Chronicle (YARA-L) and CrowdStrike (CQL), so coverage doesn't depend on which EDR or SIEM stack you run.

Remediate and investigate further

Upgrade CodeWhale to 0.9.0 or later. For the full detection logic, sample events, and per-SIEM queries, see the CVE-2026-83816 detection page.

Get new detections in your inbox

New ATT&CK coverage plus CISA KEV / CVE detection rules, roughly weekly. No spam, unsubscribe anytime.