Incident report
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 record
- Reported
- Severity
- High
- Vector
- Data Exfiltration
- Affected system type
- Autonomous IDE Coding Agent Extensions
- Reference
CVE-2025-53097- Reference URI
https://nvd.nist.gov/vuln/detail/CVE-2025-53097
Defensive lesson
Apply identical canonical workspace boundary checks across search, grep, glob, and direct file-read tools exposed to coding agents.
Referenced techniques
- Data from Local System AML.T0037
- AI Agent Tool Invocation AML.T0053
- Data from AI Services: AI Agent Tools AML.T0085.001