WP Rocket CVE-2026-125812: Attackers Exploit CVSS 9.8 Flaw to Run PHP Without Logging In
TL;DR
- What: Attackers are exploiting CVE-2026-125812, a critical unauthenticated remote code execution flaw in the WP Rocket caching plugin for WordPress.
- Impact: A crafted report can make an exposed site download attacker-supplied content and save it as a PHP file that can then be executed.
- Fix: WP Rocket 3.24.2, released November 19, 2026, stops new attacks but does not remove files planted before the update.
- Who: Sites running WP Rocket versions before 3.24.2 with LazyLoad for CSS background images or Host Fonts Locally turned on.
Attackers are exploiting a critical flaw in WP Rocket, a premium WordPress caching plugin, that lets them write and execute PHP code on affected sites without logging in.
CVE-2026-125812 is rated 9.8 on the CVSS scale and affects versions before 3.24.2, which was released on November 19, 2026. Exposure depends on two optional features, described below.
Patchstack recorded the first exploitation attempt on November 25 at 3:27 p.m. UTC, six days after the release. The activity then escalated into large-scale, automated efforts, with tens of thousands of attempts blocked on November 26 alone.
Sites that were vulnerable during this activity face two separate questions: whether they are now patched, and whether an attacker planted a file first.
Exposure depends on two optional features
WP Rocket's website says the plugin is used by more than 5.5 million WordPress sites and over 386,000 customers worldwide. That is the total install base, not a count of exploitable sites.
The source reporting does not say how many sites run a vulnerable version with a relevant feature enabled, and it gives no number of confirmed compromises.
According to Patchstack researcher Dave Jong, the flaw affects versions before 3.24.2 on sites where at least one of these features is turned on:
- LazyLoad for CSS background images.
- Host Fonts Locally, which handles local hosting of Google Fonts.
Both features are off by default, which narrows the exposed population. Patchstack says both are common on performance-tuned sites, so the default settings say little about any individual deployment.
A site's plugin version and its feature configuration, including its configuration while it ran a vulnerable version, both matter when assessing past exposure.
How a performance report becomes a PHP file
The flaw sits in WP Rocket's page measurement process. The plugin runs a small script in visitors' browsers to measure each page. The script reports its results to a public AJAX endpoint, and the plugin uses them to optimize the page.
WP Rocket does not validate the URLs in those reports strictly enough. An attacker can send a crafted report that makes the site download content from an attacker-controlled server and save it as a PHP file for subsequent execution. Patchstack says both optional features can be abused this way.
This sequence crosses several trust boundaries. Data sent to a public endpoint influences a server-side download, and the downloaded content is saved in a form the server can execute. The attacker does not need a WordPress account.
The download also means the web server makes an outbound request as part of the attack, so inbound web logs may capture only part of the activity.
Code execution gives an attacker a foothold in the site's PHP environment. How far that access reaches depends on the permissions and isolation of the hosting environment.
The source reporting does not describe what attackers did after gaining execution, name a threat actor or identify a final payload. It does not establish data theft, ransomware deployment or lateral movement.
⚠️ A patched site may still be compromised - Patchstack warns: "The update stops new attacks, but it does not remove files an attacker already planted." The current plugin version does not show whether a site was compromised before it was updated.
Six days from release to recorded attack
The published dates show how quickly the risk changed:
- November 19: WP Rocket 3.24.2 is released.
- November 25, 3:27 p.m. UTC: Patchstack records the first exploitation attempt, directed at the plugin's measurement endpoint.
- November 26: Tens of thousands of attempts are blocked in one day.
- December 1: The Hacker News reports active exploitation and cites a Wordfence advisory listing 135 blocked attacks in the previous 24 hours.
The Patchstack and Wordfence figures should not be read as a trend line. They come from different companies, and the source does not provide comparable coverage or counting methods. The lower Wordfence number does not show that the campaign is fading. Both figures count blocked attacks, so neither measures successful compromises.
The November 25 timestamp has limits too. It marks the first attempt Patchstack recorded, which does not rule out earlier activity elsewhere. For any given site, the period of concern depends on when it was running a vulnerable version with at least one of the two features enabled.
Published indicators of compromise
Patchstack's indicators cover three parts of the attack: inbound requests, outbound connections and files on disk.
- Inbound:
rocket_beaconrequests from clients that never loaded the page they report on. - Outbound: web server requests to unfamiliar hosts,
nip.iodomains, temporarytrycloudflare.comtunnels or other possibly compromised WordPress sites. - On disk: unexpected PHP files matching
wp-media-*.phpinwp-content/wp-rocket-config/,wp-content/uploads/orwp-content/.
Context matters with the request indicator. The measurement script reports to the endpoint as part of its intended function, so a rocket_beacon request alone does not prove an attack. The suspicious pattern is a client reporting on a page it never loaded.
Page caching or a content delivery network can complicate that comparison, because some page views may not appear in the origin server's logs.
The report lists 10 source IP addresses:
- 103.235.74.71 and 103.235.74.72
- 157.245.122.230 and 167.71.75.155
- 152.89.170.194 and 180.232.236.101
- 201.79.120.217 and 112.78.154.32
- 43.163.8.253 and 51.79.199.209
These addresses are useful leads, but they do not define the full scope of the activity. Attackers can change infrastructure, and a site with no matching traffic has not been cleared. The address list alone does not support attribution to a particular actor or country. A match shows contact from a listed source, not successful code execution.
Vendor fix and remaining risk
WP Rocket 3.24.2 is the fixed release. Patchstack says updating stops new attacks. For sites that ran a vulnerable version without protection, its guidance also covers reviewing the three listed directories and historical logs, because the update does not remove planted files.
Patch status and compromise status are separate - Version 3.24.2 addresses exposure to new attacks through this flaw. Whether a site was compromised earlier depends on file, request and outbound connection evidence from the period when it was vulnerable. Missing logs leave that question open.
For IT managers, a report that every site is now on 3.24.2 answers only the first question. Business risk also depends on which sites were exposed, what evidence survives from that period and what each hosting environment could access.
For sites managed by agencies or hosting providers, that information may be split between several parties. An update record alone cannot close the compromise question.
Originally published on RedEye Threat Intelligence.
Comments
No comments yet. Start the discussion.