WP Rocket Has a Critical Flaw. Hackers Are Already Using It to Breach Sites.

WP Rocket Has a Critical Flaw. Hackers Are Already Using It to Breach Sites.

A critical flaw in WP Rocket, one of the most popular caching plugins for WordPress, is being actively exploited — and the attacks went from careful manual probes to fully automated campaigns in about a day. The flaw, tracked as CVE-2026-125812, lets an attacker with no account and no login write and run arbitrary PHP code on a vulnerable site, by sending bad data to a public endpoint and pulling the malicious code down from a server somewhere else on the internet.

The scale is what makes this one hard to ignore. WP Rocket is a paid plugin from WP Media that handles page caching, CSS optimization, and lazy-loading images. It runs on more than 5.6 million sites, for 394,000 customers. But not every one of those sites is exposed.

The flaw only bites on WP Rocket versions before 3.24.2, and only when one of two options is switched on: “LazyLoad for CSS background images” or “Host Fonts Locally.” Both options are off by default. So a site running an older version with both options untouched is not reachable through this flaw — but any site with either option enabled is a target, and the attackers know it. Patchstack, which has been tracking the attacks, put it plainly: “Attackers use both feature paths, sometimes in one request, so that whichever feature a site has enabled, one of them fires.”

The fix has been out for a while. WP Media released version 3.24.2 on November 19 and published an advisory over the weekend of November 28–29, urging everyone to upgrade to 3.24.2 or later. The attacks started after the fix: Patchstack saw the first low-scale manual exploitation attempts on November 25 at 15:27 UTC, and by November 26 the attempts had escalated into fully automated campaigns. Patchstack has already blocked more than 25,000 malicious requests from multiple attackers — and the large-scale automated attacks are still happening.

The malicious code itself lives on infrastructure built to be hard to trace and quick to replace: bare IP addresses, wildcard DNS names such as nip.io, temporary trycloudflare.com tunnels, and other WordPress sites that are likely already compromised. Breached sites become launchpads for breaching the next ones.

Diagram of the WP Rocket attack cycle: an unauthenticated attacker sends bad data to a public endpoint, validation fails to stop it, a PHP payload is fetched from an outside host, the payload is written and run on the site, and the attacks go automated as campaigns scale up.

Why this one matters

Unauthenticated remote code execution is the worst category of web flaw: no password to steal, no account to phish, no user to trick. The attacker just talks to a public endpoint and the site runs their code. From there, a site can be defaced, turned into a spam or phishing host, or folded into the next wave of attacks — the same pattern as the payload hosting above. And WordPress is no stranger to this kind of pressure: just this month, WordPress stopped six backdoored plugins before they ever went live. The ecosystem is a constant target, and a flaw in a plugin installed on millions of sites is the kind of opening attackers automate first.

There is also a hard lesson hiding in the timeline. The fix shipped on November 19. The exploitation started on November 25. That is six days between patch and attack — and the attacks are automated now, which means machines, not people, are finding every unpatched site with the options on. Waiting is not a strategy.

Four checks if you run WP Rocket

If you run a WordPress site with WP Rocket, do these four things, in this order.

1. Update to 3.24.2 or later — right now. This is the fix, and it has been available since November 19. If you manage more than one site, WP Media has also shared a helper plugin for managing multiple sites.

2. If you cannot update yet, switch both options off. Go to WP Rocket > Page Optimization > Image & Media > Media tab, and turn off “LazyLoad for CSS background images” and “Self-host Google Fonts” — the dashboard label for the Host Fonts Locally feature. With both options off, the flaw has nothing to fire through. Treat this as a stopgap: update as soon as you can.

3. Block the attacker IPs. Patchstack has published the attacker IP addresses it has seen in these campaigns. Add them to your blocklist at the firewall or server level. It will not stop a new attacker from a new address, but it cuts off the infrastructure already hammering sites today.

4. Check your logs — updating does not clean a site that was already breached. If your site ran a vulnerable version with either option switched on, review the logs for suspicious requests and outbound connections your site should not be making. Updating closes the hole; it does not remove files the attackers already planted. That distinction matters: Drupal sites were still being taken over after the installer was fixed — the same story applies here. A patch is not a cleanup.

Diagram of what to do about the WP Rocket flaw: check whether the version is before 3.24.2, whether LazyLoad CSS backgrounds or Host Fonts Locally is on, and whether the logs show odd requests — then update to 3.24.2 or switch the options off. A safe site is updated with the options off; a site still waiting must update today; a site with planted files needs its logs reviewed now.

The pattern is familiar: a popular plugin, a quiet fix, a short pause, then automated exploitation at scale. The sites that come out fine are the ones that treat the advisory as a same-day job — update, switch off what you cannot update, block what you can, and check the logs for what already happened. WP Rocket gave its users the fix eleven days ago. The attackers have had five.

Comments

This site uses Akismet to reduce spam. Learn how your comment data is processed.