Critical Vulnerability in WP Rocket Plugin Targeted by Cybercriminals
Cyber attackers are currently exploiting a significant security vulnerability, designated as CVE-2026-125812, within the WP Rocket caching plugin, which enables the execution of arbitrary PHP code on WordPress websites.
WP Rocket is a premium plugin intended to enhance website efficiency through various mechanisms, including page caching, CSS optimization, and lazy loading of images.
It has garnered a substantial user base; according to the plugin’s developer, WP Media, it is utilized on over 5.6 million websites by approximately 394,000 customers.
The vulnerability stems from inadequate validation of data transmitted to a public endpoint, enabling unauthenticated attackers to execute PHP code sourced externally.
It is critical to note that the flaw affects WP Rocket versions prior to 3.24.2, specifically when the ‘LazyLoad for CSS background images’ or ‘Host Fonts Locally’ features are activated; however, both functions are disabled by default.
On November 19, WP Media addressed this security flaw by releasing patches and subsequently published an advisory over the weekend, urging users to upgrade to version 3.24.2 or later.
On November 25, the cybersecurity firm Patchstack detected preliminary low-volume, manual exploitation attempts at 15:27 UTC, which rapidly escalated to fully automated campaigns on the subsequent day.
Researchers reported that the attacks specifically targeted both vulnerable features, frequently within a singular request, thereby allowing the exploit to activate if either option was enabled on the compromised site.
“Attackers utilize both feature pathways, sometimes in a single request, ensuring that whichever feature is enabled on a site, one of them executes,” Patchstack stated.
“They host their malicious payloads on exposed IP addresses, wildcard DNS names such as nip.io, and temporary tunnels like trycloudflare.com, along with other potentially compromised WordPress sites.”
Users who are unable to install the latest version of WP Rocket immediately should disable LazyLoad for CSS background images and Self-host Google Fonts by navigating to WP Rocket > Page Optimization > Image & Media > Media tab.
The vendor has also provided a helper plugin designed to assist those overseeing multiple websites in mitigating the risk of exploitation across all sites.
Patchstack further advises listing and blocking the IP addresses of attackers identified during this campaign.

Importantly, updating to a secure version will not eliminate previously installed malicious files. Consequently, administrators who had operated the vulnerable version, particularly with either of the exploitable options active, should meticulously examine their logs for any suspicious requests and outgoing connections.
Patchstack has cautioned that large-scale, automated attacks are already underway, with their security platform having intercepted more than 25,000 malicious requests from various attackers.
Source link: Bleepingcomputer.com.



