WP Rocket flaw exploited at scale: update to 3.24.2 and check for planted files
Patchstack counted more than 25,000 blocked attacks from 25 November 2026 against a critical WP Rocket flaw affecting 5.6 million WordPress sites. Version 3.24.2, released 19 November, closes it.

Affects
- WP Rocket
- WordPress
Tracked as
CVE-2026-125812WP Rocket, in WordPress · CVSS 9.8
The fix had been out for eleven days when the attacks arrived. WP Rocket 3.24.2, released on 19 November 2026, closed a critical hole in the popular WordPress caching plugin — but many sites had not installed it yet. Patchstack spotted the first manual exploitation attempts on 25 November at 15:27 UTC, and within a day the probing had turned into fully automated campaigns. Its platform has blocked more than 25,000 malicious requests since, and BleepingComputer reported the mass exploitation on 30 November.
This is not a newly discovered flaw. The patch, the vendor advisory and the first attacks all predate the headlines by days — what is new is the scale of the exploitation now under way.
- 5.6MSites using WP Rocket
- 25,000+Malicious requests blocked
- 9.8CVSS score, critical
How the attack works
To speed pages up, the plugin asks each visitor’s browser to measure the page and send the numbers back to a public endpoint. Those incoming reports were trusted too far: a stranger can forge one that points at a file on a server they run, and the plugin will fetch it and store it with a PHP extension, so the server executes the attacker’s code.
The flaw, tracked as CVE-2026-125812, is a path traversal weakness: a crafted path can escape the cache folder where the plugin is supposed to write, so the attacker’s file lands somewhere the server will execute. No account on the site is needed. Two optional features open the way in: LazyLoad for CSS background images and Host Fonts Locally. Both are switched off by default, but both are common on performance-tuned sites.
Attackers try both routes, sometimes in a single request, so that whichever feature a site has switched on, one of them fires. Payloads are hosted on bare IP addresses, wildcard DNS names, temporary tunnels and other WordPress sites that look compromised themselves. Patchstack’s telemetry shows the ten busiest attacker addresses account for roughly half of all blocked attempts.
Who is at risk
Every WP Rocket release before 3.24.2 carries the flaw, but a site is only exposed while at least one of the two features is switched on. WP Media says the plugin runs on more than 5.6 million sites for 394,000 customers, so even a small share of sites with those features enabled means a large number of reachable targets.
How the campaign unfolded
19 Nov 2026
Patch ships
WP Media releases WP Rocket 3.24.2, closing the flaw.
25 Nov 2026
First exploitation attempts
Patchstack sees manual probing at 15:27 UTC, with encoded retries when the first payload is blocked.
26 Nov 2026
Automated campaigns begin
Tens of thousands of blocked attempts in a single day as the attacks go fully automatic.
27 Nov 2026
Advisories go public
Patchstack publishes its analysis and WP Media updates its security advisory.
30 Nov 2026
Mass exploitation reported
BleepingComputer reports the campaign, with more than 25,000 malicious requests blocked so far.
Updating is not enough on its own
Attackers who got in typically leave a small probe or webshell behind, sometimes under names starting with wp-media- and ending in .php. Files can sit anywhere under wp-content/, including the must-use plugins folder that WordPress loads on every request — a file there can rebuild the other planted files after they are deleted. Check the logs too: requests to the rocket_beacon endpoint from visitors who never loaded the reported page, and outbound connections to unfamiliar hosts, are both signs of a visit.
What to do now
Update to 3.24.2 or later
In the WordPress dashboard, open Plugins, find WP Rocket and select Update now, then confirm the installed version is 3.24.2 or later.
If updating must wait, switch both features off
In the plugin settings, under Page Optimization and then Image & Media — the Media tab on older releases — switch off the two features named above, save the settings, and clear the plugin cache.
Hunt for planted files
Search all of wp-content/, including mu-plugins/, uploads/ and wp-rocket-config/, for PHP files that should not be there. Look for unfamiliar administrator accounts as well.
Check the logs, then restore if needed
Review logs for rocket_beacon requests and outbound connections to strange hosts. If the site was breached, restore from a backup made before 19 November and change the affected passwords.
WP Rocket’s own advisory carries the same workaround, plus a helper plugin for agencies managing many sites at once, which switches both features off in bulk.
Sources
- Hackers exploit critical WordPress WP Rocket flaw to breach sitesBleepingComputer
- Critical WP Rocket RCE (CVE-2026-125812) Under Active AttackPatchstack
- WP Rocket security advisory and mitigation steps for CVE-2026-125812WP Rocket


