Read the docs

Approval bypass in CodeWhale exec_shell enables silent command execution

Priority LOW 34CWE-78Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
High
Impact type
Code execution, Security bypass
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 3.1 · CNA. Fix status from CNA. Impact type from CWE-78 and CWE-863.

Summary

CodeWhale, a DeepSeek and MiMo coding agent for the terminal, is affected before 0.9.0. Its exec_shell approval logic auto-approves fd, rg and git grep commands without a prompt, even when their flags such as fd -x, rg --pre or git grep --open-files-in-pager run an external program. Attacker-controlled content that influences an agent tool call can cause arbitrary program execution on the developer host (CWE-78) without the approval the default interactive profile promises. A remote attacker needs no privileges, but the attack is considered high complexity and requires user interaction is not needed.

Written with Claude Haiku 5.5 from the sources below · 2026-11-16

Description from the CNA

CodeWhale is a DeepSeek and MiMo coding agent for the terminal. Prior to 0.9.0, the ExecShellTool::approval_requirement_for path used is_parallel_readonly_command to downgrade commands to automatic approval based on a flag-stripped command allowlist. The allowlist treated fd, rg, and git grep as read-only even when fd -x or fd --exec, rg --pre, or git grep --open-files-in-pager selected an external program. registered_tool_approval_required returned without displaying a prompt for that automatic classification, and the later command-safety check also treated the base utilities as safe. Attacker-controlled content that influenced an agent tool call could therefore cause arbitrary program execution on the developer host without the approval promised by the default interactive profile, resulting in unauthorized access, modification, or disruption. This issue is fixed in version 0.9.0.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
Fix Fixed CodeWhale (codewhale-hq): 0.9.0

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
No
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
codewhale-hqCodeWhalebefore 0.9.00.9.0Patch availableCNA
  • CodeWhale Vendorcodewhale-hq Affected before 0.9.0 Fixed in 0.9.0 Patch available CNA

Remediation

Update CodeWhale to version 0.9.0, which fixes this issue. The sources list no fixed version for other products.

Written with Claude Haiku 5.5 from the sources below · 2026-11-16

  • Fix · CNA CodeWhale (codewhale-hq) Fixed in 0.9.0

Timeline

  1. 2026-11-16 Threatist record created from CVE-2026-83816
  2. 2026-11-16 CISA SSVC decision points changed

References

  • TI-2026-92268 CodeWhale automation auto-approves tools by default CVSS 3.1HIGH 7.5

Sources

This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences