If you run WP Rocket, this is a stop-and-update alert
Hackers are actively exploiting a critical, unauthenticated remote code execution flaw in WP Rocket, the wildly popular WordPress caching plugin. Tracked as CVE-2026-125812 (CVSS 9.8), it lets an attacker with no credentials write and execute PHP code on your WordPress server. Patchstack spotted the first exploitation attempt on November 25, and within 24 hours the campaign went fully automated, with tens of thousands of malicious requests blocked. If the plugin is on your site, this is not a drill.
What the vulnerability is
CVE-2026-125812 is an unauthenticated remote code execution bug in WP Rocket versions 3.15 through 3.24.1. The root cause is insufficient validation of data a visitor’s browser posts to a public AJAX endpoint used for page-measurement and asset optimization. Sending a specially crafted request tricks the plugin into reaching out to a server controlled by the attacker, retrieving content from it, and saving that content to disk as a PHP file — which the server then runs.
It is a class of flaw security folks call a path traversal combined with a write primitive: because WP Rocket fails to properly validate the URLs it’s fed, the attacker can steer exactly where that fetched file lands on disk. The end result is full remote code execution on the web server, no login required. Wordfence rates the bug 8.8; Patchstack and the broader industry put the severity at 9.8 critical given how trivial exploitation is.
Who has to care
WP Rocket sits on more than five million WordPress sites, which makes this a juicy target for automated mass exploitation. But there’s a catch that limits the exposure: the vulnerability only bites when at least one of two features is enabled — LazyLoad for CSS background images or Self-host Google Fonts (Host Fonts Locally). Neither is on by default. That means a lot of sites are technically vulnerable by version but not actually exploitable unless one of those options is switched on.
Attackers know this too. Patchstack reports the exploitation attempts target both features at once, sometimes in the same request, so the payload fires whether the site has either one active.
What the attack looks like
Patchstack observed the first low-scale, manual probing on November 25 at 15:27 UTC, six days after the fix shipped. By the next day the activity escalated to fully automated campaigns from multiple operators. Patchstack’s platform alone blocked more than 25,000 malicious requests, and Wordfence independently reported blocking 135 attacks in the 24 hours before its own advisory. Payloads are being hosted on bare IP addresses, wildcard DNS services, and even other compromised WordPress sites.
Once the attacker gets code running, the playbook is familiar: plant a persistent web shell, pivot across whatever else runs on the server, beacon out to the attacker’s infrastructure, and exfiltrate data. Because it’s a foothold on your web-facing server, a full site takeover and even lateral movement into other hosted services are on the table.
What you need to do right now
- Update WP Rocket to 3.24.2 or later immediately. The fix shipped on November 19, and version 3.24.3 is now current. Even if you think you might not be affected, patch anyway — the check costs you nothing and the risk is real.
- If you can’t update right away, disable both LazyLoad for CSS background images and Self-host Google Fonts. That removes the exploitable condition until you can get the update applied. Patchstack also offers a RapidMitigate virtual patch that blocks the attempts without touching plugin code.
- Understand that updating does NOT clean an already-compromised site. If the attacker got code on the disk before you patched, the web shell stays. Patching closes the door; it doesn’t evict anyone already inside.
- Hunt for compromise. Review your web access logs and any outbound connections to unknown destinations. Check for suspicious PHP files in
wp-content/wp-rocket-config/,wp-content/uploads/, and directly underwp-content/. Look for unexpected files in the web root. - If you find a web shell, treat it as a full breach. Rotate all credentials, resecure the hosting account, and consider a full restore from a clean backup. A planted shell is a backdoor, not a one-off exploit.
The takeaway
This is a textbook example of a mass-target WordPress plugin flaw: a real critical bug, no authentication barrier, and automated exploitation happening right now on millions of sites. The fix is a two-minute plugin update. If WP Rocket (or any other plugin on a public WordPress site) is yours to manage, close this door today — and take the time to confirm nothing was already planted. Patch first, then hunt.