Attackers are exploiting CVE-2026-125812, a flaw in the WP Rocket caching plugin for WordPress that lets an unauthenticated visitor get a PHP file written onto a site. WP Media fixed it in WP Rocket 3.24.2 on November 19. The first exploitation attempt was seen on November 25 at 15:27 UTC, and tens of thousands of attempts were blocked the next day, according to Patchstack telemetry as reported by Rescana and Ostorlab.
Why it matters: WP Rocket is a widely used paid caching plugin (WP Media says it runs on more than 5.6 million websites, according to ZeroPath and Ostorlab). ZeroPath also notes that WP Rocket disables unattended auto-updates and that an expired licence blocks updates. That leaves a lot of sites still on old versions a week after the fix.
What's affected
| Vulnerable | WP Rocket before 3.24.2 (3.24.1 and earlier) |
| Fixed | 3.24.2 (Nov 19); 3.24.3 (Nov 26) is the current release |
| Severity | CVSS 3.1 9.8, scored by Patchstack as the CVE numbering authority |
| Login needed | No |
| Exposure condition | Reported to need LazyLoad for CSS background images or Host Fonts Locally / Self-Host Google Fonts turned on. Both are off by default, per Rescana and InstaWP |
| CISA KEV | Not listed as of Ostorlab's November 28 check |
No source we read gives a confirmed earliest vulnerable version. One aggregator cites "3.15 through 3.24.1", but we could not trace that range to Patchstack or WP Media. ZeroPath also warns that public information doesn't firmly establish which settings are required. Treat a disabled feature as lowering your risk, not removing it.
How it works
We compared the 3.24.1 and 3.24.2 release tags in WP Media's public GitHub repository. In 3.24.1, the function that turns a URL into a cache file path (FilesystemCache::generate_path) only trims slashes from the ends of the path. It then joins the host and path onto the cache folder, so .. segments in the middle survive and the file name is not checked. In 3.24.2 the function resolves those dot segments and keeps the result inside the cache folder. It validates the host, rejects control and reserved characters, and only allows .css and .css.json names. It also explicitly blocks executable extensions such as .php, .phtml and .phar. The fix arrived as a "Merge commit from fork", which is typical of a privately reported security fix. Ostorlab and ZeroPath describe the same pattern in the fonts code (Fonts\Filesystem), and the 3.24.2 diff touches that file and the preconnect handling too.
According to Patchstack's description, as summarised by Rescana and Ostorlab, the attack goes through the plugin's browser "beacon" endpoint (admin-ajax.php with action=rocket_beacon). That endpoint accepts page-measurement reports from visitors. A crafted report can make the site fetch attacker-controlled content and save it as a PHP file that the web server will then run. Patchstack credits the find to a researcher named Vorelito, reported November 4.
We did not read Patchstack's own write-up. The exploitation figures here come from security firms quoting it, and blocked attempts are not confirmed break-ins. Sources disagree on whether working exploit code is public: InstaWP says one appeared on GitHub on November 25, while Ostorlab said none was public as of November 28.
What to do
-
Update WP Rocket to 3.24.2 or later (3.24.3 is current). If the dashboard doesn't offer the update, check your licence or upload the plugin by hand.
-
If you can't update right away, turn off LazyLoad for CSS background images and Host Fonts Locally / Self-Host Google Fonts (under Media in WP Rocket settings), Rescana and Ostorlab advise.
-
Look for planted files, because updating won't delete them. Search for unexpected
.phpfiles, especially ones namedwp-media-*.php, inwp-content/,wp-content/cache/,wp-content/wp-rocket-config/,wp-content/uploads/and the site root. Anything created since about November 23 deserves a close look, per InstaWP and Ostorlab. A quick check from the site root:find wp-content -name "*.php" -newermt 2026-11-23 -not -path "*/plugins/*" -not -path "*/themes/*" find . -maxdepth 1 -name "*.php" -newermt 2026-11-23 -
Check logs for POSTs to
/wp-admin/admin-ajax.phpwithaction=rocket_beaconfrom clients that never loaded the page they report on. Also look for outbound requests from the server to bare IP addresses,nip.ioortrycloudflare.com(Rescana, Ostorlab). -
If you find a planted file, treat the site as compromised. Restore from a backup taken before November 25, rotate admin, database and hosting credentials, and purge WP Rocket's cache, because cached pages can carry injected content.
The most active sources in Patchstack's data, as listed by Rescana, include 103.235.74.71, 157.245.122.230 and 152.89.170.194. Patchstack sees several independent operators and has not named an actor.
Who should care: anyone running WP Rocket, and agencies and hosts managing many WordPress sites, since paid plugins often sit outside automatic update pipelines.
Sources
- wp-media/wp-rocket on GitHub — release tags v3.24.1, v3.24.2, v3.24.3 and fix commit github.com
- Rescana — WP Rocket CVE-2026-125812 Unauthenticated RCE Under Active Attack: Update to 3.24.2 Now rescana.com
- Ostorlab — WP Rocket Path Traversal RCE, Fixed in 3.24.2 (CVE-2026-125812) blog.ostorlab.co
- ZeroPath — Overview of CVE-2026-125812: Path Traversal to Reported RCE in WP Rocket Cache Path Generation zeropath.com
- InstaWP — WP Rocket Vulnerability CVE-2026-125812: What To Know instawp.com