← Blog
WordPressWP RocketRemote Code ExecutionActive Exploitation

WP Rocket CVE-2026-125812: critical RCE under active attack

WP Rocket <3.24.2 has an unauthenticated RCE (CVE-2026-125812), exploited on WordPress sites since Nov 25. Update to 3.24.2 or disable two features now.

Zero Hunt Research··7 min read

Published by Zero Hunt, an autonomous AI red team on an on-premise appliance running private AI: automated penetration testing for networks and infrastructure, black-box or gray-box, with a human approving every step that matters.

A caching plugin installed on more than 5.6 million WordPress sites is being exploited right now for unauthenticated remote code execution, and whether you are in the blast radius does not come down to your version number alone — it comes down to whether one of two optional features is switched on. CVE-2026-125812 in WP Rocket lets an attacker with no account coerce the plugin into fetching attacker-controlled content, writing it to disk as a PHP file, and running it. WP Media shipped the fix in 3.24.2 on November 19; Patchstack saw the first exploitation attempts on November 25 and automated mass campaigns a day later.

Developing story — first published 17:24 CET (16:24 UTC), November 30, 2026. Updated as the vendor and Patchstack publish more.

At a glance

CVE CVE-2026-125812
Product / affected versions WP Rocket 3.15 through 3.24.1 (per WP Media) · NVD: all versions before 3.24.2 — only exploitable with "LazyLoad for CSS background images" or "Self-host Google Fonts" enabled
Fixed in 3.24.2, released November 19, 2026
CVSS 9.8 CRITICAL · CVSS 3.1 · scored by Patchstack · AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H; NVD classifies the root cause as CWE-22 path traversal
Exploited in the wild Yes — Patchstack observed first attempts 2026-11-25 15:27 UTC; automated campaigns from 2026-11-26
CISA KEV Not listed (catalog version 2026.11.27)
Public PoC None public as of 2026-11-30; mass automated exploitation is already ongoing
Official advisory WP Media security advisory · Patchstack database entry

What the WP Rocket RCE actually does

WP Rocket ships a small beacon script that runs in each visitor's browser, measures the page, and reports the result — including resource URLs — back to a public AJAX endpoint, POST /wp-admin/admin-ajax.php with action=rocket_beacon. The plugin then uses those reported URLs to optimize the page: lazy-loading CSS background images, or downloading and self-hosting Google Fonts locally.

The flaw is that the endpoint does not validate the reported URLs strictly enough. A crafted beacon report can make the site download content from an attacker-controlled server and save it as a PHP file inside the web root, where it then executes. No credentials are required. NVD files the root cause as CWE-22 path traversal; Patchstack and WP Media describe the end effect plainly as unauthenticated remote code execution, because the traversal is the means by which attacker PHP lands somewhere it will run.

The one thing standing between most sites and this chain is configuration. Exploitation only works when "LazyLoad for CSS background images" or "Self-host Google Fonts" is enabled. Both are off by default — but, as Patchstack notes, both are common on performance-tuned sites, which is exactly the population that installs a premium caching plugin. Attackers do not probe first: they send both feature paths in a single request, so whichever one a site has turned on, one of them fires.

"Attackers use both feature paths, sometimes in one request, so that whichever feature a site has enabled, one of them fires." — Patchstack

That is why a version check alone does not tell you whether you are exposed. Two sites on the same vulnerable 3.24.1 build can have completely different risk depending on a toggle buried under Page Optimization.

Who is exposed, and how to check

WP Rocket is a paid plugin used, per WP Media's own press page, on more than 5.6 million sites across 394,000 customers. You are exposed if both of these are true:

  • The installed version is below 3.24.2 (the vendor pins the vulnerable range at 3.15–3.24.1).
  • At least one of "LazyLoad for CSS background images" or "Self-host Google Fonts" is enabled, under WP Rocket → Page Optimization → Image & Media (on builds before 3.24, these live on the Media tab).

From the command line, wp plugin get wp-rocket --field=version prints the installed version. If it reads 3.24.1 or lower, assume you were in range during the active-exploitation window and move to the hunting step below — do not assume the toggle was off at the moment the campaigns ran.

Remediation

1. Am I affected?

Confirm the version (wp plugin get wp-rocket --field=version, or the Plugins screen) and confirm whether either optional feature is enabled under WP Rocket → Page Optimization → Image & Media. If the version is below 3.24.2 and either feature was on at any point since November 25, treat the site as exposed and hunt for compromise, not just patch.

2. Patch — exact fixed version

Update WP Rocket to 3.24.2 or later (released November 19, 2026). For a single site, the Plugins screen → Update now is enough. For fleets, WP Media published a helper plugin, WP Rocket | Mitigate CVE-2026-125812 (wp-rocket-mitigate-cve-2026-125812), that disables the two features involved; agencies and hosts can push it with wp plugin install ./wp-rocket-mitigate-cve-2026-125812.zip --activate. The helper is a stopgap — it mitigates, it does not replace the update.

