WP Rocket plugin flaw exploited to run PHP code (CVE-2026-125812)
At a glance
| Severity | CRITICAL |
|---|---|
| CVSS | CVE-2026-125812: 9.8 |
| EPSS (30-day exploit probability) | CVE-2026-125812: 1.3% |
| In CISA KEV (exploited) | No |
| Vendor | WordPress |
| CVE IDs | CVE-2026-125812 |
Primary-source details
- CVE-2026-125812: CVSS 9.8 (Critical), per NVD; a fixed version has not been published.
The WP Rocket vulnerability tracked as CVE-2026-125812 is being exploited in the wild, according to BleepingComputer. It lets an unauthenticated attacker write and run PHP code on a WordPress site, and it is rated CVSS 9.8. Versions before 3.24.2 are affected when certain optional features are on, and the vendor has shipped a fix.
What happened
WP Rocket is a paid caching and performance plugin from WP Media. The company says it runs on more than 5.6 million sites and has 394,000 customers. The flaw comes from insufficient validation of data sent to a public endpoint. An attacker can use that to make the site download PHP code from an external location and execute it. NVD classifies the weakness as path traversal (CWE-22).
WP Media released fixes on November 19 and published an advisory over the weekend before the BleepingComputer report of November 30. Patchstack, a WordPress security firm, saw the first low-scale, manual exploitation attempts on November 25 at 15:27 UTC. By the next day the activity had grown into fully automated campaigns. Patchstack says its platform has blocked more than 25,000 malicious requests from multiple attackers.
Is WP Rocket affected? Am I affected?
- WP Rocket versions before 3.24.2 are vulnerable.
- Exposure depends on settings. The site is reachable only if the LazyLoad for CSS background images option or the Host Fonts Locally option is enabled. Both are off by default.
- Sites running 3.24.2 or later are not in the affected range.
Attackers are not guessing which option you use. Patchstack reports that the attacks target both feature paths, sometimes in a single request, so that whichever option is enabled gives them a way in.
Technical details
- Attack vector: network, no authentication and no user interaction (
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H). - Impact: arbitrary PHP code execution in the context of the web application.
- Payload hosting: Patchstack says payloads are served from bare IP addresses, wildcard DNS names such as nip.io, temporary trycloudflare.com tunnels, and other WordPress sites that are probably compromised.
- Fix: WP Rocket 3.24.2.
Patchstack has also published attacker IP addresses that site owners can add to a blocklist. We have not reproduced them here; take them from the Patchstack write-up.
Why this matters
Analysis, not new facts. Remote code execution without authentication is the worst case for a public web plugin, and exploitation began within days of the fix. The option gate lowers the number of exposed sites, but anyone who turned on font hosting or CSS background lazy loading for performance is in scope. Hosting agencies and managed WordPress providers should check every client site, not only the ones they remember configuring.
Treat any internet-facing site on a vulnerable version with one of those options as a candidate for compromise, not just for patching. Updating does not remove files an attacker has already planted.
How to fix the WP Rocket vulnerability: what to do
- Update WP Rocket to 3.24.2 or later on every site. For sites that are exposed, do this within hours rather than waiting for a maintenance window.
- If you cannot update yet, turn off LazyLoad for CSS background images and the self-hosted Google Fonts option under WP Rocket > Page Optimization > Image & Media > Media. WP Media also released a helper plugin to apply this mitigation across many sites at once.
- Hunt for compromise. Updating does not delete previously planted files. If a site ran a vulnerable version with either option active, review web server logs for unusual requests to the plugin’s endpoints since at least November 25, 2026, and look for outbound connections from the web server to raw IP addresses, nip.io names or trycloudflare.com tunnels.
- Check the filesystem for PHP files you do not recognise in upload, cache and plugin directories, and for modified files and new administrator accounts.
- Block the attacker IP addresses published by Patchstack at your firewall or WAF as a stopgap, not a replacement for patching.
- If you find a webshell, restore from a known-good backup, rotate WordPress, database and hosting credentials, and tell the site owner.
What is still unknown
The attackers have not been identified, and no victim has been named in the reporting.
Related coverage
Sources
- BleepingComputer: Hackers exploit critical WordPress WP Rocket flaw to breach sites
- NVD: CVE-2026-125812
- Patchstack: WP Rocket 3.24.2 remote code execution vulnerability
