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

CVE-2026-110204: Roo Code Auth Bypass Vulnerability

CVE-2026-110204 is an authentication bypass flaw in Roo Code that lets attackers execute denied shell commands through command substitution. This post covers the 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-110204 Overview

CVE-2026-110204 is a command approval bypass vulnerability in Roo Code through version 3.54.0. The flaw resides in the parseCommandLine() function, which incorrectly treats ${ command; } function substitution (FunSub) syntax as a parameter expansion. Attackers leveraging indirect prompt injection can embed denied shell commands inside an allowlisted wrapper such as echo and execute them without user approval. Exploitation requires a shell that supports FunSub syntax, specifically bash 5.3+ or ksh93. The weakness is classified under [CWE-436: Interpretation Conflict], where parser behavior diverges from the downstream shell's execution semantics.

Critical Impact

Attackers can execute arbitrary denied shell commands on developer systems through prompt injection, bypassing Roo Code's command approval controls.

Affected Products

  • Roo Code versions up to and including 3.54.0
  • Deployments running on bash 5.3+
  • Deployments running on ksh93

Discovery Timeline

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

Technical Details for CVE-2026-110204

Vulnerability Analysis

Roo Code validates shell commands before execution using the parseCommandLine() function defined in src/shared/parse-command.ts. The parser inspects substitution constructs to split a user-provided command string into subcommands that are each checked against the allowlist and denylist. The parser classifies ${ command; } as a parameter expansion rather than a command substitution. Modern shells including bash 5.3+ and ksh93 implement this syntax as FunSub, which executes the enclosed command inline during expansion.

Because the parser never isolates the embedded command, the allowlist check only sees the outer wrapper. A developer who has approved echo as safe effectively approves any command smuggled inside ${ denied_command; }. The vulnerability chains with indirect prompt injection, where attacker-controlled content supplied to the AI agent causes Roo Code to generate a crafted command that passes parsing but executes a denied payload at the shell layer.

Root Cause

The root cause is an interpretation conflict between Roo Code's command parser and the target shell. The parser's logic at lines 74–79 of parse-command.ts matches ${...} as parameter expansion syntax without accounting for the FunSub extension introduced in bash 5.3 and present in ksh93. This mismatch allows commands embedded inside ${ ...; } to evade both allowlist enforcement and denylist filtering.

Attack Vector

Exploitation proceeds through network-reachable prompt injection. An attacker plants malicious instructions in content the Roo Code agent processes, such as a webpage, repository file, or external document. The injected prompt coerces the agent to emit a command of the form echo ${ rm -rf ~; }. Roo Code's auto-approval logic sees echo on the allowlist and executes the string. The target shell then expands ${ rm -rf ~; } as a FunSub, running the denied command under the user's privileges without an approval prompt. User interaction is limited to normal agent use; no explicit approval of the malicious command is required.

See the VulnCheck Security Advisory and the GitHub Source Code Reference for the parser logic.

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

Indicators of Compromise

  • Shell history entries containing ${ followed by a command and ; } inside allowlisted wrappers such as echo, printf, or true.
  • Child processes of the Roo Code agent executing commands that were never surfaced for user approval.
  • Unexpected file modification, credential access, or outbound network connections originating from the editor or agent process tree.
  • AI agent transcripts containing externally sourced content that instructs the agent to produce echo ${ ...; } constructions.

Detection Strategies

  • Hunt process creation events where the parent is the Roo Code or editor process and the command line contains the ${ token followed by ; }.
  • Correlate agent command-execution logs with shell audit logs to flag divergence between the parsed command and the actual process tree.
  • Alert on bash or ksh invocations where the shell version is 5.3 or later and the command string contains FunSub syntax originating from an AI agent.

Monitoring Recommendations

  • Enable shell command auditing via auditd or equivalent and forward events to a central analytics pipeline.
  • Capture full command lines on process creation events across endpoints that host developer tooling.
  • Review Roo Code approval and execution logs for allowlisted wrappers invoked with unusual expansion syntax.

How to Mitigate CVE-2026-110204

Immediate Actions Required

  • Upgrade Roo Code beyond version 3.54.0 once a fixed release is published by the maintainers.
  • Disable auto-approval of shell commands in Roo Code and require explicit per-command confirmation.
  • Restrict Roo Code agents from processing untrusted external content that could carry indirect prompt injection payloads.
  • Run developer agents under least-privilege accounts without access to sensitive credentials, keys, or production systems.

Patch Information

At publication, the GitHub CVE Documentation identifies the defective parser logic in parse-command.ts lines 74–79. Users should monitor the Roo Code repository for a release that updates parseCommandLine() to classify ${ command; } as command substitution and apply allowlist and denylist checks to the embedded command. Review the VulnCheck Security Advisory for updated remediation guidance.

Workarounds

  • Configure Roo Code to use a shell that does not implement FunSub, such as bash versions prior to 5.3, where feasible.
  • Remove shell-execution tools from the agent's capability set and rely on structured tool interfaces instead.
  • Add an endpoint policy that blocks process creation when command lines contain the ${ substring originating from AI agent processes.
  • Sandbox the agent in a container with no network egress and ephemeral filesystem to limit the blast radius of a successful bypass.

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.