Security & identity

WP Rocket Flaw Under Attack: Patch 3.24.2, Look for Planted PHP Files

A critical WP Rocket flaw (CVE-2026-125812, CVSS 9.8) is under active attack. Who is affected, the 3.24.2 fix, the workaround and how to check for planted files.

By EpiFive Editorial TeamReviewed/updated 7 min readHow we check our guides

This article contains affiliate links. If you buy through them, EpiFive may earn a commission at no extra cost to you. Details.

On this page

WP Rocket, a caching plugin for WordPress, has a critical flaw tracked as CVE-2026-125812 (CVSS 9.8) that WP Rocket and Patchstack say is being actively exploited. WP Rocket fixed it in version 3.24.2 on November 19, 2026. The single most important action is to update to 3.24.2 or later, and then check the site for files planted before you updated.

What happened

Patchstack, a WordPress security company, published an advisory on November 27, 2026. WP Rocket's own advisory was last updated the same day. Both are primary sources for this guide. The Hacker News reported on December 1, 2026 that attackers are targeting the flaw.

Patchstack's timeline, in UTC:

Date (UTC)What Patchstack says
Before Nov 25, 2026Its mitigation rule went live, more than two days before the first observed attack
Nov 25, 2026, 15:27First observed exploitation attempt, apparently run manually against a few sites
Nov 25 to 26Activity shifts to automated campaigns
Nov 26Tens of thousands of blocked attempts in one day
Nov 27Patchstack publishes the advisory

WP Rocket released 3.24.2 on November 19, 2026, which is six days before the first attempt Patchstack observed.

How the flaw works, according to Patchstack

WP Rocket includes a script that measures page performance in visitors' browsers and reports the results to a public AJAX endpoint. The plugin then uses the reported URLs to optimize pages, but, per Patchstack, it does not validate them strictly enough. A crafted report can make the server download remote content and save it as a PHP file, which then executes. Patchstack describes the result as unauthenticated attackers being able to write and execute PHP code on affected sites. WP Rocket's advisory says "an attacker can execute arbitrary code on the affected website without authentication."

What is a claim and what is confirmed

StatementSourceStatus
Active exploitation since Nov 25, 2026Patchstack, WP Rocket advisoryStated by both vendors
Tens of thousands of blocked attempts on Nov 26PatchstackPatchstack's own telemetry, not independently verified
WP Rocket used by more than 5.5 million sitesReported by The Hacker NewsA reported figure; we did not find it on an official page
Wordfence blocked 135 attacks in 24 hoursReported by The Hacker NewsWe did not open a Wordfence source

Patchstack says several independent operators are active. The number of compromised sites is not published, and neither is who is behind the attacks.

Am I affected?

Two things decide that: the version and the settings.

  • Version: WP Rocket says versions 3.15 through 3.24.1 are affected. Patchstack says versions before 3.24.2. The sources differ on the lower bound, so treat any version below 3.24.2 as needing the update.
  • Settings: Both sources say the flaw is exploitable only if LazyLoad for CSS background images or the fonts feature is enabled. WP Rocket calls the fonts feature Self-host Google Fonts; Patchstack calls it Host Fonts Locally. Patchstack says both are off by default but common on performance-tuned sites.

To check, open WP Rocket > Page Optimization > Image & Media in the WordPress dashboard (on versions before 3.24, the Media tab) and see whether either option is on. Check the installed version on the Plugins screen.

Signs of an attack, as Patchstack published them

Patchstack says all observed attempts are POST /wp-admin/admin-ajax.php requests with action=rocket_beacon. Look for:

  • rocket_beacon requests from clients that never loaded the page they report on, or that report full URLs where bare domains are expected.
  • Outbound requests from the web server to unfamiliar hosts, nip[.]io names or trycloudflare[.]com tunnels.
  • Unexpected PHP files named wp-media-*.php in wp-content/wp-rocket-config/, wp-content/uploads/, or directly in wp-content/.

Patchstack's list of the ten most active source IPs since November 25, copied with its defanging:

IP addressNetwork, per Patchstack
103[.]235[.]74[.]71Ikubaru (Indonesia)
157[.]245[.]122[.]230DigitalOcean
152[.]89[.]170[.]194C1V Hosting (Italy)
180[.]232[.]236[.]101Eastern Telecom (Philippines)
103[.]235[.]74[.]72Ikubaru (Indonesia)
201[.]79[.]120[.]217DigitalOcean
112[.]78[.]154[.]32Biznet (Indonesia)
167[.]71[.]75[.]155DigitalOcean
43[.]163[.]8[.]253Aceville / Tencent Cloud (Singapore)
51[.]79[.]199[.]209OVH (Singapore)

