CVE Watch

WP Rocket CVE-2026-125812: Unauthenticated RCE Under Active Attack

· 7 min read
A website window with a rocket on a speed gauge and a beacon signal on top; a line from a dark server carries a <?php file into the signal, and the file lands in a glowing stack of cache folders below the rocket’s exhaust

If you run WP Rocket, make sure it’s on 3.24.2 or later today. The current release, 3.24.3, is fine. CVE-2026-125812 lets anyone, with no login, make a WP Rocket site download a file from the attacker’s server, save it as PHP and run it. It only works when one of two optional features is on: LazyLoad for CSS background images or Host Fonts Locally. Many performance-tuned sites use both. Patchstack saw the first attack on November 25, the day the CVE was published, and automated campaigns started the next day.

At a glance

CVECVE-2026-125812
PluginWP Rocket (wp-rocket), premium caching plugin from WP Media, 5.5 million+ sites according to Patchstack
TypePath traversal leading to unauthenticated remote code execution
SeverityCVSS 9.8 (Critical), no login or user interaction needed
AffectedEvery version before 3.24.2, with LazyLoad for CSS background images or Host Fonts Locally turned on
Fixed3.24.2 (released November 19, 2026). 3.24.3 (November 26) includes the fix.
Found byVorelito, through the Patchstack bug bounty, reported November 4, disclosed November 23
StatusActively exploited since November 25, 2026

What’s wrong

WP Rocket adds a small script, called the beacon, to the pages it optimizes. The script runs in each visitor’s browser, measures the page (which images are above the fold, which CSS backgrounds and fonts are used), and posts the results back to the site at a public AJAX action, rocket_beacon. WP Rocket then uses those results to optimize the page for everyone, which includes downloading CSS and font files and saving local copies.

That endpoint has to be public: real visitors aren’t logged in. So anything it receives is attacker-controlled. Before 3.24.2, WP Rocket didn’t check the reported URLs and file paths strictly enough. Two features act on them:

  • LazyLoad for CSS background images, which works with the background-image URLs the beacon reports
  • Host Fonts Locally, which downloads font files and stylesheets and saves them on your server

Both are off by default. The attack, as Patchstack describes it:

  1. The attacker hosts a PHP payload on a server they control.
  2. They send a fake beacon report to /wp-admin/admin-ajax.php with action=rocket_beacon. Where WP Rocket expects a plain domain, the report has a full URL pointing at the payload, plus a path that leaves WP Rocket’s cache folder.
  3. WP Rocket downloads the payload and saves it as a .php file inside the site.
  4. The attacker requests that file, and the server runs it. From there they can do anything the web server can.

WP Rocket’s changelog for 3.24.2 lists one line for it: “Improve validation of cached CSS, font and preconnect files.”

What the attacks look like

Patchstack logged the first attempt on November 25 at 15:27 UTC, a few hours after the CVE was published. That first attacker worked by hand: they tried a few sites, then retried with encoded payloads when they were blocked. By November 26 there were automated campaigns, with tens of thousands of blocked attempts that day alone. What Patchstack has seen:

  • All requests are a POST to /wp-admin/admin-ajax.php with action=rocket_beacon, often from clients that never loaded the page they’re reporting on.
  • Many requests use both feature paths at once, so the attack works whichever feature a site has turned on.
  • The payloads are hosted on bare IP addresses, wildcard DNS names such as nip.io, temporary trycloudflare.com tunnels, and other WordPress sites that were probably already compromised.
  • Some attackers check whether a site is vulnerable before sending anything that reveals their own server.
  • Planted files have been found in wp-content/wp-rocket-config/, wp-content/uploads/ and directly in wp-content/. One naming pattern is wp-media-*.php, made to look like it belongs to the plugin’s vendor.

These ten addresses sent about half of all blocked attempts since November 25:

103.235.74.71
157.245.122.230
152.89.170.194
180.232.236.101
103.235.74.72
201.79.120.217
112.78.154.32
167.71.75.155
43.163.8.253
51.79.199.209

Use them to search your logs, not as your defense. There are several independent groups, and one cluster sends identical requests through a pool of rotating residential IPs. Blocking these ten won’t stop the rest.

