ZeroHour

CVE-2026-82537

mass

Auto-Approve Bypass in Roo-Code AI Coding Agent (through 3.54.0)

CVSS 4.0
7.7 high
EPSS
<1%p20
Published
()
Modified
AI analysis

Roo-Code, an AI coding agent extension, through version 3.54.0 contains an auto-approve bypass (CWE-436 interpretation conflict) in which the command-approval gate's shell parser and bash disagree about how a hash character is handled. An attacker crafts a command string in which an allowlisted word is immediately followed by a hash character, a separator, and a denied command; the approval gate parses the string as an approved (allowlisted) command, while bash executes the denied command. As a result, the attacker's denied shell command runs with the agent's auto-execute privileges on the developer's machine, giving high impact to confidentiality, integrity and availability per the CVSS 4.0 score of 7.7 (High). Affected users are developers running Roo-Code 3.54.0 or earlier with command auto-approval enabled, especially where the agent processes untrusted content. No public proof-of-concept, in-the-wild exploitation, or KEV listing is known; EPSS estimates a 0.3% probability of exploitation in the next 30 days.

What to do: Update Roo-Code to a release newer than 3.54.0 (the first fixed version is not stated in the available data, so verify the changelog for the auto-approve bypass fix). Until patched, disable auto-approval of shell commands or tighten the allowlist, and review any commands the agent proposes when handling untrusted files, web pages, or model output. Developers can check their installed extension version in the IDE's extension panel to confirm whether they are affected.

Affected
Roo-Code (Roo Code project) Roo-Code (AI coding agent VS Code extension)All versions through and including 3.54.0
Estimated exposure
mass≈1–2 million extension installs (VS Code Marketplace install counts), with the exposed subset being users who enable shell-command auto-approval — Roo-Code is one of the most-installed AI coding agent extensions on the VS Code Marketplace with installs on the order of a million or more; only the subset running 3.54.0 or earlier with auto-approve of shell commands and exposure to…

Order-of-magnitude estimate by the model from install counts, market share and public scan data it knows; verify before quoting.

Description

Roo-Code through 3.54.0 contains an auto-approve bypass vulnerability that allows attackers to execute denied shell commands by exploiting a word-boundary mismatch in comment handling between the approval gate's shell parser and bash. Attackers can craft a command string with an allowlisted word immediately followed by a hash character, separator, and denied command to pass the approval gate while bash executes the denied command with the agent's auto-execute privileges on the developer's machine.

Weakness
CWE-436
Vector
CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:P/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X

In the news

No ingested article mentions this CVE yet.