Technical impact
The vulnerability in CodeWhale allows an attacker to cause arbitrary program execution on a developer’s machine by tricking the agent into auto‑approving commands that contain executable arguments. The flaw arises because the parallel‑readonly command classifier downgrades commands such as fd -x, rg --pre, and git grep --open-files-in-pager to read‑only status, and the later safety check treats these utilities as inherently safe. As a result, agent calls that include attacker‑controlled input can bypass the interactive prompt and run any program on the host, leading to unauthorized access, modification, or system disruption. The entry in the CWE list, CWE‑78, identifies this as an OS command injection in a shell environment, while CWE‑863 indicates a lack of enforcement of a required approval policy.
Affected Systems
The affected software is CodeWhale, a terminal‑based coding agent manufactured by codewhale‑hq, version 0.8.x and earlier. Versions prior to 0.9.0 exhibit the flaw because the ExecShellTool approval requirement uses the is_parallel_readonly_command logic and the tool does not prompt for approval when the classifier flags a command as read‑only. CodeWhale 0.9.0 and later contain the fix that restores the interactive approval requirement and correctly evaluates the safety of base utilities.
Risk and Exploitability
The CVSS score for this vulnerability is 8.1, indicating a high‑severity exposure. EPSS is not available, but the lack of a related KEV listing and the local nature of the attack mean that exploitation would most likely occur through malicious content crafted by a user interacting directly with the tool. An attacker could gain full control of the host by executing arbitrary commands in the context of the user running CodeWhale. The fix in version 0.9.0 eliminates the bypass by enforcing the approval prompt and proper command validation, reducing the risk to zero for compliant deployments.