The short version: A critical WP Rocket flaw (CVE-2026-125812, score 9.8) lets anyone with no login make your WordPress site download and run their PHP. Attacks went automated within a day. Update to 3.24.2 now. Then check whether someone got in before you updated, because the update won’t tell you.
Are you affected?
You were exposed if all three are true:
- You run WP Rocket older than 3.24.2
- Lazy loading for CSS background images or local hosting of Google Fonts was turned on
- The site was online after November 25
If you can’t update right away, turn both of those features off. That’s the vendor’s own interim advice.
The attack goes through a public endpoint reached via admin-ajax.php. The attacker’s server hands your site a file, and your site saves it as PHP and runs it. Payloads were hosted on bare IP addresses and temporary tunneling services, so blocklists won’t keep up (iSec News).
The 20-minute check
Run these from the site root with WP-CLI. Each one answers a single question.
Am I on the fixed version?
wp plugin get wp-rocket --field=version
Is there PHP where PHP shouldn’t be? The uploads folder should never contain PHP files:
find wp-content/uploads -name '*.php'
What PHP changed since the attacks began?
find . -name '*.php' -newermt '2026-11-25' -not -path './wp-content/cache/*'
Expect your own updates in that list. Anything you can’t explain gets a closer look.
Did anyone add an admin?
wp user list --role=administrator --fields=ID,user_login,user_registered
Is anything scheduled that you didn’t schedule?
wp cron event list
Are WordPress core files untouched?
wp core verify-checksums
Two notes. wp plugin verify-checksums only covers plugins from wordpress.org, so it can’t vouch for WP Rocket, which is sold separately. Also check your server or WAF logs for bursts of POST requests to admin-ajax.php from November 25 onward, and for outbound connections from the web server to unfamiliar IPs.
Found something?
Don’t delete the file and move on. A planted file usually means there are others you haven’t found.
- Take a copy first. Save the file, the logs and a database dump before you change anything. You’ll want them for the investigation.
- Restore from a backup taken before November 25 if you have one, then update WP Rocket before bringing the site back online.
- Rotate everything the site knew: database password, the salts in
wp-config.php, every admin password, and any API keys stored in plugins. - Check what else that server can reach. Running PHP means the attacker had the web server’s access, including other sites on the same account.
This is also the moment you find out whether your incident response plan works. If you’ve never restored a backup before, today’s a bad day to learn.
Not sure whether your site was hit, or need help cleaning it up? Get in touch and we’ll take a look.
