{"id":"CVE-2026-83816","kind":"vulnerability","aliases":["CVE-2026-83816"],"related":[],"title":"CodeWhale coding agent runs commands without approval, enabling code execution","description":"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.","summary":"CodeWhale, a terminal coding agent for DeepSeek and MiMo, treats some search commands as read-only and skips the approval prompt for them, even when flags like fd -x, rg --pre, or git grep --open-files-in-pager launch an external program. Attacker-controlled content that influences an agent tool call can therefore run arbitrary programs on the developer's machine.","severity":"high","cvss":8.1,"epss":null,"exploited":false,"exploited_at":null,"products":[],"ecosystems":[],"tags":["ai-tooling","codewhale","coding-agent","deepseek","mimo","terminal"],"not_affected_if":["version-0.9.0-or-later"],"how_to_check":"- Check the installed CodeWhale version and see whether it is below `0.9.0`.\n- Look at whether the agent's approval profile is the default interactive one, since the bypass skips the prompt it promises.","fix":"- CodeWhale: upgrade to `0.9.0`.","status":"open","published_at":"2026-11-16T19:17:53+00:00","first_seen_at":"2026-11-16T19:38:22+00:00","triaged_at":"2026-11-16T19:39:27+00:00","updated_at":"2026-11-16T19:39:27+00:00","category":"ai-tooling","confidence":0.8,"triage":{"at":"2026-11-16T19:39:27Z","model":"claude-haiku-5-5","output":{"fix":"- CodeWhale: upgrade to `0.9.0`.","reach":"local","title":"CodeWhale coding agent runs commands without approval, enabling code execution","impact":"high","summary":"CodeWhale, a terminal coding agent for DeepSeek and MiMo, treats some search commands as read-only and skips the approval prompt for them, even when flags like fd -x, rg --pre, or git grep --open-files-in-pager launch an external program. Attacker-controlled content that influences an agent tool call can therefore run arbitrary programs on the developer's machine.","audience":"developers","category":"ai-tooling","nicknames":[],"who_cares":["codewhale","coding-agent","deepseek","mimo","terminal"],"confidence":0.8,"fix_status":"available","needs_auth":"no","worst_case":"arbitrary programs run on the developer host without approval","analyst_note":"Confirm the affected version range beyond 'prior to 0.9.0' and whether the default profile was the only trigger, using the NVD entry and the vendor advisory linked from the signal.","how_to_check":"- Check the installed CodeWhale version and see whether it is below `0.9.0`.\n- Look at whether the agent's approval profile is the default interactive one, since the bypass skips the prompt it promises.\n- unknown for any other check, as the sources do not say.","plain_action":"","product_name":"","needs_analyst":true,"not_affected_if":["version-0.9.0-or-later"],"who_is_affected":"Teams that run CodeWhale as a coding agent on developer machines, especially where the agent reads untrusted content such as repository files, issues or web pages that can shape its tool calls. Installations at `0.9.0` or later are not affected by this flaw, and the sources do not describe other conditions that exclude a team.","user_interaction":"no","product_ecosystem":"","needs_special_setup":"no","severity_if_unknown":"high"},"cost_usd":0.000801,"input_tokens":4778,"output_tokens":646,"severity_before":"high"},"analyst_status":null,"analyst_note":null,"search":"'-2026':12A,15A '-83816':13A,16A '0.9.0':104C,232C 'access':222C 'agent':3A,23B,31B,78B,98C,197C 'ai':18B 'ai-tool':17B 'allowlist':129C,131C 'also':183C 'approv':7A,47B,107C,121C,165C,212C 'arbitrari':84B,203C 'attack':72B,191C 'attacker-control':71B,190C 'automat':120C,174C 'base':122C,186C 'call':80B,199C 'caus':202C 'check':182C 'classif':175C 'code':2A,9A,22B,30B,97C 'codewhal':1A,20B,27B,91C 'coding-ag':21B 'command':5A,39B,115C,118C,128C,180C 'command-safeti':179C 'content':74B,193C 'control':73B,192C 'could':200C 'cve':11A,14A 'deepseek':24B,33B,94C 'default':216C 'develop':88B,208C 'display':169C 'disrupt':225C 'downgrad':117C 'enabl':8A 'even':51B,142C 'exec':148C 'execshelltool':106C 'execut':10A,205C 'extern':69B,161C 'fd':55B,133C,144C,147C 'file':64B,156C 'fix':229C 'flag':53B,126C 'flag-strip':125C 'git':60B,136C,152C 'grep':61B,137C,153C 'host':209C 'influenc':76B,195C 'interact':217C 'issu':227C 'later':178C 'launch':67B 'like':54B 'machin':90B 'mimo':25B,35B,96C 'modif':223C 'open':63B,155C 'open-files-in-pag':62B,154C 'pager':66B,158C 'parallel':113C 'path':110C 'pre':58B,150C 'prior':102C 'profil':218C 'program':70B,85B,162C,204C 'promis':213C 'prompt':48B,171C 'read':42B,140C 'read-on':41B,139C 'readon':114C 'regist':163C 'requir':108C,166C 'result':219C 'return':167C 'rg':57B,134C,149C 'run':4A,83B 'safe':189C 'safeti':181C 'search':38B 'select':159C 'skip':45B 'strip':127C 'termin':26B,29B,101C 'therefor':82B,201C 'tool':19B,79B,164C,198C 'treat':36B,132C,184C 'unauthor':221C 'use':111C 'util':187C 'version':231C 'without':6A,168C,210C 'x':56B,145C","nicknames":[],"mitigations":[],"who_affected":"Teams that run CodeWhale as a coding agent on developer machines, especially where the agent reads untrusted content such as repository files, issues or web pages that can shape its tool calls. Installations at `0.9.0` or later are not affected by this flaw, and the sources do not describe other conditions that exclude a team.","tier":"B","verified":{},"analyst_revisit_at":null,"fix_status":"available","audience":"developers","plain_action":null,"pkeys":[],"ptokens":[],"labels":["aitooling","codewhale","codingagent","deepseek","high","mimo","terminal"],"campaign_type":null,"search_a":"'-2026':12A,15A '-83816':13A,16A 'agent':3A 'approv':7A 'code':2A,9A 'codewhal':1A 'command':5A 'cve':11A,14A 'enabl':8A 'execut':10A 'run':4A 'without':6A","search_b":"'agent':23B,31B,78B 'ai':18B 'ai-tool':17B 'approv':47B 'arbitrari':84B 'attack':72B 'attacker-control':71B 'call':80B 'code':22B,30B 'codewhal':20B,27B 'coding-ag':21B 'command':39B 'content':74B 'control':73B 'deepseek':24B,33B 'develop':88B 'even':51B 'extern':69B 'fd':55B 'file':64B 'flag':53B 'git':60B 'grep':61B 'influenc':76B 'launch':67B 'like':54B 'machin':90B 'mimo':25B,35B 'open':63B 'open-files-in-pag':62B 'pager':66B 'pre':58B 'program':70B,85B 'prompt':48B 'read':42B 'read-on':41B 'rg':57B 'run':83B 'search':38B 'skip':45B 'termin':26B,29B 'therefor':82B 'tool':19B,79B 'treat':36B 'x':56B","search_c":"'0.9.0':104C,232C 'access':222C 'agent':98C,197C 'allowlist':129C,131C 'also':183C 'approv':107C,121C,165C,212C 'arbitrari':203C 'attack':191C 'attacker-control':190C 'automat':120C,174C 'base':122C,186C 'call':199C 'caus':202C 'check':182C 'classif':175C 'code':97C 'codewhal':91C 'command':115C,118C,128C,180C 'command-safeti':179C 'content':193C 'control':192C 'could':200C 'deepseek':94C 'default':216C 'develop':208C 'display':169C 'disrupt':225C 'downgrad':117C 'even':142C 'exec':148C 'execshelltool':106C 'execut':205C 'extern':161C 'fd':133C,144C,147C 'file':156C 'fix':229C 'flag':126C 'flag-strip':125C 'git':136C,152C 'grep':137C,153C 'host':209C 'influenc':195C 'interact':217C 'issu':227C 'later':178C 'mimo':96C 'modif':223C 'open':155C 'open-files-in-pag':154C 'pager':158C 'parallel':113C 'path':110C 'pre':150C 'prior':102C 'profil':218C 'program':162C,204C 'promis':213C 'prompt':171C 'read':140C 'read-on':139C 'readon':114C 'regist':163C 'requir':108C,166C 'result':219C 'return':167C 'rg':134C,149C 'safe':189C 'safeti':181C 'select':159C 'strip':127C 'termin':101C 'therefor':201C 'tool':164C,198C 'treat':132C,184C 'unauthor':221C 'use':111C 'util':187C 'version':231C 'without':168C,210C 'x':145C","cause_entry":null,"cause_path":null,"disclosures_checked_at":null,"first_public_at":"2026-11-12T12:23:36+00:00","kev":null,"cvss_vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H","cvss_by":"security-advisories@github.com","poc_count":0,"sources":[{"source":"nvd","external_id":"CVE-2026-83816","url":"https://nvd.nist.gov/vuln/detail/CVE-2026-83816","severity":null,"published_at":"2026-11-16T19:17:53+00:00","modified_at":"2026-11-16T19:17:53+00:00","first_seen_at":"2026-11-16T19:38:22+00:00","fetched_at":"2026-11-16T19:38:22+00:00","note":null}],"documents":[{"id":172015,"url":"https://github.com/codewhale-hq/Codewhale/commit/208421b9d23d81cea3311a1eeb2a2ea81d637686","title":"Patch: github.com","kind":"other","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Patch: github.com"},{"id":172016,"url":"https://github.com/codewhale-hq/Codewhale/releases/tag/v0.9.0","title":"Release notes: github.com","kind":"release","source":"nvd","publisher":"vendor","text":null,"published_at":null,"relation":"fix","confidence":null,"note":"Release notes: github.com"},{"id":172017,"url":"https://github.com/codewhale-hq/Codewhale/security/advisories/GHSA-3mgh-93r5-r7jf","title":"Vendor advisory: github.com","kind":"vendor","source":"nvd","publisher":"vendor","text":null,"published_at":"2026-11-12T12:23:36+00:00","relation":"advisory","confidence":null,"note":"Vendor advisory: github.com"}],"disclosures":[],"exploit_sources":[],"notice":"Free to read, with fair use of about 60 pages a minute. For higher limits or API access: sales@infrastack.ai"}