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
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
- Data from Local System AML.T0037
- AI Agent Tool Invocation AML.T0053
- Data from AI Services: AI Agent Tools AML.T0085.001
Mapped defensive controls
Source citation records
- NVD Record CVE-2025-53097: Roo Code search_files Workspace Boundary Bypass · NIST National Vulnerability Database (NVD) ·