PT-2026-77158 · Codewhale · Codewhale
CVSS v4.0
7.3
High
| Vector | AV:L/AC:H/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
Name of the Vulnerable Software and Affected Versions
CodeWhale versions 0.8.41 through 0.8.63
Description
The
exec shell interact() (alias exec interact()) tool incorrectly returns ApprovalRequirement::Auto for its approval requirement. This behavior overrides the default required approval for tools that execute code, allowing LLM-controlled standard input (stdin) to be written into an already-approved long-running interactive shell, such as a python3 -i REPL, mysql, ssh, or sudo -i session, without prompting for approval. An attacker can exploit this by injecting instructions through untrusted content ingested by the agent, such as a fetched page, MCP result, or repository file, leading to command execution at the privilege level of the approved process.Recommendations
Update CodeWhale to version 0.8.64.
As a temporary workaround, restrict the use of the
exec shell interact() function until the update is applied.Exploit
Fix
Improper Privilege Management
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Codewhale