News · DiggingBeagle record

CodeWhale treated executable searches as approval-free reads

CVE-2026-83816 allowed some shell commands to bypass an agent operator's interactive approval because the classifier inspected the search utility name but missed options that execute other programs.

Published
Nov 20, 2026

The report

Search commands are commonly granted a lighter approval path because inspecting a repository is assumed not to change it. CodeWhale applied that reasoning to utilities including fd, rg and git grep, but their command-line options can launch additional executables. The advisory for CVE-2026-83816 shows that this behavior could turn a supposedly read-only tool call into executable code without the expected shell confirmation.

A permission decision made before execution

The classifier discarded flags and excluded basic shell operators, then relied on the command name to decide whether an invocation deserved automatic approval. That method could miss fd execution options, rg preprocessors and Git's pager behavior, because none requires a pipe or semicolon. The error was in the authorization classification, not proof of a kernel sandbox escape.

An attacker-influenced repository or instruction could plausibly steer a coding agent toward one of these calls, but the record documents a code path and proof of concept, not an observed customer compromise. The fix is associated with CodeWhale 0.9.0; earlier affected releases extend through 0.8.67.

A separate CodeWhale scheduling flaw changed future approval defaults after a recurring job was saved. Both involve consent, but the first is a single command being mislabeled and the second is authority surviving into a later run. They should be tested separately, including with executable options on commands whose names still appear harmless.

Research behind this