What to do

1. Update

Go to Plugins and check that WP Rocket is on 3.24.2 or later. Most sites now show 3.24.3. WP Rocket doesn’t update from WordPress.org: updates come from WP Media’s own servers and need an active license. If a license has lapsed, maybe on an old client site or one a previous agency set up, that site won’t be offered the update and will stay vulnerable. Renew the license or install 3.24.2 or later by hand from your WP Rocket account.

If you can’t update right away, go to Settings → WP Rocket and turn off both LazyLoad for CSS background images and Host Fonts Locally. Both are on the Media tab in recent versions. With both off, the vulnerable code path isn’t reached.

2. Check whether you were exposed

A site was at risk if it ran a version older than 3.24.2 after November 25 with either feature turned on. Updating stops new attacks. It doesn’t remove anything an attacker already planted. If you updated on or after November 25 and had either feature on, check the site.

3. Look for planted files

Look for PHP files that shouldn’t be there. With shell access:

# PHP in wp-rocket-config other than the per-domain config files
ls -la wp-content/wp-rocket-config/

# Any PHP in uploads is suspicious
find wp-content/uploads -name "*.php"

# PHP files directly in wp-content, changed since November 19
find wp-content -maxdepth 1 -name "*.php" -newermt "2026-11-19"

# The pattern Patchstack has seen
find wp-content -name "wp-media-*.php"

wp-rocket-config/ normally holds one config file per domain, named after the domain, such as example.com.php. wp-content/ itself normally has only index.php and drop-ins you know about, such as advanced-cache.php and object-cache.php. If there’s anything else, open it before you delete it, and treat the site as compromised.

Then check your access logs for admin-ajax.php POSTs from the addresses above. If your host keeps outbound connection logs, look for requests from the web server to nip.io, trycloudflare.com or bare IPs.

4. If you find something

A planted PHP file means someone could run code as your web server, so deleting the file isn’t the whole fix. Check for new admin users, unfamiliar plugins and files in wp-content/mu-plugins/, and changes to wp-config.php and .htaccess. Then change the database password and salts and every administrator’s password. If you can, restore from a backup taken before November 25 and update WP Rocket before you put the site back online.

5. Defense in depth: don’t let these folders run PHP

The attack only works if the server will run a PHP file that was dropped somewhere it shouldn’t be. Neither uploads/ nor wp-rocket-config/ needs to run PHP from a browser request: WP Rocket includes its config files from PHP, which this doesn’t affect. On Apache or LiteSpeed, put this .htaccess in each folder:

# Block direct execution of PHP in this folder
<FilesMatch "\.(php|phtml|phar|php[0-9])$">
    Require all denied
</FilesMatch>

On nginx, add a location block that returns 403 for PHP under those paths. Test the site afterward, including image uploads and a cache clear, to make sure nothing relied on them.

Where sources disagree

  • Affected versions. The CVE record and Patchstack say every version before 3.24.2. Some coverage names 3.15 as the first affected version, but I couldn’t find a WP Media statement saying so. Treat every version before 3.24.2 as affected.
  • Exploited or not. Patchstack marks it as known exploited. The CISA entry in the CVE record says “Exploitation: none”, but CISA added it at 14:57 UTC on November 25, half an hour before Patchstack logged the first attack. It hadn’t been updated when I checked.
  • Which fix. The security fix is in 3.24.2. 3.24.3, released a week later, adds an AI assistant and a Used CSS fix, with no security entry. Either one is safe.

The bigger lesson

This is the same shape as the WP Fastest Cache bug two weeks ago. A caching plugin takes data from outside, turns it into a file path, and writes or deletes there. Here the data comes from a public endpoint that anyone on the internet can post to, because it has to accept reports from visitors who aren’t logged in. Anything the beacon reports is attacker input. A feature that downloads a URL from that input and saves it to disk is a file-upload form, whatever the settings page calls it.

Speed features add attack surface, and the ones that are off by default are easy to forget once you turn them on. Know which ones you’ve enabled, and why. And watch premium licenses as closely as the plugins themselves. A paid plugin with a lapsed license stops getting patches, and every plugin has to earn its place, including the one that makes your site fast.

Sources