WP Rocket CVE-2026-125812 (CVSS 9.8) Exploited Three Hours After Disclosure: Unauthenticated Attackers Plant PHP Files via the Plugin's Beacon Cache — Update to 3.24.2 and Check Expired Licences

Cyber · 2026-11-29 · By Reef Administrator - H.A

WP Rocket CVE-2026-125812 (CVSS 9.8) Exploited Three Hours After Disclosure: Unauthenticated Attackers Plant PHP Files via the Plugin's Beacon Cache — Update to 3.24.2 and Check Expired Licences

A path traversal flaw in the WP Rocket caching plugin lets unauthenticated attackers write and run PHP files on sites using CSS background lazy loading or local font hosting, and automated exploitation began within hours of the CVE going public.

A critical flaw in WP Rocket, one of the most widely used paid caching plugins for WordPress, is under active attack. Unauthenticated attackers are using it to plant and run PHP files on websites. The bug is tracked as CVE-2026-125812 and rated CVSS 9.8. It affects every WP Rocket release before 3.24.2, but only on sites where one of two optional performance features is switched on. The fix shipped on 19 November. The first attack came about three hours after the CVE record went public, and attacks have since grown into automated campaigns run by several separate operators.

What Happened

The vendor, WP Media, released WP Rocket 3.24.2 on 19 November 2026. Its changelog listed a single, vague security line: "Improve validation of cached CSS, font and preconnect files". The issue was reported by a researcher credited as "Vorelito" through a bug bounty programme, and the CVE was assigned by the WordPress-focused CVE numbering authority that runs it.

The CVE record was published on 25 November at 16:09 Mauritius time (12:09 UTC). Security researchers monitoring WordPress traffic saw the first exploitation attempt the same day, at 19:27 Mauritius time (15:27 UTC). The first attacker appeared to be testing by hand: they probed a few sites and retried with encoded variants after being blocked. Within a day, automated campaigns were running. Researchers report tens of thousands of blocked attempts on 26 November alone. Ten source IP addresses accounted for roughly half of the traffic, spread across hosting providers in Indonesia, Italy, the Philippines and Singapore as well as DigitalOcean. One cluster sent byte-identical requests from rotating residential IPs.

The vendor says WP Rocket runs on more than 5.6 million websites. Not all of them are exposed, because the vulnerable features are off by default. Many performance-tuned sites do turn them on, though.

Technical Details

The CVE record classifies the flaw as a path traversal (CWE-22) with the vector AV:N/AC:L/PR:N/UI:N: exploitable over the network, with low complexity, no login and no user interaction.

To optimise pages, WP Rocket loads a small "beacon" script in visitors' browsers. The script measures each page and reports the results to a public WordPress AJAX endpoint, admin-ajax.php, using the rocket_beacon action. WP Rocket then uses the reported resource URLs to fetch and cache files locally. Two features use this data:

According to researchers who analysed the patch, versions up to 3.24.1 built the cache file path by joining the cache directory, the host name and the URL path as plain strings. Only leading and trailing slashes were trimmed. .. segments were not resolved, nothing checked that the final path stayed inside the cache folder, and the file extension was not restricted. A forged beacon report can therefore make the site download content from an attacker-controlled server and save it under a name ending in .php. The web server then executes that file like any other script.

Version 3.24.2 normalises the path before resolving it and rejects unsafe characters. Cached stylesheet names are limited to .css and .css.json, and a final check confirms the resolved path is inside the cache root. For local fonts, downloads must now carry a valid font extension and match real font file signatures (WOFF2, WOFF, TTF, OTF or EOT), so HTML or PHP content is never stored.

Reports conflict on whether a working public proof of concept exists. With several independent operators already automating attacks, that question matters little to defenders.

Who Is Affected

Sites with both features turned off are not exploitable through this flaw, according to researchers. They should still update.

Patch Status

The flaw is fixed in WP Rocket 3.24.2 (19 November 2026). The later 3.24.3 release (26 November) contains the same fix plus new features. As of CISA's latest catalogue release on 27 November, CVE-2026-125812 was not in the Known Exploited Vulnerabilities list, even though in-the-wild exploitation has been reported.

What To Do Now

# Run from the WordPress root; review every hit by hand.
# Note: WP Rocket's own per-domain config files (e.g. example.com.php)
# legitimately live in wp-rocket-config, so compare before deleting.
find wp-content/wp-rocket-config wp-content/uploads -name '*.php' -newermt '2026-11-19' -ls
find wp-content -maxdepth 1 -name 'wp-media-*.php' -ls
find wp-content/cache -name '*.php' -ls

Why It Matters

The fix was public for six days before the CVE record appeared. Once the identifier was published, attackers needed about three hours to start exploiting it. For a plugin installed on millions of sites, that leaves almost no time between disclosure and attack, and a short "security improvements" changelog line is easy to skip.

The case also shows a quieter risk with premium WordPress plugins. A site with an expired licence keeps running old code with no update prompt, so owners may not realise they are exposed. Anyone who runs WordPress sites for clients should check WP Rocket versions across every site this week, including the ones that "just work" and have not been touched in a year.

Sources

REEF SENTINEL