CVE-2026-83816: CodeWhale: exec_shell parallel-readonly classifier auto-approves fd/rg/git grep exec flags enabling silent RCE
CodeWhale is a DeepSeek and MiMo coding agent for the terminal. Prior to 0.9.0, the ExecShellTool::approvalrequirementfor path used isparallelreadonlycommand 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. registeredtoolapprovalrequired 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.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 0.9.0
Event History
Frequently Asked Questions
Which deployments are exposed?
CodeWhale versions prior to 0.9.0 are affected. The issue bypasses the approval behavior promised by the default interactive profile when the vulnerable command classification path is used.
What must an attacker be able to do to exploit this?
An attacker must be able to supply content that influences an agent tool call. Exploitation relies on causing the agent to invoke fd with -x or --exec, rg with --pre, or git grep with --open-files-in-pager so that an external program is selected.
Does exploitation require the user to approve the command?
No. The affected classifier automatically approved these commands as read-only, and the tool approval path returned without displaying a prompt.
How can I determine whether I am affected, and what is the fix?
Systems running CodeWhale earlier than 0.9.0 are affected. Upgrade to version 0.9.0, which fixes the issue.