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

CVE-2026-110206: Roo Code Auth Bypass Vulnerability

CVE-2026-110206 is an authentication bypass flaw in Roocode Roo Code that lets attackers auto-approve shell commands through command substitution. This article covers technical details, 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-110206 Overview

CVE-2026-110206 is a command approval bypass vulnerability in Roo Code through version 3.54.0. The flaw resides in the parseCommandLine() function within src/shared/parse-command.ts. Attackers can auto-approve arbitrary shell commands by placing a command substitution in command position. When a user submits a command such as $(echo touch /tmp/x), the parser evaluates the outer echo against the allowlist. The shell then executes the substitution output without user approval. The flaw is reachable through indirect prompt injection, allowing adversary-controlled content to trigger unauthorized command execution in the developer's environment.

Critical Impact

Successful exploitation enables arbitrary shell command execution on the host running Roo Code, bypassing the user approval control that normally gates command execution.

Affected Products

  • Roo Code versions up to and including 3.54.0
  • The parseCommandLine() function in src/shared/parse-command.ts
  • Deployments relying on the command allowlist for auto-approval decisions

Discovery Timeline

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

Technical Details for CVE-2026-110206

Vulnerability Analysis

Roo Code evaluates shell commands against an allowlist before auto-approving them. The parseCommandLine() function inspects the leading token to decide whether the command is safe. When attackers supply a command substitution such as $(echo touch /tmp/x) in command position, the parser matches the outer echo against the allowlist and marks the input as approved. The shell then expands the substitution and executes the resulting command string. This mismatch between the parser's view of the command and the shell's actual execution semantics is categorized under [CWE-436] Interpretation Conflict. The attack path is amplified by indirect prompt injection: untrusted content loaded into the agent, such as repository files or web pages, can carry the malicious command and reach parseCommandLine() without direct user action.

Root Cause

The root cause is an interpretation conflict between the Roo Code command parser and the underlying shell. The parser treats the first lexical token as the command identity. The shell, however, treats $(...) as a substitution whose output becomes the executed command. The allowlist check never evaluates the substitution content before approval.

Attack Vector

Exploitation requires an attacker to deliver a crafted command string into Roo Code's command execution flow, typically through indirect prompt injection sources the agent consumes. User interaction is limited to using the agent on tainted content. No authentication to Roo Code is required beyond the user's own session. See the VulnCheck Advisory and the GitHub PoC Repository for technical details.

// No verified exploit code is published beyond the referenced PoC write-up.
// The vulnerable pattern reaches the shell as: $(echo <attacker-command>)
// The parser approves on the leading echo token; the shell executes the substitution output.

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-110206

Indicators of Compromise

  • Shell history or process telemetry showing commands launched by the Roo Code process that contain $( or backtick substitutions in command position.
  • Unexpected file writes, network connections, or process spawns originating from the Roo Code extension host or its child shell processes.
  • Agent transcripts containing externally sourced text that includes $(...) constructs immediately followed by executed commands.

Detection Strategies

  • Monitor process creation events where the parent is the Roo Code runtime and the command line contains command substitution syntax.
  • Correlate agent prompt sources (repository files, fetched URLs, pasted content) with subsequent child process executions to identify indirect prompt injection patterns.
  • Alert on allowlisted binaries such as echo being invoked as wrappers around substitutions that produce new executables or filesystem changes.

Monitoring Recommendations

  • Enable endpoint process telemetry on developer workstations running Roo Code and retain command-line arguments.
  • Baseline normal Roo Code command activity and flag deviations such as writes outside the project directory or outbound network calls to unknown hosts.
  • Audit Roo Code configuration to confirm which commands are auto-approved and review logs of approvals that bypassed interactive confirmation.

How to Mitigate CVE-2026-110206

Immediate Actions Required

  • Upgrade Roo Code to a version later than 3.54.0 once a fixed release is published by the vendor.
  • Disable auto-approval of shell commands in Roo Code settings until the patched version is deployed.
  • Restrict Roo Code to trusted repositories and prompt sources to reduce indirect prompt injection exposure.

Patch Information

Review the vulnerable code at the GitHub Source Code File and track vendor updates through the Roo Code repository. Consult the VulnCheck Advisory for the current fix status.

Workarounds

  • Require manual approval for every shell command issued by the agent, removing reliance on the allowlist.
  • Run Roo Code inside an isolated development container or virtual machine to contain the blast radius of unapproved command execution.
  • Strip or sanitize command substitution syntax ($(...) and backticks) from agent-sourced content before it reaches the command execution path.
bash
# Example: run Roo Code in a disposable container with no host mount
docker run --rm -it --network none \
  --read-only --tmpfs /tmp \
  -v "$PWD/project:/workspace:ro" \
  roo-code-sandbox

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.