Update WP Rocket now: attackers run code with no password

A critical flaw in the WP Rocket caching plugin lets attackers run PHP code without a password. Exploited since November 25. Update to version 3.24.2.

Sala de servidores en penumbra con candados y nodos de red iluminados en teal, y un fichero de código resaltado en naranja

There is a way into a WordPress site that never touches the login page. WP Rocket, the caching plugin on millions of sites, listens to a report from every visitor's browser and trusts the addresses that report contains. An attacker sends a report with an address he controls, and the server downloads that content and saves it as a PHP file ready to run. No password. No credentials.

The flaw is CVE-2026-125812, rated 9.8 critical, and Patchstack published it on November 27. At the bottom it is a path validation problem: the plugin turns a remote URL into a path on disk without checking the host or the file name closely enough. The practical result is remote code execution with no authentication, the worst outcome for a WordPress site.

The chain works through two WP Rocket features: lazy loading CSS background images, and self-hosting Google Fonts. Both ship turned off, but they are common on sites that care about speed, which is exactly who uses a caching plugin. One of them on is enough to leave the door open.

The attacker does not need to trick anyone or find a specific page. He sends a request to the public rocket_beacon endpoint, the same one the plugin uses to measure page performance, with a URL pointing at his own server. WP Rocket downloads it and writes it into wp-content or wp-content/uploads with a .php extension. From there on, the code that runs is his.

Patchstack has tracked active exploitation since November 25 at 15:27 UTC. The first attempt was manual: one operator tried a payload against a few sites, then retried with encoded variants when something blocked it. Within a day it turned into automated campaigns, with tens of thousands of blocked attempts on November 26 alone. The payloads come from bare IP addresses, domains like nip.io, temporary trycloudflare.com tunnels, and other WordPress sites that are already compromised.

The fix is version 3.24.2, released on November 19. The vendor advisory puts the affected range at 3.15 through 3.24.1, as long as one of the two features is on. Updating closes the door, but it does not remove what an attacker already planted: the update stops new attacks, it does not clean up a PHP file left behind, which works like a computer virus waiting to be triggered. Patchstack says to check wp-content/wp-rocket-config, wp-content/uploads, and the wp-content root for files like wp-media-*.php.

If you cannot update right now, the stopgap is to turn off the two features in WP Rocket's settings. That is the same move the vendor recommends for anyone with an expired license: disable CSS background lazy loading and font self-hosting until you can install 3.24.2. And it is worth remembering that blocking PHP execution inside wp-content/cache and wp-content/uploads is a defense-in-depth step, the same logic as the principle of least privilege, that caps the damage from this kind of flaw.

The flaw was reported by researcher Vorelito through Patchstack's bug bounty program, and Patchstack is the CNA that assigned the CVE. The lesson is not new: a feature built to make the web faster can become the front door if it accepts addresses without validating them. Anyone running WordPress with WP Rocket should check the version this week, as part of IT maintenance that can no longer wait, because exploitation has stopped being a maybe.