WP Rocket CVE-2026-125812 Exploited: Update to 3.24.2 Now
Security

WP Rocket CVE-2026-125812 Exploited: Update to 3.24.2 Now

WP Rocket CVE-2026-125812 lets unauthenticated attackers run PHP on WordPress sites before 3.24.2. Exploited since Nov 25. Update and hunt for planted files.

wordpresswp rocketcve-2026-125812remote code executionplugin vulnerability

Attackers are exploiting WP Rocket CVE-2026-125812, an unauthenticated remote code execution flaw in the paid WordPress caching plugin. Sites running versions before 3.24.2 with either LazyLoad for CSS background images or Host Fonts Locally enabled are exposed. Patchstack logged the first attempt on November 25, 2026 and saw automated campaigns a day later. WP Media fixed the flaw in 3.24.2 on November 19. Update now, then check for planted PHP files, because the update does not remove them.

What happened

Researcher Vorelito reported the bug to Patchstack's vulnerability disclosure program on November 4, 2026. WP Media shipped WP Rocket 3.24.2 on November 19 with a single security line in the changelog: improved validation of cached CSS, font and preconnect files. Patchstack published its database entry on November 23 and the CVE record on November 25.

That same day, at 15:27 UTC, Patchstack's telemetry recorded the first exploitation attempt. Dave Jong, Patchstack's security research lead, wrote on November 27 that the first attacker worked by hand, trying a payload against a few sites and retrying with encoded variants when blocked. Within a day the activity had become automated, with tens of thousands of blocked attempts on November 26 alone. BleepingComputer reported on November 30 that Patchstack had blocked more than 25,000 malicious requests from multiple attackers.

The CVE record, assigned by Patchstack as the CNA, classifies the flaw as CWE-22 path traversal and scores it CVSS 3.1 9.8 (AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H). It was not in the CISA Known Exploited Vulnerabilities catalog as of the November 30 catalog release, so the usual federal deadline does not exist yet. Treat the Patchstack telemetry as your deadline instead; KEV has coverage gaps and WordPress plugins are a common one.

Who is affected

WP Rocket is a paid plugin. According to WP Media, it runs on more than 5.6 million sites for about 394,000 customers. Patchstack puts the install base at 5.5 million or more.

The CVE record lists every version before 3.24.2 as affected. Heise, citing the vendor's description, narrows the range to 3.15 through 3.24.1. Either way, the fix is the same: 3.24.2 or later. WP Media released 3.24.3 on November 26, so the current build already contains it.

Exposure depends on two settings. The site must have LazyLoad for CSS background images or Host Fonts Locally (labelled Self-host Google Fonts in the plugin's Media tab) turned on. Both are off by default. Both are also exactly the options a performance consultant turns on to pass a Lighthouse audit, so assume they are enabled on any site someone tuned for PageSpeed.

One group is stuck: sites whose WP Rocket license has lapsed. WP Media's documentation states that an expired license loses access to plugin updates while the plugin keeps running. Those sites stay vulnerable until the owner renews or removes the plugin. That is the clearest recent example of why expired plugin licenses are a security risk.

How the WP Rocket CVE-2026-125812 flaw works

WP Rocket runs a small script in each visitor's browser that measures the page and reports results to a public AJAX endpoint. Patchstack observed every attack hitting that endpoint: a POST to wp-admin/admin-ajax.php with the action rocket_beacon. The plugin uses URLs from those reports to decide which CSS and font files to fetch, rewrite and store in its cache folders. WP Rocket's own documentation describes the results: rewritten stylesheets land under wp-content/cache/background-css/ and self-hosted font files under wp-content/cache/fonts/1/google-fonts/.

The reports were not validated strictly enough. A crafted report could make the server download content from a host the attacker controls and save it with a PHP extension inside a web-accessible directory. Requesting that file then runs the attacker's code with the web server's privileges. No login, nonce or prior interaction is needed, which is why the endpoint matters more than the feature: admin-ajax.php serves logged-out visitors by design.

Two separate design choices combined here. The server trusted a browser-supplied URL, and the server wrote files whose names and contents were derived from remote data into a folder PHP will execute from. Removing either one would have reduced this to a nuisance.

What attackers are doing

Patchstack describes several independent operators. Some send one identical payload to site after site. One cluster sent byte-identical requests from four residential IP addresses, which points to a rotating proxy pool. Many requests target both feature paths at once so that whichever option a site has enabled, one fires. Some operators probe first to confirm a site is vulnerable without revealing their payload server.

Payloads are hosted on bare IP addresses, wildcard DNS names such as nip.io, temporary trycloudflare.com tunnels and other WordPress sites that are probably already compromised. Since November 25 the ten most active source addresses accounted for about half of all blocked attempts. The top five in Patchstack's count:

  • 103.235.74.71 (Ikubaru, Indonesia): 5,352 blocked requests
  • 157.245.122.230 (DigitalOcean): 5,003
  • 152.89.170.194 (C1V Hosting, Italy): 3,455
  • 180.232.236.101 (Eastern Telecom, Philippines): 2,288
  • 103.235.74.72 (Ikubaru, Indonesia): 1,950

Blocking these addresses buys little time. The infrastructure is cheap and the operators have already shown they rotate.

What to do now

  1. Find every site running WP Rocket below 3.24.2. Agencies and hosts should query their fleet rather than trust each site owner to check.
  2. Update to 3.24.2 or later. If the license has expired, renew it or deactivate and delete the plugin. Leaving it installed but inactive is acceptable only as a short bridge, since inactive plugin code can still be reached by other bugs.
  3. If you cannot update today, turn off both LazyLoad for CSS background images and Self-host Google Fonts. BleepingComputer gives the path as WP Rocket, Page Optimization, Image & Media, Media tab. Patchstack is explicit that this removes the exposure but does not fix the plugin.
  4. Hunt for compromise on any site that ran a vulnerable version with either option on. Patchstack's indicators: unexpected PHP files in wp-content/wp-rocket-config/, wp-content/uploads/ or directly in wp-content/, including names like wp-media-*.php; rocket_beacon POSTs from clients that never loaded the page they report on, or that report full URLs where the plugin expects bare domains; outbound connections from the web server to unfamiliar hosts, nip.io names or trycloudflare.com tunnels.
  5. Treat any planted file as a full site compromise. Rotate WordPress salts and database credentials, reset administrator passwords, review the user list for additions, and compare the file tree with a known-good copy of the plugin and theme set. Restore from a backup taken before November 25 if you cannot account for every change.
  6. Add an outbound control. The exploit depends on the web server fetching the payload from the internet. An allowlist of destinations, enforced in WordPress and at the host firewall, breaks that step for this bug and the next one. Our guide on how to block outbound requests from a WordPress server covers the constants and the caveats.

What to watch next

Expect a CISA KEV entry if US federal sites turn up compromised; the first catalog release after November 30 is the one to check. WP Media had not published a standalone advisory on wp-rocket.me as of this writing, so the changelog line remains the vendor's only public description. Patchstack said it would keep updating its post as the campaign changes.

The changelog also shows this beacon has been a hardening target before: the 3.23.5 release on October 1, 2026 included a line about sanitizing image srcset data collected by the beacon. Expect further scrutiny of the same code path from both researchers and attackers, and plan to apply WP Rocket updates within days, not release cycles.

Sources