Skip to main content
Vulnerability Database/CVE-2026-110202

CVE-2026-110202: Roo Code Auth Bypass Vulnerability

CVE-2026-110202 is an authentication bypass flaw in Roo Code that allows attackers to auto-approve denied shell commands using redirect prefixes. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-110202 Overview

CVE-2026-110202 affects Roo Code versions through 3.54.0, an AI coding assistant extension. The vulnerability resides in the getCommandDecision() function within the auto-approval logic. Attackers can bypass the command denylist by prefixing a denied shell command with a bare >& redirect operator. The allowlist matcher evaluates the redirect target (such as echo) while the shell actually executes the denied command. Threat actors can combine this flaw with indirect prompt injection to auto-approve malicious shell commands on a developer's machine without user interaction.

Critical Impact

Attackers can execute arbitrary shell commands on developer workstations by poisoning content ingested by Roo Code, bypassing explicit command denylists and auto-approval safeguards.

Affected Products

  • Roo Code versions up to and including 3.54.0
  • Roo Code VS Code extension deployments relying on command allowlist/denylist auto-approval
  • Developer environments using Roo Code with agentic shell execution enabled

Discovery Timeline

  • 2026-10-13 - CVE-2026-110202 published to NVD
  • 2026-10-15 - Last updated in NVD database

Technical Details for CVE-2026-110202

Vulnerability Analysis

The vulnerability is a command approval bypass caused by inconsistent interpretation of shell redirection operators between the Roo Code approval logic and the underlying shell [CWE-436]. The getCommandDecision() function in src/core/auto-approval/commands.ts strips or misparses the leading >& redirect operator when evaluating a command string against the allowlist. The matcher sees the token following >& as the "command" to authorize. The operating system shell, however, interprets >& as a redirection directive and executes the actual command that follows the redirection target.

This mismatch allows a crafted command such as >& echo denied-binary --flag to be classified as echo by the allowlist while the shell runs denied-binary --flag. When paired with indirect prompt injection delivered through source code, documentation, web content, or issue trackers consumed by the AI agent, the attacker-controlled command is auto-approved and executed on the developer workstation.

Root Cause

The root cause is an interpretation conflict (CWE-436, Interpretation Conflict) between two parsers. Roo Code's command parser treats the string as a sequence of tokens for allowlist checking and does not model shell redirection semantics. The shell honors >& as file descriptor redirection, shifting which token becomes the executed command. Approval decisions are therefore made on a token that will not actually run.

Attack Vector

An attacker places a malicious instruction inside content the agent is likely to read, such as a README, dependency comment, pull request description, or external web page. The injected prompt instructs the agent to execute a shell command formatted with a leading >& redirect followed by an allowlisted-looking target and a denied payload. Roo Code evaluates the command, matches the allowlist entry, auto-approves execution, and the shell runs the attacker's intended payload with the developer's privileges. See the VulnCheck Security Advisory and the GitHub PoC Repository for technical details.

// Vulnerable logic reference - see upstream source
// src/core/auto-approval/commands.ts lines 265-274
// See: https://github.com/RooCodeInc/Roo-Code/blob/v3.54.0/src/core/auto-approval/commands.ts#L265-L274

Detect Identity Attacks the Moment Authentication Fails

Singularity™ Identity surfaces credential misuse, lateral movement, and privilege escalation in real time, so you can contain the breach before it spreads.

Stop Identity Attacks

Detection Methods for CVE-2026-110202

Indicators of Compromise

  • Shell history or process telemetry showing command invocations that begin with >& followed by an allowlisted binary and additional arguments.
  • Child processes of the VS Code or Roo Code extension host that execute binaries not expected in normal developer workflows.
  • Outbound network connections initiated by developer-side shells shortly after the agent processes untrusted external content.

Detection Strategies

  • Hunt for process creation events where the command line contains the pattern >& immediately followed by a token and a second executable name.
  • Correlate Roo Code extension activity with unexpected spawned processes such as curl, wget, bash -c, powershell, or package managers.
  • Review editor and agent logs for approval decisions tied to commands whose first token is a redirect operator rather than an executable.

Monitoring Recommendations

  • Enable endpoint process-tree logging on developer workstations and ship events to a centralized analytics tier for retrospective hunting.
  • Alert on parent-child relationships where IDE or extension host processes spawn shells executing network or file-exfiltration tooling.
  • Monitor for anomalous outbound traffic from developer endpoints that coincides with AI agent sessions consuming external content.

How to Mitigate CVE-2026-110202

Immediate Actions Required

  • Upgrade Roo Code beyond version 3.54.0 to a release that corrects the getCommandDecision() redirect handling once available from the vendor.
  • Disable command auto-approval in Roo Code settings and require explicit human confirmation for every shell command the agent proposes.
  • Restrict the agent to project-scoped, non-privileged working directories and remove sensitive credentials from the developer shell environment.

Patch Information

A fixed release addressing the redirect-stripping logic in src/core/auto-approval/commands.ts should be tracked through the VulnCheck Security Advisory and the project's GitHub releases. Until a patched version is installed, treat all Roo Code deployments at or below 3.54.0 as vulnerable.

Workarounds

  • Turn off auto-approval of shell commands and set the agent to prompt for every execution.
  • Add explicit denylist entries that reject any command whose first non-whitespace token is a redirection operator such as >&, >, or &>.
  • Run the AI agent inside a sandboxed container or VM with no access to source control credentials, cloud tokens, or production networks.
  • Limit the content sources the agent can autonomously read to reduce exposure to indirect prompt injection payloads.
bash
# Example: block commands that begin with a redirect operator
# Pseudocode guard to add to custom pre-execution hooks
if [[ "$CMD" =~ ^[[:space:]]*(\>\&|\&\>|\>) ]]; then
  echo "Blocked: command starts with a redirection operator"
  exit 1
fi

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.