Hackers Take Advantage of WP Rocket Vulnerability to Execute Malicious Code on WordPress Sites Without Authentication

Try Our Free Tools!
Master the web with Free Tools that work as hard as you do. From Text Analysis to Website Management, we empower your digital journey with expert guidance and free, powerful tools.

A Grave Vulnerability in WP Rocket

A serious flaw in the WP Rocket plugin, designated as CVE-2026-125812 with a CVSS score of 9.8, permits unauthenticated adversaries to inject and execute nefarious PHP code on susceptible WordPress platforms.

WordPress administrators are urged to promptly upgrade the plugin to version 3.24.2 or subsequent iterations, regardless of whether they have observed any signs of an incursion.

The vendor’s advisory indicates that this vulnerability impacts WP Rocket versions ranging from 3.15 to 3.24.1.

This issue manifests when either the LazyLoad for CSS background images or the Host Fonts Locally feature is activated.

The former delays the loading of background images until necessary, while the latter enables Google Fonts to be served directly from the website.

Though both features are disabled by default, the activation of just one poses a significant risk. The remediation for this flaw was released on November 19, 2026.

WP Rocket, known for its capability to enhance site speed by collecting page metrics from visitors’ browsers, was found by Patchstack to inadequately validate certain data within these reports.

On affected sites, this oversight enables an attacker to execute PHP code remotely on the web server without requiring a WordPress account or password, facilitating remote code execution.

Exploitation of the WP Rocket Vulnerability

Patchstack documented its inaugural exploitation attempt on November 25 at 15:27 UTC—merely six days post the deployment of the fix. Initial attempts were largely manual, but an influx of automated assaults ensued within 24 hours.

Most Prolific IP Addresses for Blocked Attacks:

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

On November 26 alone, Patchstack thwarted tens of thousands of malicious requests. It is crucial to note that this number reflects blocked attempts rather than compromised websites.

The report refrains from disclosing how many sites may have been successfully infiltrated. The rapidity of these attacks mirrors a recent vulnerability within the WordPress core that garnered attention immediately following its patch.

This situation notably diverges from a recent backdoor incident involving six WordPress plugins, where WordPress.org effectively halted the distribution of modified releases. Here, the current threat targets extant vulnerable versions of WP Rocket already operational on websites.

For those who cannot upgrade immediately, it is advisable to disable both LazyLoad for CSS background images and Host Fonts Locally.

According to Patchstack, its RapidMitigate rule, instituted over two days prior to the initial attack, also provides a barrier against attempts to exploit this vulnerability.

However, users are advised to consider such measures temporary while proceeding with the upgrade at the earliest opportunity.

While updating the plugin rectifies the vulnerability, it does not eliminate files that an attacker may have previously planted.

Site administrators who utilized an affected version with either feature enabled must scrutinize web and outgoing traffic logs dating back to at least November 25.

A screenshot of the WP Rocket website.

Particular attention should be paid to anomalous requests associated with WP Rocket’s page metrics, unexpected connections from the server to unknown hosts, and unanticipated PHP files within wp-content, especially in directories such as wp-content/uploads/ and wp-content/wp-rocket-config/.

Patchstack recommends verifying filenames such as wp-media-*.php for potential concerns. Should you discover a dubious file, it is imperative to retain it along with the associated logs. Subsequently, notify your hosting provider or incident response team for further investigation.

Source link: Cybersecuritynews.com.

Disclosure: This article is for general information only and is based on publicly available sources. We aim for accuracy but can't guarantee it. The views expressed are the author's and may not reflect those of the publication. Some content was created with help from AI and reviewed by a human for clarity and accuracy. We value transparency and encourage readers to verify important details. This article may include affiliate links. If you buy something through them, we may earn a small commission — at no extra cost to you. All information is carefully selected and reviewed to ensure it's helpful and trustworthy.

Reported By

Souvik Banerjee

I’m Souvik Banerjee from Kolkata, India. As a Marketing Manager at RS Web Solutions (RSWEBSOLS), I specialize in digital marketing, SEO, programming, web development, and eCommerce strategies. I also write tutorials and tech articles that help professionals better understand web technologies.
Share the Love
Related News Worth Reading