Source IPs change quickly and some attacks use rotating residential proxies, per Patchstack, so a missing IP in your logs does not mean you were not targeted. The planted-file and request patterns are the more reliable checks.

What to do now

  1. Update WP Rocket to 3.24.2 or later. With an active license, update from the Plugins screen in the WordPress dashboard and confirm the installed version is 3.24.2 or later. If no update appears, WP Rocket's advisory points to its update guide.
  2. If you cannot update yet, turn off both features. Go to WP Rocket > Page Optimization > Image & Media (the Media tab before 3.24), turn off LazyLoad for CSS background images and Self-host Google Fonts, save, and confirm both are off on each affected site. WP Rocket says this "mitigates the documented attack paths immediately" and the settings should stay off until 3.24.2 or later is installed. This is also the route if your license has expired.
  3. Check for compromise if a vulnerable version ran with either feature on. Look in the three directories above for wp-media-*.php files you did not create, and review historical logs for rocket_beacon requests and outbound connections to unfamiliar hosts. WP Rocket's advisory says to ask your hosting provider or security team to check for signs of compromise.
  4. Do not treat the update as a cleanup. Both vendors say it does not remove anything already planted.

Many sites at once

WP Rocket's advisory describes a helper plugin named "WP Rocket | Mitigate CVE-2026-125812" that turns both features off, downloadable as a .zip from the GitHub link in the advisory. Its documented bulk install command is:

wp plugin install ./wp-rocket-mitigate-cve-2026-125812.zip --activate

On multisite, the advisory says to install it once and activate it on each affected subsite:

wp plugin activate wp-rocket-mitigate-cve-2026-125812 --url=<subsite URL>

Afterwards, verify both settings are off. Download the zip only from the link in WP Rocket's own advisory.

A virtual patch

Patchstack says its RapidMitigate rule for this CVE blocks the exploitation attempts without changing plugin code. That is a Patchstack product; this guide has not tested it.

How to protect yourself

  • Keep WP Rocket on automatic or monitored updates, and keep the license active so updates appear on the Plugins screen. The advisory's expired-license workaround exists because updates may not arrive otherwise.
  • Keep performance features you do not need turned off. Patchstack notes both features here are off by default.
  • Ask your host whether they log POST requests to wp-admin/admin-ajax.php, so you can search for action=rocket_beacon after an incident.
  • If you find an unexpected wp-media-*.php file, bring in your host or a security professional before deleting it. Deleting the file alone does not tell you what else was changed.

See also

What we checked

  • Opened WP Rocket's advisory for CVE-2026-125812 on 2026-12-01; it states the affected versions (3.15 through 3.24.1), the two features, the fix in 3.24.2 released on November 19, 2026, the workaround path and the WP-CLI commands above.
  • Opened Patchstack's advisory on 2026-12-01; it supplies the timeline, the request pattern, the planted-file paths and the ten source IPs, copied here with its defanging.
  • Opened The Hacker News report on 2026-12-01; used only for the reported figures labelled as reported above.
  • Cross-checked the fixed version and release date between WP Rocket and Patchstack: both say 3.24.2.
  • Found two differences between the sources: the affected range (3.15 to 3.24.1 versus before 3.24.2) and the name of the fonts feature. We reported both rather than picking one.
  • Did not open a Wordfence page, the CVE record or the helper plugin's .zip, and did not test any step on a live WordPress site.

Last tested: 2026-12-01

Sources

Questions people ask

Which WP Rocket versions are affected by CVE-2026-125812?

WP Rocket's own advisory lists versions 3.15 through 3.24.1 where at least one of two features is on: LazyLoad for CSS background images or Self-host Google Fonts. Patchstack describes the range as every version before 3.24.2 and calls the second feature Host Fonts Locally. Both say the fix is 3.24.2, so update to 3.24.2 or later whichever range you read.

Is CVE-2026-125812 being exploited?

Yes, according to Patchstack and WP Rocket's advisory. Patchstack reported the first observed attempt on November 25, 2026 at 15:27 UTC and automated campaigns from November 25 to 26, with tens of thousands of blocked attempts on November 26.

I updated to 3.24.2. Am I safe?

The update stops new attacks through the documented paths, but both WP Rocket and Patchstack say it does not remove anything an attacker already created. If a vulnerable version ran with either feature on, check for unexpected PHP files and review your logs.

What can I do if I cannot update right now?

WP Rocket's advisory says to turn off both LazyLoad for CSS background images and Self-host Google Fonts under WP Rocket > Page Optimization > Image & Media, and keep them off until 3.24.2 or later is installed. Patchstack also offers a virtual-patch rule.

WP RocketWordPressCVE-2026-125812PatchstackRemote code execution