WP Rocket flaw under active attack, fix in 3.24.2
Attackers are exploiting a critical WP Rocket flaw that lets unauthenticated callers run PHP on WordPress sites. Update to 3.24.2 and check for planted files.

Exploitation confirmed. A critical flaw in the WP Rocket caching plugin, tracked as CVE-2026-125812, is being used against WordPress sites to run arbitrary PHP code without authentication, BleepingComputer reported on November 30.
What is affected
Versions before 3.24.2. The flaw sits in insufficient validation of data sent to a public endpoint. An unauthenticated attacker can make the site write and run PHP code fetched from an external source.
Only sites with the “LazyLoad for CSS background images” or “Host Fonts Locally” option enabled are exposed. Both are off by default. Exposure on a given site is therefore a configuration question, not a version question alone.
WP Media, the developer, says WP Rocket runs on more than 5.6 million sites and 394,000 customers. That is the vendor’s figure, unverified independently.
Exploitation timeline
- November 19: WP Media released fixes.
- November 25, 15:27 UTC: Patchstack observed the first low-scale, manual attempts.
- November 26: activity escalated to fully automated campaigns, per Patchstack.
- Weekend of November 28-29: WP Media published its advisory.
Patchstack says its platform has blocked more than 25,000 malicious requests from multiple attackers. Requests target both vulnerable features, sometimes together, so a site is hit whichever option it has on. Payloads are hosted on bare IP addresses, wildcard DNS names, temporary tunnels and other WordPress sites that are likely compromised. Patchstack has published attacker IP addresses for blocklists.
What to do
- Update to WP Rocket 3.24.2 or later.
- If you cannot update, turn off LazyLoad for CSS background images and Self-host Google Fonts under WP Rocket > Page Optimization > Image & Media > Media.
- WP Media shared a helper plugin for operators managing many sites.
- Updating does not remove files already planted. Sites that ran a vulnerable version with either option on should review logs for suspicious requests and outbound connections.
Compromise status of any individual site is unconfirmed until those logs are checked. No attribution for the campaigns has been published in the cited reporting.
More WordPress coverage is on the WordPress hub, including BuddyPress Restrict 1.5.5 fixes unauthenticated code injection.
Found this useful? Share it.


