A security fix for one of the most popular WordPress plugins shipped on 19 November 2026 with a single vague line in its changelog. Six days later attackers were using the bug it closed to plant PHP files on websites, and by the next day Patchstack was blocking tens of thousands of attempts.
In short: WP Rocket CVE-2026-125812 is an unauthenticated remote code execution flaw in the WP Rocket caching plugin that lets an attacker write a PHP file through the plugin’s cache, on sites running a version before 3.24.2 with one of two optional features enabled. It is under active attack. Update to 3.24.2 or later, then check for files that were planted before you patched.
- What is WP Rocket CVE-2026-125812?
- Who is affected and how do you check exposure?
- How does the WP Rocket vulnerability work?
- Timeline: from private report to mass scanning
- Is CVE-2026-125812 being exploited?
- How do you detect exploitation of CVE-2026-125812?
- How do you mitigate the WP Rocket vulnerability?
- How does it compare with similar flaws?
- What is still unknown?
- The bottom line
- Sources
What is WP Rocket CVE-2026-125812?
CVE-2026-125812 is a flaw in WP Rocket, a commercial caching and page speed plugin for WordPress made by the French company WP Media. Patchstack, which acted as the CVE numbering authority, scores it 9.8 out of 10 under CVSS 3.1 and classifies it as unauthenticated remote code execution. The CVE record files it under CWE-22, path traversal.
Path traversal is a bug where user-supplied text such as ../ is used to build a file path, letting the attacker reach folders outside the one the program meant to use. Remote code execution means the attacker can make the server run code of their choosing. Here the first leads to the second: the traversal lets an attacker choose where a downloaded file is saved and what it is called.
How big is WP Rocket?
WP Media says WP Rocket runs on more than 5.6 million websites, and Patchstack’s advisory shows a figure of 5.5 million or more. ZeroPath points out that this is a reach claim from the vendor, not a count of vulnerable sites. No source we read estimates how many sites run an old version with the risky settings on.
Who found it?
ZeroPath and Ostorlab both credit a researcher named Vorelito, who reported the flaw to Patchstack on 4 November 2026. Patchstack coordinated the disclosure with WP Media. The WP Rocket changelog itself does not name the CVE or credit a reporter.
Who is affected and how do you check exposure?
A site is exploitable only when all of these are true:
- WP Rocket is older than 3.24.2.
- “LazyLoad for CSS background images” or “Host Fonts Locally” (also called Self-Host Google Fonts) is enabled.
- The PHP process can write to the destination path, and the web server will execute PHP there, as Ostorlab notes.
Both features are off by default, according to Patchstack, but they are common on sites that have been tuned for speed scores. That is exactly the audience a performance plugin attracts.
The licence problem
WP Rocket is sold outside the official WordPress plugin directory. Tuskira notes that updates need an active licence, and ZeroPath says automatic updates are disabled by design. A site whose licence lapsed, or that was built by an agency and handed over, can sit on an old version indefinitely without anyone noticing.
Quick exposure check
For each WordPress site you manage, record three facts: the installed WP Rocket version (WP-CLI’s wp plugin get wp-rocket --field=version returns it), whether either of the two features is switched on, and whether the licence is active. Prioritise internet-facing production sites, which is every site in practice.
How does the WP Rocket vulnerability work?
At a conceptual level the attack abuses a feature that trusts browsers to describe the page. WP Rocket runs a small script in each visitor’s browser that measures the page and reports back to a public AJAX endpoint, admin-ajax.php with the action rocket_beacon. The plugin then uses the reported stylesheet and font URLs to build optimised local copies.
Where the check was missing
Ostorlab and ZeroPath both traced the bug to how WP Rocket built cache file paths in 3.24.1. The background CSS cache joined the reported host name and URL path straight onto the cache folder. The code only trimmed slashes from the ends of the path, so .. segments in the middle survived, and nothing limited the file extension. The Host Fonts Locally feature had the same pattern in its own file-writing code.
The result, as Patchstack describes it, is that a crafted report can make the site fetch content from an attacker’s server and save it as a PHP file in a location the attacker chose. Requesting that file then runs it.
What the 3.24.2 fix changed
According to ZeroPath’s and Ostorlab’s review of the patch, 3.24.2 does several things at once:
- rejects host names that contain separators, colons, control characters or
..; - normalises paths so
..cannot climb above the host folder; - allows only
.cssand.css.jsonfile names and rejects executable extensions hidden in the middle of a name; - adds a final check that the resolved path is still inside the cache folder;
- requires downloaded font files to start with real font signatures (WOFF2, WOFF, TTF, OTF, TTC or EOT);
- parses Google Fonts and preconnect URLs properly instead of matching substrings.
That is a defence-in-depth fix rather than a one-line patch, which is a good sign. The changelog summarised all of it as improved validation of cached CSS, font and preconnect files.
Timeline: from private report to mass scanning
The gap that matters is the one between the fix and the first attack: six days. The gap between the CVE record and the first attack was a matter of hours.
| Date (2026) | Event | Source |
|---|---|---|
| 4 November | Vorelito reports the flaw to Patchstack | ZeroPath, Ostorlab |
| 16 November | WP Rocket 3.24.1 released, no security entry | WP Rocket changelog |
| 19 November | WP Rocket 3.24.2 released with the fix | WP Rocket changelog |
| 23 November | Patchstack database entry published | Rescana, ZeroPath |
| 25 November | CVE record published; first attack at 15:27 UTC | Rescana, Patchstack |
| 25 November, 17:31 UTC | First public GitHub proof-of-concept repository created | GitHub API |
| 26 November | Automated campaigns; WP Rocket 3.24.3 released | Patchstack, changelog |
| 27 November | Patchstack publishes its active-attack analysis | Patchstack |
The first public proof-of-concept repository on GitHub was created about two hours after Patchstack’s first recorded attempt, according to the GitHub API. Two more followed: a second proof of concept on 28 November and a scanner on 29 November. The first attacks therefore did not need public exploit code.
Is CVE-2026-125812 being exploited?
Yes. Patchstack’s Dave Jong reports that the first attacker worked by hand, testing a few sites and retrying with encoded variants after being blocked. Within about a day the activity had turned into automated campaigns, with tens of thousands of blocked attempts on 26 November alone.
What the attackers are doing
Patchstack describes several independent operators rather than one campaign:
- some send one identical payload to many sites;
- one cluster sent byte-identical requests from four residential IP addresses, which Patchstack reads as a rotating proxy pool;
- some put both feature payloads in one request, so whichever feature is enabled fires;
- some first probe whether a site is vulnerable without revealing their own server;
- payloads are hosted on bare IP addresses, wildcard DNS names such as nip.io, temporary trycloudflare.com tunnels and, Patchstack suspects, other compromised WordPress sites.
Where the traffic comes from
Patchstack says the ten busiest IP addresses account for roughly half of its blocked attempts since 25 November, 25,806 requests between them. The top five sit at an Indonesian provider, DigitalOcean, an Italian host and a Philippine telecom company.
Rescana advises treating these addresses as leads rather than a block list, which is sensible: cloud and proxy addresses change hands quickly. The full list is in Patchstack’s advisory.
Is it in CISA KEV?
Not yet. Ostorlab says the CVE was not in the CISA Known Exploited Vulnerabilities catalog as of 28 November. CISA’s Vulnrichment entry, written on the morning of 25 November, lists exploitation as none, but Rescana notes it predates the first observed attack by about half an hour. Do not read the missing KEV entry as a sign of low risk.
How do you detect exploitation of CVE-2026-125812?
Detection has three layers: web logs, the file system and outbound network traffic. Updating stops new attacks but, as Patchstack and Ostorlab both stress, it does not remove files that were already planted.
Web server logs
- POST requests to
/wp-admin/admin-ajax.phpwithaction=rocket_beacon, the endpoint Patchstack lists for every attempt. rocket_beaconrequests from clients that never loaded the page they claim to report on, or that report full URLs where WP Rocket expects bare domains (Patchstack).- Request bodies that combine
..or%2e%2ewith a.phpstyle suffix (Ostorlab). - A later GET request for a new PHP file under
wp-content, which would be the attacker running what they planted.
File system
Ostorlab and Patchstack recommend searching for:
.php,.phtmlor.pharfiles anywhere underwp-content/cache/background-cssand the rest of the WP Rocket cache tree;- unexpected PHP files in
wp-content/wp-rocket-config/,wp-content/uploads/and directly inwp-content/; - names matching
wp-media-*.php, the pattern Patchstack published.
Ostorlab adds a caution: finding nothing does not prove a site is clean. ZeroPath makes the reverse point, that a stray cache file on its own does not prove this CVE was the way in.
Outbound traffic
A caching plugin legitimately fetches fonts and stylesheets, so outbound requests are normal. What is not normal, per Patchstack, is the web server connecting to bare IP addresses, nip.io names or trycloudflare.com tunnels. If you log egress from web hosts, those are quick queries to run.
MITRE ATT&CK mapping
ZeroHour’s write-up maps the activity to two techniques:
| Technique | ID | How it appears here |
|---|---|---|
| Exploit Public-Facing Application | T1190 | Forged rocket_beacon requests against the plugin |
| Server Software Component: Web Shell | T1505.003 | PHP file written under wp-content and then requested |
How do you mitigate the WP Rocket vulnerability?
In order of priority:
- Update WP Rocket to 3.24.2 or later, then purge the cache. 3.24.3 is the current release. Confirm the running version afterwards rather than trusting the dashboard notice.
- If you cannot update today, turn off both “LazyLoad for CSS background images” and “Host Fonts Locally”, save, and purge the cache. Patchstack and Ostorlab both give this interim step.
- Hunt for planted files using the checks above, on every site that ran a vulnerable version with either feature on since 25 November.
- If you find something, preserve it first. Rescana advises keeping copies of suspicious files and the logs, then removing the files and rotating WordPress admin, database and hosting credentials. ZeroPath points to WP Rocket’s hacked-site guidance: disable preloading, clear the cache, deactivate, clean, then reactivate.
- Fix the licence gap. Make sure every site with WP Rocket has an active licence or a documented manual update process.
- Add a web application firewall rule as a backstop. Ostorlab suggests rejecting stylesheet or font URLs in beacon data that contain
..,%2e%2eor a PHP extension, but calls it a secondary barrier only. Patchstack says its own virtual patch was live more than two days before the first attack. - Restrict outbound connections from web servers to what they need, as Rescana recommends, so a forged fetch to an attacker’s server fails even on an unpatched site.
How does it compare with similar flaws?
The rocket_beacon endpoint has been a problem before. WPScan lists eight WP Rocket vulnerabilities in total, including an unauthenticated stored cross-site scripting flaw through the same endpoint, fixed in 3.21.1, and WP Rocket’s 3.23.5 changelog from 1 October included hardening of beacon data. A public endpoint that accepts data from anonymous browsers is a large attack surface, and this is the first time it led to code execution.
| Flaw | Access needed | Outcome | Fix to first attack | Interim workaround |
|---|---|---|---|---|
| WP Rocket CVE-2026-125812 | None, plus one of two features on | PHP written via cache path traversal, CVSS 9.8 | 6 days (19 to 25 Nov) | Turn off both features |
WP Rocket stored XSS via rocket_beacon (WPScan) |
None | Stored cross-site scripting, CVSS 7.2 | Not reported | Update to 3.21.1 |
| Drupal Fail2Install, CVE-2026-132165 | None | Site takeover through the installer | 1 day, per BleepingComputer | Block /core/install.php |
| Drupal follow-up, CVE-2026-136716 | None, unusual install states | Site takeover | Exploited, date not given | Block /core/install.php |
The Drupal case, which we covered in Drupal Fail2Install: Why the First Patch Was Not Enough, shows the same pressure on content management systems this month: attackers read fixes and move within days. The GPUStack CVE-2026-102895 attacks showed the other side, where sites stayed unpatched for months after a fix existed. WP Rocket’s licence-gated updates risk producing both problems at once.
The detection approach also resembles the Cacti 4HTTP2ROOT zero-day: the dangerous request looks like normal application traffic, so file and database checks matter as much as log searches.
What is still unknown?
- How many sites are exposed. The 5.6 million figure is total reach. No source counts sites on old versions with either feature enabled.
- Confirmed compromises. Patchstack reports blocked attempts. No source we read names a compromised site or describes what the planted PHP files did next.
- Who is behind it. Patchstack describes several independent operators and does not attribute the activity to any group.
- Exploitation status, depending on who you read. ZeroPath’s and Brandefense’s pages, written on 25 November, say exploitation was not confirmed. Patchstack’s 27 November telemetry says otherwise. The later source is the one to act on.
- The first vulnerable version. The CVE record gives no lower bound, so every release before 3.24.2 should be treated as affected.
The bottom line
WP Rocket CVE-2026-125812 turned a page speed feature into a way to write PHP onto a server, and attackers found it within six days of the fix, before public exploit code existed. If any of your sites run WP Rocket, confirm the version is 3.24.2 or later today, then go looking for planted PHP files, because the update only closes the door; it does not clean the room.
Sources
- Patchstack: Critical WP Rocket RCE (CVE-2026-125812) Under Active Attack
- Ostorlab: WP Rocket Path Traversal RCE, Fixed in 3.24.2 (CVE-2026-125812)
- ZeroPath: Overview of CVE-2026-125812, Path Traversal to Reported RCE in WP Rocket
- Rescana: WP Rocket CVE-2026-125812 Unauthenticated RCE Under Active Attack
- Tuskira: CVE-2026-125812 advisory
- Brandefense: CVE-2026-125812 WP Rocket Path Traversal, Fix Status
- ZeroHour: WP Rocket before 3.24.2 hit by active unauthenticated RCE
- WP Rocket changelog
- WPScan: WP Rocket plugin vulnerabilities
- BleepingComputer: Drupal warns of new site takeover flaw exploited in attacks
- GitHub: joshuavanderpoll/CVE-2026-125812 repository metadata
This article is written for defenders and authorised security testers. Only test systems you own or have written permission to assess.