CVE-2025-53536

High

Description

Roo Code is an AI-powered autonomous coding agent. Prior to 3.22.6, if the victim had "Write" auto-approved, an attacker with the ability to submit prompts to the agent could write to VS Code settings files and trigger code execution. There were multiple ways to achieve that. One example is with the php.validate.executablePath setting which lets you set the path for the php executable for syntax validation. The attacker could have written the path to an arbitrary command there and then created a php file to trigger it. This vulnerability is fixed in 3.22.6.

SeverityHigh
CVSS8.1
Exploit probability—
ProductRoocode Roo Code
PublishedJul 7, 2025
First seenJul 7, 2025
Weakness typeCWE-552CWE-552

How to fix

Update
  • roocode roo_code3.22.6 or later

Affected products

ProductAffected versionsFixed in
roocode roo_codev < 3.22.63.22.6

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.

CVE-2025-53536 · Roocode Roo Code · Dark Radar