DEV Community

Affix Center Softech Services Pvt. Ltd

WP Rocket CVE-2026-125812: Log Patterns and File Checks for WordPress Admins

If you look after WordPress sites, add WP Rocket to this week's patch list. CVE-2026-125812 is an unauthenticated remote code execution flaw (CVSS 9.8) in the WP Rocket caching plugin. It is fixed in 3.24.2, released on 19 November 2026, and Patchstack recorded the first exploitation attempt on 25 November.

Exposure conditions

  • WP Rocket version below 3.24.2
  • AND at least one of: "LazyLoad for CSS background images" or "Host Fonts Locally" enabled
  • Both options are off by default, but they are often switched on during performance tuning

The plugin uses a small browser-side script that measures pages and reports results back to the site. Patchstack found the plugin did not validate those reports strictly enough, so an attacker could make the site fetch attacker-controlled content and store it as a PHP file that executes on the server.

Patch steps

  • Inventory every WordPress install, including old microsites and campaign pages
  • Back up files and database, then update to 3.24.2 or later
  • If you cannot update today, disable the two features above as a stopgap
  • Move plugins to automatic or weekly updates; monthly cycles left sites open here

What to grep for after patching

Updating does not remove anything already dropped. Check these:

  • PHP files in wp-content/wp-rocket-config/, wp-content/uploads/ and wp-content/, including names matching wp-media-*.php
  • POST requests to /wp-admin/admin-ajax.php with action=rocket_beacon from clients that never loaded the page
  • Outbound connections from the server to unfamiliar hosts, nip.io names or trycloudflare.com tunnels

If you find anything: remove the files, restore from a known clean backup if needed, rotate WordPress admin, hosting, database and FTP credentials, and look for newly created admin users.

More detail: WP Rocket flaw under attack, full advisory and FAQ

Written by the team at Affix Center, an IT services company in Lower Parel, Mumbai.

Top comments (0)