3. Can't patch now? Compensating controls

Disable both "LazyLoad for CSS background images" and "Self-host Google Fonts" under WP Rocket → Page Optimization → Image & Media, save, and verify they are off on every affected site. In WP Media's words, turning off both settings "mitigates the documented attack paths immediately." At the edge, block POST requests to admin-ajax.php with action=rocket_beacon that carry remote URLs in the payload, and blocklist the attacker IPs Patchstack published — the ten highest-volume sources since November 25 were 103.235.74.71, 157.245.122.230, 152.89.170.194, 180.232.236.101, 103.235.74.72, 201.79.120.217, 112.78.154.32, 167.71.75.155, 43.163.8.253, and 51.79.199.209. Treat IP blocking as noise reduction, not a fix: the campaigns rotate through residential proxy pools.

4. Hunt for compromise

Map the hunt to the attack: T1190 (exploit public-facing application), T1105 (ingress tool transfer — the server pulling the payload), T1505.003 (web shell), and T1071.001 (web-protocol C2 from the shell). Concretely:

  • Unexpected PHP files in wp-content/wp-rocket-config/, wp-content/uploads/, or directly in wp-content/ — Patchstack cites a wp-media-*.php filename pattern.
  • Anomalous rocket_beacon requests: reports from clients that never loaded the page they claim to measure, or that submit full URLs where WP Rocket expects bare domains.
  • Outbound connections from the web server to unfamiliar hosts, to wildcard-DNS names such as nip.io, or to trycloudflare.com tunnels — the staging infrastructure the payloads are hosted on, alongside bare IPs and other likely-compromised WordPress sites.

5. Eradicate and verify

Updating stops new attacks but does not remove a web shell that is already on disk — in Patchstack's words, "the update stops new attacks, but it does not remove files an attacker already planted." If you find planted PHP, treat it as a full compromise: remove the files, rotate the wp-config.php authentication keys and salts, database credentials, and administrator passwords, review user accounts for ones the attacker created, and restore from a known-good backup where you cannot be sure the host is clean. Then re-verify — after patching — that the rocket_beacon path no longer accepts a crafted report, rather than assuming the version bump closed it.

What is not known yet

  • Scale and success rate. Patchstack reports tens of thousands of blocked attempts and ten top source IPs accounting for roughly half of them, but no public count of sites actually breached. The 5.6 million figure is the install base, not the victim count.
  • Attribution. No actor or cluster has been named; the traffic spans residential proxies and cloud hosts across several countries.
  • CISA KEV. The flaw is not in the KEV catalog as of version 2026.11.27, despite confirmed in-the-wild exploitation; that can change on any update.
  • Public exploit code. No working PoC is public as of November 30. Any "PoC" appearing on GitHub in the next days should be assumed hostile until proven otherwise — WordPress-plugin PoCs are a common malware-delivery lure.

Knowing whether you are actually exploitable

The uncomfortable part of CVE-2026-125812 is not the patch — 3.24.2 has been out since November 19 — it is that the 5.6 million sites running WP Rocket cannot tell from a version banner which of them an automated campaign will actually convert. Exploitability depends on a configuration toggle, on whether the rocket_beacon endpoint accepts a crafted report on your build, and on whether the resulting write lands somewhere executable. A scanner reads the version and stops there.

Zero Hunt is an autonomous AI red team that runs on an on-premise appliance on its own private models, with a human approving anything that touches a live system. On a black-box campaign it fingerprints the exact WP Rocket build, reaches the public endpoint the way the campaigns do, and proves — per target, in an ephemeral hardened container that never touches the host — whether a crafted beacon report actually writes and runs code on that specific site, instead of returning a CVSS row. That is the difference between "we are on a vulnerable version" and "we demonstrated an attacker cannot drop a shell here." And because the exploitation primitive forces the web server to reach out to throwaway infrastructure — nip.io names, trycloudflare.com tunnels, bare IPs — to pull its payload, that unusual outbound fetch, and any web shell's later callbacks, are exactly the kind of traffic the appliance's wire-speed deep-learning model is built to flag while it happens, not in the next morning's log review. For most WordPress operators the honest next step is narrower and faster: patch to 3.24.2, disable both features until you have, and treat any pre-patch site that ran them as something to be checked, not assumed clean.

Related: wp2shell: pre-auth RCE in WordPress Core — and the patch trap · WordPress Core RCE CVE-2026-119977.

Every vulnerability CISA lists as exploited, with federal due dates: CISA KEV tracker →

Patching one CVE at a time? A CTEM program validates which exposures are actually exploitable before the next advisory: what CTEM is →

Is this exploitable in your environment?

Zero Hunt answers that on your own network: an autonomous AI red team on an on-premise appliance, running on private AI, black-box or gray-box, with a human approving every step that matters. Proof of what is exploitable, the fix, and signed evidence — your data stays on your network.