WP Rocket RCE Vulnerability: Update to 3.24.2

A WP Rocket RCE vulnerability, CVE-2026-125812 (CVSS 9.8), lets an attacker with no login make a WordPress site save and run PHP code. WP Media fixed it in version 3.24.2 on November 19. According to Patchstack, attacks started on November 25, six days later, and sites that have not updated are the easy targets.
What Happened to WP Rocket
The WP Rocket RCE vulnerability is a path traversal flaw (CWE-22) that ends in unauthenticated remote code execution. WP Rocket is a paid caching and performance plugin for WordPress. It runs a small script in visitors’ browsers that reports page measurements to a public endpoint on the site, and the plugin then uses the URLs in those reports to optimize the page, for example by downloading fonts or CSS background images to serve locally. Before 3.24.2 it did not check those URLs strictly enough. A forged report can make the site fetch content from an attacker’s server and store it as a PHP file, which then runs with the site’s own rights.
Not every WP Rocket site is exposed. According to Patchstack, a site is vulnerable when it runs a version before 3.24.2 and has “LazyLoad for CSS background images” or the option to host Google Fonts locally switched on. Both options are off by default, but they are common on sites tuned for speed.
WP Rocket released 3.24.2 on November 19, and Patchstack published its advisory on November 23. Patchstack recorded the first exploitation attempt on November 25 at 15:27 UTC, first by hand and then as automated campaigns from several independent operators, and blocked tens of thousands of attempts on November 26 alone. Those are attempt counts. The reports do not say how many sites were actually taken over.
Why It Matters
A caching plugin handles almost every page load, so a flaw in its public endpoint is reachable from the internet by design. The window between fix and first attack was six days. On many marketing sites nobody owns plugin updates, and because WP Rocket is a paid plugin, updates need a valid licence, so a hosting provider often cannot apply the fix for you (our observation). Once PHP code runs, the attacker has the same access as the site itself: its files, its database and any credentials stored there. We have no data on how many sites in Germany, Austria or Switzerland are affected. Plugins have been a recurring way in, as in our October post on the Rank Math supply chain attack.
What You Should Do Now
- Check the installed version under Plugins in wp-admin, or with
wp plugin get wp-rocket --field=version. Anything below 3.24.2 is vulnerable. Update to 3.24.2 or later (3.24.3 followed on November 26); the update needs an active licence. - If you cannot update today, switch off “LazyLoad for CSS background images” and the option to host Google Fonts locally. Patchstack names this as the workaround.
- Look for PHP files you did not create in wp-content, wp-content/uploads and wp-content/wp-rocket-config, for example files named wp-media-*.php. Updating does not remove a file that is already planted.
- Review web server logs for odd rocket_beacon requests that carry full URLs, and for outbound connections to unfamiliar hosts, including nip.io names and temporary Cloudflare tunnel hosts (trycloudflare.com).
- If you find a PHP file you cannot explain, treat the site as compromised: restore from a backup taken before November 25, update WP Rocket, and change admin and database passwords (our recommendation).
DIESEC Perspective
Someone has to own the plugin list for your public websites, and a critical update waits until that person acts. On many marketing sites that person is whoever logs in next.
Not sure which of your websites run WP Rocket, or who keeps their plugins current? Contact DIESEC for a rapid WordPress plugin and exposure review.
Sources: Patchstack | Patchstack database | WP Rocket changelog
Published: 2026-12-01 | Category: Vulnerabilities & Patches | ~3 min read

