WP Rocket CVE-2026-125812 under attack six days after 3.24.2 fix
Attackers are exploiting CVE-2026-125812, an unauthenticated remote code execution flaw in WP Rocket, the paid caching and performance plugin for WordPress. WP Media fixed it in version 3.24.2 on November 19, 2026. Patchstack, which assigned the CVE and scores it 9.8 under CVSS 3.1, recorded the first exploitation attempt on November 25 at 15:27 UTC and blocked tens of thousands of attempts the following day.
Affected versions and the two settings that matter
WP Media's advisory lists versions 3.15 through 3.24.1 as vulnerable. Some third-party write-ups describe the range as everything before 3.24.2, because the CVE record gives no lower bound. If a site runs anything older than 3.24.2, treat it as affected.
The version alone does not make a site exploitable. One of these features must also be enabled:
- LazyLoad for CSS background images
- Self-host Google Fonts (Patchstack and several news outlets call it "Host Fonts Locally")
Both are off by default. In 3.24 and later they sit under WP Rocket > Page Optimization > Image & Media; in older releases they are on the Media tab. Sites where someone switched either one on to improve PageSpeed scores are the ones in scope.
How the rocket_beacon request writes PHP to disk
WP Rocket loads a script in each visitor's browser that measures the page and posts the results to /wp-admin/admin-ajax.php with action=rocket_beacon. The endpoint has to be public, because anonymous visitors send those reports. The plugin then uses the URLs in the report to fetch and cache CSS and font files.
Before 3.24.2 it did not validate those URLs and the resulting file paths strictly enough, and the CVE is classed as CWE-22 (path traversal). A forged report can make the server download content from an attacker's host and save it as a PHP file. The attacker then requests that file and runs code as the web server user. The 3.24.2 changelog describes the fix as "Improve validation of cached CSS, font and preconnect files."
Exploitation timeline and source addresses
- November 19: WP Rocket 3.24.2 released.
- November 25, 15:27 UTC: Patchstack logs the first attempt.
- November 26: automated scanning begins and Patchstack blocks tens of thousands of requests that day.
According to Patchstack, ten IP addresses account for roughly half of all blocked attempts since November 25. The two busiest, 103.235.74.71 and 157.245.122.230, each sent more than 5,000 requests. Payloads were hosted on bare IP addresses, nip.io wildcard hostnames, temporary trycloudflare.com tunnels and other compromised WordPress sites. These figures count blocked attempts. No one has published a count of compromised sites.
Updating when the license has lapsed
WP Rocket is sold by subscription and is not distributed through WordPress.org, so the dashboard offers updates only while the license is active. A site whose license expired after launch, for example because a developer bought it and the client never renewed, will not be offered 3.24.2. Renew the license, or download the release from an active account and install it by hand. Check and update from the shell with WP-CLI:
wp plugin get wp-rocket --field=version
wp plugin update wp-rocket
If you cannot update today, turn both features off and save. WP Media also publishes a helper plugin, WP Rocket | Mitigate CVE-2026-125812, in its wp-media/wp-rocket-helpers repository on GitHub. It disables the two features. Install it with the first command below; on multisite, activate it on each affected subsite with the second:
wp plugin install ./wp-rocket-mitigate-cve-2026-125812.zip --activate
wp plugin activate wp-rocket-mitigate-cve-2026-125812 --url=https://example.com/subsite/
Files, logs and connections to inspect
The update stops new attacks through this path. It does not remove files already written. If either feature was enabled while the site ran a vulnerable version, check these locations from the WordPress root:
find wp-content -name 'wp-media-*.php'
find wp-content -maxdepth 1 -name '*.php' -newermt 2026-11-24
find wp-content/uploads -name '*.php'
ls -la wp-content/wp-rocket-config/
Patchstack reports planted files named wp-media-*.php in wp-content/wp-rocket-config/, wp-content/uploads/ and the wp-content root. In the root, expect index.php and drop-ins such as advanced-cache.php, which WP Rocket rewrites itself and will show a recent timestamp. In wp-rocket-config, WP Rocket keeps one config file per domain, named after the hostname. A PHP file in uploads is suspect on nearly every site.
Default Apache and Nginx access logs do not record POST bodies, so rocket_beacon will not appear in them. Search instead for the attacking addresses and for successful requests to PHP files under wp-content:
zgrep -E '103\.235\.74\.7[12]|157\.245\.122\.230|152\.89\.170\.194' /var/log/nginx/access.log*
zgrep -E '"(GET|POST) /wp-content/[^ ]*\.php' /var/log/nginx/access.log* | grep -v '" 404 '
Patchstack also advises looking for outbound connections from the web server to unfamiliar hosts, nip.io names or trycloudflare.com tunnels. Resolver or egress firewall logs will show these; a WordPress server has little reason to contact either domain.
Cleanup after a confirmed compromise
A planted file means the attacker ran code as the web server user, and other changes may sit elsewhere on the server. WP Media's advisory says any files or accounts an attacker created need separate investigation. At minimum:
- List administrators with
wp user list --role=administratorand remove unknown accounts. - Run
wp core verify-checksumsandwp plugin verify-checksums --all(premium plugins such as WP Rocket will not verify; reinstall them from a fresh download). - Change the database password and regenerate the salts in
wp-config.php. - Rotate any API keys or credentials stored on the same server.
- If you cannot account for every change, restore from a backup taken before November 25 and then update before reconnecting the site.
On the WordPress sites we manage at Falcon Internet, we track premium plugin license expiry alongside plugin versions, because a lapsed license stops security updates as surely as an abandoned plugin does. Sites that never enabled either feature still need 3.24.2, since a later settings change would expose them on an older build.