WP Rocket RCE exploited days after patch (CVE-2026-125812)
Unauthenticated RCE in WP Rocket before 3.24.2 (CVE-2026-125812) is under automated exploitation per Patchstack. Only reachable with two non-default options on. Patch now.
WP Rocket, the paid WordPress caching plugin from WP Media installed on more than 5.6 million sites, has an unauthenticated remote code execution flaw — CVE-2026-125812 — fixed in 3.24.2. Patchstack, which tracks the exploitation, says attacks escalated to fully automated campaigns on November 26, a week after the patch shipped. If you run WP Rocket with "LazyLoad for CSS background images" or "Host Fonts Locally" enabled, patch today.
The primary source is Patchstack's WP Rocket advisory, which lists the RCE affecting versions below 3.24.2; it is corroborated by reporting at BleepingComputer.
What the bug does
Per Patchstack, insufficient validation of data sent to a public endpoint lets an unauthenticated attacker write and run PHP code fetched from an external source — full RCE. The flaw (CVE-2026-125812) is only reachable when one of two optimization features is switched on: "LazyLoad for CSS background images" or "Host Fonts Locally." Both are off by default, so a stock install is not exposed — but both are common on performance-tuned sites, and attackers have been hitting both paths, sometimes in the same request.
Affected versions
All WP Rocket releases before 3.24.2, when either feature is enabled. WP Media shipped the fix in 3.24.2 on November 19. WP Media reports 394,000 customers across 5.6 million sites.
Exploitation status
Patchstack observed the first low-scale, manual exploitation attempts on November 25 at 15:27 UTC, escalating to fully automated campaigns the next day. Its platform blocked more than 25,000 malicious requests from multiple attackers. Patchstack reports the payloads were hosted on bare IP addresses, nip.io wildcard DNS names, temporary trycloudflare.com tunnels, and other likely-compromised WordPress sites. It did not publish file hashes.
Action checklist
- Update to WP Rocket 3.24.2 or later now.
- If you can't update immediately, disable "LazyLoad for CSS background images" and "Host Fonts Locally" under WP Rocket > Page Optimization > Image & Media > Media tab. This closes the reachable surface.
- Updating does not remove files planted earlier. Review web and server logs for suspicious requests to WP Rocket endpoints and unexpected outbound connections to bare IPs,
nip.io, ortrycloudflare.comtunnels. - Hunt for dropped PHP in
wp-contentwritten around or after November 25, and for unexpected admin users or scheduled tasks.
Context
This is the latest WordPress plugin RCE weaponized within days of disclosure — the same pattern that hit Bricksforge earlier this year. A 5.6-million-site footprint means a public endpoint that mishandles input becomes a mass-exploitation target the moment a patch tips attackers off to it. The default-off saving grace only helps sites that never turned the features on; measure your own exposure rather than assume it.