Hackers exploit WP Rocket bug to take over WordPress sites

Published

Attackers are exploiting a critical flaw in WP Rocket, one of the most widely installed WordPress performance plugins, to write PHP files onto websites and run their own code without ever logging in. Patchstack, which assigned the bug as CVE-2026-125812 and scores it 9.8 out of 10, reports more than 5.5 million installs of the plugin.

WP Rocket shipped the fix in version 3.24.2 on November 19, 2026. According to research published by the Kudelski Security team on December 2, Patchstack recorded the first exploitation attempt at 15:27 UTC on November 25, the same day the CVE went public, and logged tens of thousands of blocked attempts on November 26 alone.

Two optional features open the door

Not every WP Rocket site is exposed. WP Rocket's own advisory says versions 3.15 through 3.24.1 are affected only when at least one of two settings is switched on: "LazyLoad for CSS background images" or "Self-host Google Fonts". Under those conditions, the vendor says, an attacker can execute arbitrary code on the site without authentication.

The weak spot is a public WordPress AJAX endpoint. Kudelski Security explains that the plugin's rocket_beacon action, reached through /wp-admin/admin-ajax.php, does not validate the URLs it is sent strictly enough, so an attacker can get the plugin to write a PHP file to disk and then execute it with the web server's privileges. The NVD record, sourced from Patchstack's database entry, classes it as a path traversal (CWE-22). A file running as the web server is effectively full control of the WordPress install, which is why remote file-write bugs in plugins keep turning into webshell campaigns.

Peru's national digital security centre flagged the same flaw in its integrated alert N° 242-2026 on December 3, noting that the activity seen so far looks automated and opportunistic and has not been tied to any named group.

Update to 3.24.2, then hunt back to November 25

Patching closes the hole but does not clean up after it. Kudelski Security stresses that the update does not remove files an attacker already planted, and WP Rocket says the same about files and accounts an intruder may have created. Site owners should:

What an infected site looks like

Kudelski Security and the Peruvian alert point defenders to the following signs:

Kudelski Security's advice is to treat any internet-facing site that ran a vulnerable version with either feature enabled since November 25 as potentially compromised until that hunt is done. With exploitation starting within hours of the CVE going public, the gap between a patch and a breach on WordPress is now measured in a single afternoon.

This briefing is provided by IntelFusions for informational and defensive purposes only. It is based on sources assessed to be reliable at the time of writing, and analytic judgments carry the confidence levels indicated. Indicators of compromise are defanged; re-arm them only in controlled environments. IntelFusions is not affiliated with the organizations named and makes no warranty as to completeness or accuracy.

Earlier in Vulnerabilities

All Vulnerabilities briefings

Latest briefings

Read the full analysis on IntelFusions