WP Rocket CVE-2026-125812: Critical WordPress RCE Under Active Attack

Manish Garg
Manish Garg Associate of (ISC)² · RingSafe
Dec 3, 2026
6 min read
Read as

CVE-2026-125812 (FIRST CVSS 9.8) is an unauthenticated remote code execution flaw in WP Rocket, the caching plugin on more than 5.5 million WordPress sites. It is exploitable only when LazyLoad for CSS background images or Host Fonts Locally is enabled, and it has been under automated attack since 25 November 2026. Update to WP Rocket 3.24.2 or later, then check for planted wp-media-*.php files — updating does not remove them.

Attackers are mass-exploiting CVE-2026-125812, a critical unauthenticated remote code execution (RCE) vulnerability in WP Rocket, one of the most widely deployed performance plugins in the WordPress ecosystem. The bug lets anyone on the internet make a vulnerable site download attacker-controlled content and save it as an executable PHP file. Patchstack, the CVE Numbering Authority for the flaw, recorded the first exploitation attempt on 25 November 2026 at 15:27 UTC; by the next day the attacks had become automated, with tens of thousands of blocked attempts. If you run WP Rocket, treat this as an incident check, not just a patch job.

What the vulnerability is

WP Rocket ships a small visitor-side measurement script (the “beacon”) that reports page data back to the site so the plugin can decide what to optimise. Those reports arrive at a public, unauthenticated AJAX endpoint — POST /wp-admin/admin-ajax.php with action=rocket_beacon. According to Patchstack’s analysis, the plugin then used the URLs in those reports to optimise the page without validating them strictly enough. A crafted report makes the site fetch remote content and write it to disk as a .php file — at which point the attacker simply requests that file and runs code as the web server user.

Two features expose the vulnerable code path:

  • LazyLoad for CSS background images
  • Host Fonts Locally (shown as “Self-host Google Fonts” in some versions of the settings screen)

Both are off by default, which limits the blast radius — but both are exactly the options performance-minded site owners switch on after reading a PageSpeed report. Every version before 3.24.2 is affected when either feature is enabled. No login is required.

Timeline

  • 4 November 2026 — reported to Patchstack (credited to researcher Vorelito via the Patchstack bug bounty programme).
  • 19 November 2026 — WP Rocket 3.24.2 released; the changelog notes “Improve validation of cached CSS, font and preconnect files” without naming the CVE.
  • 23 November 2026 — CVE record published.
  • 25 November 2026, 15:27 UTC — first in-the-wild exploitation attempt observed by Patchstack.
  • 26 November 2026 — exploitation turns automated; tens of thousands of attempts blocked in a day.

The six-day gap between the patch and the first attack is the familiar pattern: once a fix ships, attackers diff the releases, find the changed validation logic, and build an exploit. Sites that auto-update closed the window; sites that “update monthly” did not.

What attackers do after exploitation

Patchstack and BleepingComputer report that payloads are hosted on bare IP addresses, nip.io hostnames, trycloudflare.com tunnels and what appear to be other compromised WordPress sites. Some operators probe a target first without revealing their own payload server. The planted file follows a recognisable pattern:

  • wp-media-*.php inside wp-content/wp-rocket-config/, wp-content/uploads/ or wp-content/

Patchstack published its top attacking source IPs (for example 103.235.74.71, 157.245.122.230 and 152.89.170.194) and stresses they are investigative leads, not a complete blocklist — mass-exploitation infrastructure rotates quickly. No threat actor has been named, and no specific webshell family has been published.

Detection: what to look for in your logs

Because the endpoint is legitimate and public, the presence of rocket_beacon requests is not suspicious on its own. Patchstack’s detection guidance focuses on the shape of the request and what happens next:

  • Beacon requests from clients that never loaded the reported page. A real visitor’s browser loads the HTML, then the beacon fires. An exploit script posts the beacon directly. Correlate the source IP of each rocket_beacon POST with prior GET requests for page HTML.
  • Full URLs where bare domains are expected in the beacon payload, especially URLs pointing to IPs, nip.io or trycloudflare.com.
  • Outbound HTTP requests from the web server to unfamiliar hosts. Most WordPress sites should only talk outbound to WordPress.org, their licence servers, payment gateways and a handful of APIs.
  • New PHP files anywhere under wp-content/ that you did not deploy — find wp-content -name "*.php" -newermt 2026-11-19 is a quick first pass on Linux hosting.

Search back to at least 19 November, when the patch made the bug discoverable by diffing, not just 25 November when attacks were first observed.

The India angle

WordPress powers a large share of Indian SME, D2C, education and agency websites, and WP Rocket is a common choice on shared hosting precisely because it makes slow servers feel fast. That combination matters for two reasons:

  • CERT-In’s 6-hour reporting clock. Under the CERT-In Directions of April 2022, compromise of websites and unauthorised access to IT systems are reportable incidents. A webshell on your marketing site counts — and the clock starts when you notice, not when you finish investigating.
  • DPDP exposure. If the compromised site has contact forms, lead databases, customer logins or an e-commerce plugin, an RCE is a personal data breach under the DPDP Act. The web server user can read wp-config.php, which means database credentials — and therefore every form submission you have ever stored.

Agencies that maintain dozens of client sites should assume at least one had the vulnerable options enabled. WP Rocket’s vendor has published a helper plugin for operators managing many sites.

What to do now

  1. Update WP Rocket to 3.24.2 or later (3.24.3 was released on 26 November). Confirm the version on every site, not just the ones you remember.
  2. If you cannot update immediately, turn off LazyLoad for CSS background images and Host Fonts Locally / Self-host Google Fonts. This removes the exposed path but does not fix the plugin.
  3. Hunt for planted files: look for wp-media-*.php and any unexpected PHP under wp-content/. Updating the plugin does not delete them.
  4. If you find anything, preserve logs and the files first, then clean up, and rotate WordPress admin passwords, the database password in wp-config.php, hosting/cPanel credentials and any API keys stored on the server.
  5. Restrict outbound connections from the web server where your host allows it, and put a WAF in front of the site.
  6. Turn on plugin auto-updates for well-maintained plugins. The six-day gap between patch and exploitation is now normal.

Frequently asked questions

Is my site vulnerable if I use WP Rocket with default settings?

Not to this specific bug. Exploitation requires either LazyLoad for CSS background images or Host Fonts Locally to be enabled, and both are off by default. You should still update, because settings change and other optimisation features share the same beacon endpoint.

Does updating WP Rocket remove a webshell if I was already hit?

No. The update closes the hole but leaves any file an attacker already wrote. You need to search for unexpected PHP files, especially wp-media-*.php, and rotate credentials if you find one.

Is CVE-2026-125812 in CISA’s KEV catalogue?

As of late November it was not listed, even though exploitation is confirmed by Patchstack’s telemetry. Absence from KEV is not evidence that a bug is safe to ignore — KEV lags real-world exploitation, especially for WordPress plugins.

RingSafe runs web application VAPT for WordPress and custom sites, including plugin attack-surface review and compromise assessment. If you found a suspicious file and are unsure what it did, talk to us before you delete the evidence.

Sources

Worried about your exposure?

Get a free attack-surface review

We check what an attacker would see about your business — leaked credentials, exposed services, dark-web mentions. 30 minutes, no obligation.

Book exposure review Replies in 4 working hrs · India-only · Senior consultants