CodeWhale flaw lets shell commands run without approval

  • CodeWhale
  • RCE
  • shell
  • auto-approve

Vulnerability bypassed mandatory approval for specific shell commands

Issue affected interactive Agent profile in versions 0.8.67 and earlier

Users should update to version 0.9.0 to restore security controls

A GitHub security advisory reports that a flaw in CodeWhale’s interactive Agent profile can let certain shell commands run without an approval prompt. The issue affects the npm codewhale package and the Rust cargocodewhale-tui package.

The flaw arises because the profile’s classifier treats some commands from fd, rg and git grep as parallel read-only operations and lowers their approval requirement. Those tools can run external programs, so the misclassification can allow arbitrary program execution on a developer’s computer without a prompt.

The advisory lists versions 0.8.67 and earlier as affected and version 0.9.0 as patched for both packages.