Documented Incident · INC-2025-53097 · High severity

Roo Code search_files Tool Bypassing Workspace File-Read Restrictions

CVE-2025-53097 (published June 27, 2025) revealed a path boundary bypass in the Roo Code autonomous coding extension's `search_files` tool. Even when developers explicitly configured workspace rules to prohibit reading files outside the project directory, crafted path parameters passed to `search_files` escaped the workspace restriction and returned sensitive host file contents into the LLM context window. Combined with indirect prompt injection, attackers could harvest `.ssh`, `.aws`, or `.env` files located elsewhere on the filesystem. Maintainers fixed path validation in `search_files` to honor workspace containment settings.

Incident dossier metadata

Case ID
INC-2025-53097
Classification
Incident
Date
Severity
High
Sector
Software Development & AI Tooling
Attack vector
Data Exfiltration
System type
Autonomous IDE Coding Agent Extensions
CVE / reference
CVE-2025-53097
Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2025-53097

Inspect INC-2025-53097 in Interactive Incidents & Cases Hub

Defensive takeaway

Apply identical canonical workspace boundary checks across search, grep, glob, and direct file-read tools exposed to coding agents.

Mapped AI security techniques

Mapped defensive controls

Source citation records