CodeWhale classified shell requests by the top-level executable name after removing ordinary command-line flags and rejecting common shell operators. That appeared to separate searches from mutations, but three allowlisted search programs also accept flags that launch other executables. Their side effects were not captured by checking for pipes or…
Inspect the ClaimsCase · DiggingBeagle record
CodeWhale misclassified executable search flags as approval-free reads
A command classifier allowed executable options of fd, ripgrep and git grep under read-only automation, bypassing the shell approval expected by an agent operator.
Published by DiggingBeagle:
Public disclosure: Nov 12, 2026
Affected CodeWhale agent shell approval paths through v0.8.67; no public in-the-wild victim evidence.
Assessment profile
Assessment method- Setting
- research demonstration
- Exploitation
- demonstrated
- Evidence
- Grade B
- Remediation
- patch available
- AI role
- AGAINST AI
Basis and provenance
Reviewed advisory gives executable argument paths and v0.9.0 patch; no confirmed malicious deployments. Impact band is unassigned because the cited material does not establish a calibrated real-world loss or affected-population denominator.
Assessed Nov 20, 2026 using diggingbeagle.assessment/1.
Evidence basis: CLM-2026-NOV20-CODEWHALE-EXEC · CLM-2026-NOV20-CODEWHALE-EXEC-ENRICH · GitHub: CodeWhale read-only classifier permitted executable search flags
At a glance
Version 0.9.0 changes the affected gate. The broader lesson is that authorization must consider an invocation’s effective behavior, not only the name or the apparent purpose of a utility.
Read the implicationsNo established deployment count, exfiltration or exploit chain in a real tenant. Other executable flag combinations need independent verification after patching.
Limits and uncertaintyFull account
CodeWhale classified shell requests by the top-level executable name after removing ordinary command-line flags and rejecting common shell operators. That appeared to separate searches from mutations, but three allowlisted search programs also accept flags that launch other executables. Their side effects were not captured by checking for pipes or semicolons.
The advisory traces the classification to an automatic approval result before the user’s configured shell approval requirement could apply. A poisoned repository could influence an agent to request such a command, provided the surrounding environment allowed the executable. It is a demonstrated permission bypass, not proof that a specific organization lost data.
Version 0.9.0 changes the affected gate. The broader lesson is that authorization must consider an invocation’s effective behavior, not only the name or the apparent purpose of a utility.
The bypass arises before the command runs: a syntactic read-only label is converted into automatic approval without checking the executable effect of arguments. This is distinct from a sandbox escape, and tool-level restrictions remain necessary even when shell metacharacters are banned.
Mechanism and trust boundary
- 01
Attacker-influenced text prompts a search command containing an execution-capable flag.
- 02
Read-only classifier auto-approves command before normal shell confirmation.
Timeline
- Nov 12, 2026Event type unspecified
Underlying evidence published or disclosed
- Nov 12, 2026disclosure
Public disclosure
Claims & evidence
CLM-2026-NOV20-CODEWHALE-EXECThe CodeWhale advisory documents approval-auto classification for fd, rg and git grep even though their options permit execution, affecting codewhale and codewhale-tui through 0.8.67 and fixed in 0.9.0.supported
Basis: reported finding
- supportsGitHub: CodeWhale read-only classifier permitted executable search flagsprimary disclosure
GHSA-3mgh-93r5-r7jf, Description, Root Cause and Affected versions
CLM-2026-NOV20-CODEWHALE-EXEC-ENRICHThe CodeWhale shell classifier allowed fd, ripgrep and git grep to bypass approval after reducing commands to their apparent search-tool names, even though the binaries supported execution-capable flags without shell metacharacters.supported
Basis: reported finding
- supportsGitHub: CodeWhale read-only classifier permitted executable search flagsprimary disclosure
GHSA-3mgh-93r5-r7jf, Root Cause and Exploit Demonstration for fd, rg and git grep
Implications
Version 0.9.0 changes the affected gate. The broader lesson is that authorization must consider an invocation’s effective behavior, not only the name or the apparent purpose of a utility.
Controls and mitigations
- Require effect-aware approval for search-tool execution flags and independently validate argument resolution.
- Upgrade to v0.9.0 or later and apply permission checks to the resolved effect of command options rather than only search-tool names.
Unknowns and contradictions
- No established deployment count, exfiltration or exploit chain in a real tenant.
- Other executable flag combinations need independent verification after patching.
Sources and citation
Material revision history
- Nov 20, 2026 · Published version · first publication · revision 269