CodeWhale: Command injection in ExecShellTool (CVE-2026-83816)
CodeWhale versions prior to 0.9.0 are vulnerable to command injection where malicious tool inputs allow arbitrary program execution by bypassing safety checks and approval prompts for terminal utilities.
CVE search metadata
CVE search record: CVE-2026-83816. Severity: high. CVSS: 8.1. EPSS: 0.74%. KEV: no. Product: CodeWhale. Brief: CodeWhale: Command injection in ExecShellTool (CVE-2026-83816). Brief link: https://feed.craftedsignal.io/briefs/2026-11-codewhale-command-injection-cve-2026-83816/
Triage facts
Revision 2- Applicability
- CodeWhale
- Evidence
- Unknown
- Severity
- High
- Sources
- 3 public sources
- Freshness
- Revision 2Nov 20, 02:06 UTC
- Vulnerabilities
- 1 CVE
- Source quality
- A2Roughly even chance
Revision history 1 entry · Revision 2
- Revision 2
poc_available
Changed: cve_verification, cves, has_poc, lastmod, references, updates
Sources: 1
Overview
CodeWhale versions prior to 0.9.0 contain a vulnerability in the ExecShellTool::approval_requirement_for path. The component uses an incorrect classification method that treats 'fd', 'rg', and 'git grep' as read-only, even when execution flags such as 'fd -x', 'fd --exec', 'rg --pre', or 'git grep --open-files-in-pager' are present. Consequently, the tool fails to display a prompt for user approval, and the subsequent command-safety check incorrectly validates these utilities as safe.
Attack Chain
Attacker-controlled content influencing an agent tool call triggers the flawed approval logic. By manipulating command flags that invoke external programs, an attacker can bypass the intended interactive approval profile, resulting in the execution of arbitrary programs on the developer host.
Impact
Successful exploitation results in arbitrary program execution on the developer host, potentially leading to unauthorized access, modification, or system disruption.
Recommendation
This issue is resolved in CodeWhale version 0.9.0.
Threat Hunt
Identify child processes spawned by shell tools (fd, rg, git) where the command arguments contain execution flags (-x, --exec, --pre, --open-files-in-pager) which bypass the expected agent approval flow.
Data: Process creation events, Command line arguments, Parent process lineage