Hackers Exploit WP Rocket Flaw to Run Malicious Code on WordPress Sites Without Logging In

Blog WriterCybersecurity News - Original News Source is cybersecuritynews.com


A critical WP Rocket flaw, CVE-2026-125812 (CVSS 9.8), allows unauthenticated attackers to write and execute malicious PHP code on vulnerable WordPress websites.

WordPress administrators should update the plugin to 3.24.2 or later, even if they have not seen signs of an attack. The vendor’s advisory says the flaw affects WP Rocket versions 3.15 through 3.24.1

when either LazyLoad for CSS background images or Host Fonts Locally is enabled. The first setting delays loading background images until they are needed.

The second serves Google Fonts from the website itself. Both are off by default, but a site only needs one of them enabled to be exposed. WP Rocket released the fix on November 19, 2026.

WP Rocket collects page measurements from visitors’ browsers to help speed up a site. Patchstack found that the plugin did not properly check some of the data in those reports.

On vulnerable sites, that gap can let an attacker place and run PHP code on the web server. This is known as remote code execution, and it does not require a WordPress account or password.

Hackers Exploit WP Rocket Flaw

Patchstack recorded its first exploitation attempt on November 25 at 15:27 UTC, six days after the fix came out. The first attempts appeared to be manual, but automated attacks followed within a day.

Top 10 IP Addresses by Blocked Attempts :

Source IP address Network Blocked requests
103.235.74.71 Ikubaru (Indonesia) 5,352
157.245.122.230 DigitalOcean 5,003
152.89.170.194 C1V Hosting (Italy) 3,455
180.232.236.101 Eastern Telecom (Philippines) 2,288
103.235.74.72 Ikubaru (Indonesia) 1,950
201.79.120.217 DigitalOcean 1,938
112.78.154.32 Biznet (Indonesia) 1,876
167.71.75.155 DigitalOcean 1,600
43.163.8.253 Aceville / Tencent Cloud (Singapore) 1,326
51.79.199.209 OVH (Singapore) 1,018

Patchstack blocked tens of thousands of requests on November 26 alone. That figure counts blocked attempts, not hacked websites. The report does not establish how many sites were successfully compromised. The speed of the attacks echoes a separate WordPress core flaw targeted shortly after a fix.

This case differs from the recent backdoor incident involving six WordPress plugins, where WordPress.org stopped altered releases before distributing them. Here, attackers are targeting vulnerable copies of WP Rocket already running on websites.

If you cannot update right away, turn off both LazyLoad for CSS background images and Host Fonts Locally. Patchstack says its RapidMitigate rule also blocks attempts to exploit this flaw and was in place more than two days before it saw the first attack. Treat those measures as temporary protection and install the update as soon as possible.

Updating closes the flaw, but it does not remove files an attacker may already have planted. If your site ran an affected version with either feature enabled, review web and outbound traffic logs going back to at least November 25.

Look for unusual requests tied to WP Rocket’s page measurements, connections from your server to unfamiliar hosts, and unexpected PHP files in wp-content, especially in wp-content/uploads/ and wp-content/wp-rocket-config/.

Patchstack flagged filenames such as wp-media-*.php as worth checking. If you find a suspicious file, preserve it and the related logs, then ask your hosting provider or incident response team to investigate.

Give your SOC the alert context on the latest threats to stop incidents quickly -> Integrate Threat Intel from 16K SOCs

The post Hackers Exploit WP Rocket Flaw to Run Malicious Code on WordPress Sites Without Logging In appeared first on Cyber Security News.