WP Rocket Flaw Is Under Attack: Update and Check Your WordPress Site

Attackers are targeting a WP Rocket flaw that can run PHP code without a login. Update to 3.24.2 or later, or disable two settings while you investigate.

Attackers are targeting a critical flaw in the WP Rocket WordPress performance plugin that can let them run code on a vulnerable website without logging in. Site owners should update to version 3.24.2 or later and check for signs of earlier compromise.

The issue, tracked as CVE-2026-125812, affects WP Rocket versions 3.15 through 3.24.1 when at least one of two optimization features is enabled, according to the plugin’s security advisory. Security firm Patchstack reported its first observed exploitation attempt on November 25 and tens of thousands of blocked attempts on November 26. Blocked attempts are not a count of compromised sites.

Which sites are affected?

The vulnerable configurations use either LazyLoad for CSS background images or Self-host Google Fonts, also called Host Fonts Locally in Patchstack’s analysis. Both are off by default, according to Patchstack, but may have been enabled when a site was tuned for performance. WP Rocket 3.24.2, released November 19, fixes the flaw.

WP Rocket’s browser-side measurement script sends information to a public WordPress AJAX endpoint. Patchstack found that insufficient validation of reported URLs allows a crafted request to cause the server to fetch attacker-controlled content and save it as a PHP file. That file can then execute on the server. An attacker does not need a WordPress account for the documented attack.

Update or disable both settings

  1. In the WordPress dashboard, open Plugins, find WP Rocket and select Update now. Verify that the installed version is 3.24.2 or later.
  2. If an expired license or another problem prevents an immediate update, open WP Rocket > Page Optimization > Image & Media. In versions before 3.24, open the Media tab instead.
  3. Turn off both LazyLoad for CSS background images and Self-host Google Fonts, save the changes and verify they remain off. Keep them disabled until the update is installed.

Disabling the two features is a temporary mitigation for the documented attack paths, not a substitute for updating. Performance or font rendering may change, so check important pages after the change. The vendor also offers a mitigation helper for administrators managing many sites. On WordPress Multisite, its instructions call for activating the helper individually on each affected subsite and verifying the settings on each one.

Check for activity before the update

Updating prevents new exploitation through this flaw; it does not remove an existing backdoor. If a vulnerable version ran with either feature enabled, ask your host or security team to review historical logs and files. Patchstack recommends looking for:

  • Suspicious requests to /wp-admin/admin-ajax.php using the rocket_beacon action, including requests that report full URLs where bare domains are expected. The endpoint also handles legitimate traffic, so a request alone does not prove compromise.
  • Unexpected outbound connections from the web server to unfamiliar hosts, including unfamiliar nip.io names or trycloudflare.com tunnels.
  • Unexpected PHP files in wp-content/wp-rocket-config/, wp-content/uploads/ or directly under wp-content/. Patchstack gives wp-media-*.php as one example, not an exhaustive signature.

Preserve relevant logs and suspicious files for investigation instead of deleting evidence blindly. Review unexpected administrator accounts and changes with your security team or host. If compromise is confirmed, contain the site, assess what credentials and data the server could access, and follow an incident-response plan; patching alone does not establish that the site is clean.

Leave a Reply

Your email address will not be published. Required fields are marked *

Previous Post
Ethernet cables connected to network switches in a server room

Cacti Zero-Day Has a Public Exploit: Disable Guest Access and Check Poller Settings

Related Posts
Traffic management center operator monitoring highway cameras and traveler information systems

Daktronics Controller Flaws Put Public Digital Signs on Patch Watch

CISA is warning that flaws in Daktronics DMP-5000, VFC-DMP-5000, and DMP-8000 controller firmware could expose public display systems to root-level compromise. Operators of billboards, highway signs, venues, hospitals, and other connected displays should patch firmware, change default credentials, and verify that controllers are not reachable from the open internet.
Read More