WP Rocket CVE-2026-125812 flaw exploited to execute unauthenticated code on servers
TL;DR
WP Rocket users face a critical unauthenticated remote code execution vulnerability, CVE-2026-125812, which is currently being exploited in the wild. If you use this plugin, update to version 3.24.2 or later immediately to prevent attackers from executing code on your server.
What happened
A critical flaw in the WP Rocket caching plugin is being targeted by automated exploitation campaigns. The vulnerability, tracked as CVE-2026-125812 (CVSS 9.8), allows an attacker to force a target site to download and execute malicious PHP files via crafted URL reports.
While a patch was released on November 19, active exploitation began on November 25. By November 26, Patchstack observed tens of thousands of blocked attempts. Attackers are using rotating proxy pools, bare IP addresses, and Cloudflare tunnels to launch these campaigns against more than 5.6 million potential targets.
Why it matters
This is a high-impact vulnerability because it requires no authentication to exploit. The attack path is highly specific: it only works if a site has either the "LazyLoad for CSS background images" or the "Self-host Google Fonts" feature enabled. Because these features are commonly used to boost performance, a large number of sites are likely at risk. The speed of the exploitation, starting just six days after the patch, indicates that attackers were ready to strike as soon as the flaw became public.
Who is affected
- WP Rocket versions 3.15 through 3.24.1 (where specific features are enabled)
What to do now
- Update WP Rocket to version 3.24.2 or later immediately.
- Disable "LazyLoad for CSS background images" and "Self-host Google Fonts" under Page Optimization > Image & Media to mitigate the attack path if you cannot update yet.
- Use the
wp-rocket-mitigate-cve-2026-125812.ziphelper plugin to disable these features across multiple sites via WP-CLI. - Inspect your web root and WordPress user accounts for unauthorized files or new users created before you patched.
- Review site logs for signs of compromise if those specific performance features were active.
What we don't know yet
- The total number of websites successfully compromised by these campaigns.
- The full extent or specific nature of the attacker-controlled content being deployed.
