WP Rocket RCE vulnerability is under active attack, Patchstack says
Patchstack says attackers are actively exploiting a critical remote code execution flaw in the WP Rocket plugin for WordPress. According to Patchstack, site owners should update to version 3.24.2 or later and review affected sites for signs of compromise.
The issue is tracked as CVE-2026-125812. Patchstack reports that it affects WP Rocket versions before 3.24.2 when either LazyLoad for CSS background images or Host Fonts Locally is enabled, and says exploitation has already been observed in the wild.
What changed
Patchstack published details of an unauthenticated remote code execution vulnerability in WP Rocket on November 27, 2026. The company says attackers can send a crafted request to WP Rocket’s public measurement endpoint, cause the site to download content from an attacker-controlled server, save it as a PHP file, and then execute that code on the server.
Patchstack says the first exploitation attempt was seen on November 25, 2026, and activity increased quickly after that. The report says attacks target the rocket_beacon action through /wp-admin/admin-ajax.php, and that automated campaigns followed early manual attempts. It also notes that the update blocks new attacks, but does not remove any malicious files that may already have been placed on a site.
What it means for your website
If your WordPress site uses WP Rocket and is running a version earlier than 3.24.2, the immediate risk depends on whether one of the two named optimization features is turned on. Patchstack says both features are off by default, but common on performance-tuned sites. If one is enabled, an attacker does not need to log in to try to exploit the flaw.
For business owners, the main concern is not just updating the plugin. Patchstack says a successful attack can leave behind PHP files in places such as wp-content/wp-rocket-config/, wp-content/uploads/, or directly in wp-content/. That means a site could still be compromised even after the plugin is updated, unless those files and related logs are checked.
What to do now
- Update WP Rocket to version 3.24.2 or later as soon as possible.
- If you cannot update right away, turn off LazyLoad for CSS background images and Host Fonts Locally.
- Check for unexpected PHP files in wp-content/wp-rocket-config/, wp-content/uploads/, and directly in wp-content/, including names like wp-media-*.php.
- Review logs for rocket_beacon requests from clients that never loaded the page they reported on, or requests that report full URLs where bare domains are expected.
- Review outbound requests from your server to unfamiliar hosts, including nip.io names and trycloudflare.com tunnels.
Keep reading
-
SEO & AI Optimization
How Google Business Profile Categories Affect Local Rankings
-
SEO & AI Optimization
SEO Optimization With AI: Boost Your Website Results Fast