If you run WordPress, there's a decent chance you run WP Rocket. Patchstack puts it at more than 5.5 million installs. And since the day before Thanksgiving, attackers have been hammering a bug in it that lets them write and run PHP on your site without logging in.
What We Know
Per Patchstack's write-up:
- CVE: CVE-2026-125812, unauthenticated remote code execution, CVSS 9.8.
- Affected: WP Rocket before 3.24.2, but only when "LazyLoad for CSS background images" or "Host Fonts Locally" is turned on. Both are off by default, which is the one piece of good news here.
- Fixed: 3.24.2.
- How it works: a browser-side beacon reports page URLs to a public AJAX endpoint (
action=rocket_beacon). WP Rocket didn't validate those reports strictly enough, so a forged report makes the site download remote content and save it as a PHP file. - Exploitation: first attempt seen November 25 at 15:27 UTC, hand-tested and then retried with encoded variants. Automated campaigns followed within a day, with "tens of thousands of blocked attempts on November 26 alone."
- How many sites got popped: unknown. Nobody has published a count.
Why It Matters
Caching and performance plugins are the definition of "install it once and forget it." They're on marketing sites, agency-built sites, and small business sites that nobody has logged into since launch. That's exactly the population that doesn't patch over a holiday week.
The bigger trap: updating does not remove what's already there. Patchstack says it plainly. If your site was vulnerable and unprotected between November 25 and the moment you updated, a planted PHP file can still be sitting on disk waiting for someone to call it.
Disclosure: I work at Zscaler. Nothing I sell patches your WordPress plugins. This one is on whoever runs the site.
What To Do
- Update to WP Rocket 3.24.2 or later today.
- Can't update yet? Turn off LazyLoad for CSS background images and Host Fonts Locally. That closes the vulnerable path.
- Hunt for planted files. Look for
wp-media-*.phpinwp-content/wp-rocket-config/,wp-content/uploads/andwp-content/. PHP in the uploads folder is almost never legitimate. - Check your logs for
POST /wp-admin/admin-ajax.phpwithaction=rocket_beacon, especially reports carrying full URLs, and for outbound requests from the web server to unfamiliar hosts, nip.io or trycloudflare.com tunnels. - If you find something, treat the site as compromised: restore from a known-good backup, rotate admin passwords, database credentials and API keys stored in
wp-config.php, and check for new admin users. - Agencies and hosts: this is a fleet problem. Inventory every site with WP Rocket and those two settings enabled, not just the ones you remember.
Bottom Line
Off-by-default settings kept this from being a WordPress-wide fire, but tens of thousands of attempts a day means somebody is getting in. Patch, then go look for the file they left behind, because the patch won't.
Source: Patchstack