Hackers Target Critical WP Rocket Flaw Allowing Unauthenticated Remote Code Execution
“Unauthenticated remote code execution” means an attacker can make a computer system run their code without first signing in. “Remote” means the attack comes through a network, and “code execution” means the target carries out instructions. This is a general security definition; the article applies it to WordPress sites. In this case, CVE-2026-125812 lets unauthenticated attackers write and execute PHP code on affected sites. A crafted report sent to WP Rocket’s public AJAX endpoint can cause the site to download content from an attacker-controlled server and save it as a PHP file. This matters because an attacker does not need a legitimate account to trigger the flaw. The article reports large-scale automated attempts, including tens of thousands blocked on November 26, 2026. The risk applies to vulnerable plugin versions with certain settings enabled. Updating to version 3.24.2 stops new attacks through this flaw, but site owners should also check for signs of existing compromise.
What does “unauthenticated remote code execution” mean, and why is it dangerous?
“Unauthenticated remote code execution” means an attacker can make a computer system run their code without first signing in. “Remote” means the attack comes through a network, and “code execution” means the target carries out instructions. This is a general security definition; the article applies it to WordPress sites.
In this case, CVE-2026-125812 lets unauthenticated attackers write and execute PHP code on affected sites. A crafted report sent to WP Rocket’s public AJAX endpoint can cause the site to download content from an attacker-controlled server and save it as a PHP file.
This matters because an attacker does not need a legitimate account to trigger the flaw. The article reports large-scale automated attempts, including tens of thousands blocked on November 26, 2026. The risk applies to vulnerable plugin versions with certain settings enabled. Updating to version 3.24.2 stops new attacks through this flaw, but site owners should also check for signs of existing compromise.
Which WP Rocket versions and settings leave a site vulnerable to this flaw?
Sites running any WP Rocket version earlier than 3.24.2 are in the affected range; the fixed release came out November 19, 2026. The article identifies an additional condition: the site must have either LazyLoad for CSS background images or Host Fonts Locally enabled. Both settings are off by default.
For example, a site using version 3.24.1 with Host Fonts Locally turned on meets the conditions described in the advisory. The same is true for an older version with CSS background-image LazyLoad enabled. The issue involves how these features use information reported by a small script in visitors’ browsers.
Patchstack says both features are common on performance-tuned sites, so default-off status does not remove the risk for every installation. Site owners should check the plugin version and those settings, then install 3.24.2 or later. The article says the update stops new attacks, but it does not remove files attackers may already have planted.
How could a fake browser report make a vulnerable site download and run an attacker’s PHP file?
WP Rocket runs a small script in visitors’ browsers to measure pages and send results to a public AJAX endpoint. The plugin then uses those results to optimize the page. The article says the flaw is in how strictly the plugin checks the reported URLs.
An attacker can send a crafted report that names a URL under the attacker’s control. Because the URL is not validated strictly enough, the site can be made to download content from that server and save it as a PHP file. The file can then be executed on the site. Patchstack links the method to CSS background lazy loading and local hosting of Google Fonts.
The flaw affects versions before 3.24.2 when either relevant feature is turned on. Exploitation was first recorded on November 25, 2026, against WP Rocket’s measurement endpoint, and later attempts became automated and widespread. Updating prevents new attacks through this vulnerability, but site owners should also inspect for unexpected PHP files and review historical logs.
How widely is WP Rocket used, and how many attack attempts were reported?
WP Rocket’s website says the premium caching plugin is used by more than 5.5 million WordPress sites and over 386,000 customers worldwide. That broad use makes the flaw relevant to many site owners, although the article does not say how many installations meet the vulnerable version and settings conditions.
Patchstack recorded the first exploitation attempt on November 25, 2026, at 3:27 p.m. UTC. It said attacks targeted WP Rocket’s measurement endpoint. Activity then escalated into large-scale automated efforts, with tens of thousands of attempts blocked on November 26 alone.
Wordfence reported blocking 135 attacks targeting this vulnerability in the past 24 hours, according to its advisory. These are reported attack attempts or blocks, not a count of confirmed compromised sites. The article lists ten IP addresses associated with the activity. It also advises owners of sites that ran vulnerable versions without protection to check relevant directories and review historical logs.
What could an attacker do after gaining the ability to run code on a website?
The article establishes that this flaw lets unauthenticated attackers write and execute PHP code on affected sites. In general security terms, code running on a server may be able to access or change resources available to the website’s account. The exact reach depends on the site’s configuration and permissions; the article does not detail those limits.
In this attack, the attacker can make the site download content from an attacker-controlled server and save it as a PHP file for execution. That gives the attacker a way to run code on the affected site, rather than merely send it a request. The article identifies unexpected PHP files named “wp-media-*.php” as a possible sign of compromise.
The reported facts do not establish specific follow-on actions, such as data theft or changes to site content, so those should not be assumed. What is clear is that the ability to execute code makes the flaw critical: it has a CVSS rating of 9.8, and exploitation attempts escalated into automated activity. Updating and checking for planted files are both important.
Why might installing the security update not be enough to fully clean a site that was already attacked?
Installing WP Rocket 3.24.2 fixes the vulnerability, but a software update is not the same as cleaning up a site that was already compromised. Patchstack explicitly warns that the update stops new attacks but does not remove files an attacker has already planted.
The advisory identifies unexpected PHP files named “wp-media-*.php” as an indicator to look for. It lists three locations: wp-content/wp-rocket-config/, wp-content/uploads/, and wp-content/. Patchstack also flags suspicious “rocket_beacon” requests from clients that never loaded the page they report on, along with outbound requests to unfamiliar hosts or certain tunnels.
For a site that ran a vulnerable version without protection, Patchstack recommends checking those directories and reviewing historical logs. These checks help address possible past activity that a plugin update cannot undo. The article does not describe a complete cleanup procedure, so it points site owners toward inspection rather than claiming the update alone makes a previously attacked site clean.
What is PHP, and why can a web server execute PHP files?
PHP is a programming language often used to create features that run on a website’s server. This is general background beyond the article, which does not define PHP. In a typical setup, a web server passes PHP files to a PHP interpreter or related processing software, which runs the instructions and produces a result for the site.
That server-side role is why the reported flaw is serious. Patchstack says an attacker can make a vulnerable site download content from an attacker-controlled server and save it as a PHP file for subsequent execution. The article specifically identifies unexpected files named “wp-media-*.php” as a possible indicator of compromise.
The article does not describe the server configurations involved or explain PHP’s internal operation. It does say the update stops new attacks but does not remove files already planted. Site owners who ran a vulnerable version without protection should check the listed directories and review historical logs, rather than assuming an update has removed a malicious PHP file.
This brief was written by AI from the original reporting and checked by other models. Names, figures and quotes come from the source; read it for full context.
Read more in the JupiteX app
Pulse is free. New stories every 4 hours, each one broken into the questions that explain it.
Or read more news on the web