🔒 WP Rocket: critical WordPress plugin flaw exploited, and the update does not remove planted backdoors
In brief
- 🔒 Flaw CVE-2026-125812 in the WP Rocket plugin lets unauthenticated attackers run PHP code on a website.
- 📅 The fix 3.24.2 came out on 19 November; Patchstack saw the first attacks on 25 November.
- 🧹 Updating does not remove backdoors already planted; site owners should check files and access.
🔒 The critical flaw CVE-2026-125812 in the WordPress plugin WP Rocket is being exploited. Attackers without an account can make a site download a PHP file from their server and run it. Versions before 3.24.2 are affected when "LazyLoad for CSS background images" or local hosting of Google Fonts is on; both are off by default. The vendor fixed the flaw on 19 November, and Patchstack saw the first attacks on 25 November. Security firm NOC.org has now dissected attacks it saw: they install backdoors that keep working after the update.
🧩 Technically, attackers abuse the plugin's measurement feature. A small script in the browser reports page data to /wp-admin/admin-ajax.php (action=rocket_beacon), and WP Rocket downloads some of the reported URLs. Before 3.24.2 they were not checked strictly enough, so a reported URL can point to an attacker's PHP file, which is then saved on the site. The security value shown on every page does not protect anything here, according to NOC. NOC also calls the flaw a path traversal (CWE-22) that lets files land in other folders such as wp-content.
🕵️ NOC describes an example sequence: the attacker probes whether the feature is on, reports URLs that look like stylesheets, loads the page repeatedly and then requests possible file names until a PHP file answers. That file starts with real CSS and is an installer: it overwrites wp-content/index.php and drops a web shell and a file-manager panel with names such as wp-rocket-helper.php. The shell hides in a phar archive; the panel can upload and download files, read wp-config.php and log in as the first administrator with one button, without creating a new user.
📈 Patchstack has counted rising attacks since 25 November; BleepingComputer cites more than 25,000 blocked requests from several attackers and quotes WP Media saying the plugin runs on more than 5.6 million sites. NOC also saw scanners hunting for backdoors planted earlier, so one attacker's foothold can be taken over by others. Note that NOC sells protection rules itself and bases its account on its own logs. Reports differ on the affected versions: NOC names 3.15 to 3.24.1, while Patchstack and BleepingComputer say all versions before 3.24.2.
🧹 What site owners should do: update to 3.24.2 or later, or switch off the two features if that is not possible. Then check whether wp-content/index.php (normally one line) was changed, whether there are PHP files in the cache folder or unknown files in wp-content, and whether rocket_beacon requests stand out in the logs. If anything is found, the update is not enough: delete the files, change administrator and database passwords and renew the WordPress salts in wp-config.php.