ShieldPack SHIELD PACK
From 1401 onwards.

Where would you like to start?

Services, updates, and ways to contact us, all in one place

Pricing and orders →

Use the bot or chat with us—whichever you prefer

ShieldPack posts

Hackers Target Critical WP Rocket Flaw Allowing Unauthenticated Remote Code Execution

About 3 min read

Hackers are actively exploiting a newly patched critical vulnerability in the WP Rocket caching plugin for WordPress, allowing unauthenticated attackers to write and run PHP code on vulnerable sites.
The flaw, identified as CVE‑2026‑125812, carries a CVSS score of 9.8, marking it as extremely severe. It impacts every version of WP Rocket released before 3.24.2. The safe version was made available on 19 November 2026. WP Rocket’s own data shows the premium caching plugin powers more than 5.5 million WordPress installations and serves over 386 000 customers worldwide.
According to Patchstack researcher Dave Jong, the vulnerability lets attackers inject PHP without any authentication. The issue is triggered only when a site has either the “LazyLoad for CSS background images” feature or the “Host Fonts Locally” option enabled. Both features are turned off by default, but they are frequently activated on sites that prioritize performance.
The root cause is a small script the plugin runs in visitors’ browsers. The script measures each page load and sends the results to a public AJAX endpoint for optimization. The plugin fails to strictly validate the URLs reported by the script. An attacker can therefore craft a report that instructs the site to download a file from a malicious server and store it as a PHP file on the target. Once stored, the malicious file can be executed on the server, giving the attacker full control.
Two optimization features can be abused in this way: CSS background lazy loading and local hosting of Google Fonts. Both are optional settings that, when enabled, open the path for the crafted report to be accepted. The vulnerability does not affect sites that keep these features disabled.
The first recorded exploitation attempt occurred on 25 November 2026 at 15:27 UTC, targeting WP Rocket’s measurement endpoint. Within 24 hours the activity escalated dramatically. On 26 November 2026 alone, tens of thousands of automated attempts were blocked. Wordfence reported that it stopped 135 attacks against the flaw in the preceding 24‑hour window.
Hackers Target Critical WP Rocket Flaw Allowing Unauthenticated Remote Code Execution
Patchstack released a set of indicators of compromise to help defenders detect abuse. The advisory notes that while the 3.24.2 update blocks new attacks, it does not automatically delete any malicious PHP files that may already have been placed on a compromised site. Administrators are urged to inspect directories above the plugin’s location and review historical logs for suspicious activity.
For site owners using WP Rocket, the immediate action is to upgrade to version 3.24.2 or later. After updating, they should verify that the “LazyLoad for CSS background images” and “Host Fonts Locally” settings are configured as intended. If either feature is enabled, a manual audit of the file system is recommended to locate and remove any rogue PHP files that may have been uploaded before the patch.
The broader implication for the WordPress ecosystem is a reminder that even widely trusted performance plugins can become attack vectors when they expose public endpoints without proper input sanitisation. Security teams should monitor AJAX endpoints for unexpected payloads and enforce strict URL validation.
Cybersecurity firms note that the rapid emergence of automated exploitation underscores the importance of timely patch deployment. Organizations that delayed updating WP Rocket beyond the 19 November release left themselves exposed to a high‑severity remote code execution risk.
Overall, the WP Rocket vulnerability illustrates how a single mis‑validated parameter can open a path to full server compromise. The incident highlights the need for developers to treat any data received from browsers as untrusted, and for site operators to maintain vigilant patching practices, especially for plugins that handle performance optimisation at scale.

Source: The Hacker News · Cybersecurity

ShieldPack media