WP Rocket Flaw CVE-2026-125812 Under Attack; Update to 3.24.2

Attackers are exploiting WP Rocket flaw CVE-2026-125812, an unauthenticated PHP code execution bug. Update to 3.24.2 and check for planted files.

Attackers are exploiting a critical flaw in WP Rocket, a paid WordPress caching plugin that Patchstack says runs on more than 5.5 million sites. The bug, CVE-2026-125812, lets someone with no login write a PHP file to a site and run it. A fix has been available since November 19, so any site still on an older version should update now.

What happened

WP Rocket runs a small script in visitors’ browsers that reports page measurements to a public AJAX endpoint on the site. According to Patchstack, the plugin does not check the URLs in those reports strictly enough. An attacker can send a crafted report that makes the site download content from a server the attacker controls, save it as a PHP file, and run it with the site’s own permissions. The flaw is rated CVSS 9.8.

InstaWP’s timeline says the bug was reported through the Patchstack bug bounty on November 4, WP Rocket 3.24.2 shipped on November 19, and Patchstack published its advisory on November 23. Patchstack’s telemetry shows the first exploitation attempt on November 25 at 15:27 UTC. By November 26 the activity had become automated campaigns, with tens of thousands of blocked attempts in one day. InstaWP also reports that public exploit code has been on GitHub since November 25; we have not independently reviewed it.

Patchstack says several independent operators are involved. Their payloads are hosted on bare IP addresses, wildcard DNS names such as nip.io, temporary trycloudflare.com tunnels, and other WordPress sites that are likely compromised.

Who is affected

Sites running WP Rocket before 3.24.2 are vulnerable when at least one of two options is on: LazyLoad for CSS background images, or Host Fonts Locally. Both are off by default, but Patchstack notes they are common on speed-tuned sites. Because WP Rocket is a paid plugin, updates depend on the site owner’s licence, so hosts usually cannot patch it for you.

What to do

  • Update WP Rocket to 3.24.2 or later. Check the installed version under Plugins in wp-admin.
  • If you cannot update yet, turn off both LazyLoad for CSS background images and Host Fonts Locally. Patchstack recommends this as a stop-gap.
  • Look for PHP files you did not create in wp-content/, wp-content/uploads/, wp-content/wp-rocket-config/ and the site root, for example files named wp-media-*.php.
  • Review server logs for POST requests to /wp-admin/admin-ajax.php with action=rocket_beacon from clients that never loaded the page, and for outbound requests from the web server to unfamiliar hosts.
  • Our analysis: if you find an unexplained PHP file, do not just delete it. Treat the site as compromised, restore from a backup taken before November 25, update the plugin, then change admin passwords and rotate WordPress salts. InstaWP gives similar advice.

Updating stops new attacks but does not remove files an attacker has already planted, according to Patchstack.

What we still do not know

  • How many sites have actually been compromised. The published figures are blocked attempts seen by Patchstack’s own customers, not confirmed breaches.
  • Who is behind the campaigns and what they are installing after gaining access.
  • How many of the 5.5 million-plus installations run a vulnerable version with one of the two options enabled.

Sources: Patchstack, Critical WP Rocket RCE (CVE-2026-125812) Under Active Attack (Nov 27, 2026); InstaWP, WP Rocket Vulnerability CVE-2026-125812: What To Know (updated Nov 30, 2026).

Leave a Reply

Your email address will not be published. Required fields are marked *