Home/ Blog/ Security news/ Article
Blog · Security news

WP Rocket CVE-2026-125812: Unauth RCE Under Active Attack

WP Rocket CVE-2026-125812 is under active attack. Patching to 3.24.2 does not remove planted PHP files. Check exposure, hunt wp-media files, clean up.

Security Brief card reading WP Rocket flaw lets attackers plant code, no login

Updating WP Rocket to 3.24.2 closes CVE-2026-125812. It does not tell you whether someone got in first. The fix shipped on November 19, 2026; Patchstack logged the first exploitation attempt six days later and tens of thousands of blocked attempts the day after that. Any site that ran an older build with one of two optional speed features switched on should be treated as possibly compromised until its file tree says otherwise, because the update does not remove a file an attacker already wrote.

Are you affected by CVE-2026-125812?

Three conditions have to line up. The site runs a WP Rocket build older than 3.24.2. One of two optional features is on: LazyLoad applied to CSS background images, or the Host Fonts Locally setting. And nothing like a virtual patch filters requests in front of it. Patchstack says both features ship disabled, though speed-tuned sites often enable them.

WP Rocket is a premium caching plugin for WordPress, and its own site claims more than 5.5 million sites. The flaw is rated CVSS 9.8 and needs no login. In Patchstack's write-up, Dave Jong describes it as letting an unauthenticated visitor write PHP code to the server and then run it, which is full remote code execution (RCE) as the web server user.

If you host many WordPress sites, the useful filter is the feature flags, not the plugin list. A fleet can carry WP Rocket on hundreds of sites while only a handful have either feature turned on. Those are the ones to check first.

How a speed feature turns into a file write

WP Rocket runs a small script in each visitor's browser that measures the page and reports back to a public WordPress AJAX handler, the rocket_beacon action on admin-ajax.php. The plugin then acts on the URLs in that report, downloading background images or font files so it can serve them from the site itself. According to Patchstack, those URLs were not validated strictly enough, so a forged report can point the site at an attacker's server and have the response saved to disk as a PHP file that later executes.

That design is the lesson worth keeping. An optimization feature that fetches remote files because an anonymous browser asked it to is a server-side download tool with a write step attached. The reporting endpoint has to stay public for the feature to work, so locking down wp-admin or adding a login wall does nothing here.

Six days from a quiet changelog line to automated attacks

The 3.24.2 entry in the WP Rocket changelog covers the fix in a single security line: better checks on the CSS, font and preconnect files the plugin caches. It names no CVE and does not mention code execution. An administrator who reads release notes to decide which updates are urgent could easily have read it as routine. Version 3.24.3 followed on November 26, by which point the attacks were already scripted.

WP Rocket CVE-2026-125812: fix to mass exploitationNov 19: 3.24.2 ships fix. Nov 25: First attack. Nov 26: Automated waves. Nov 27: Patchstack alert.WP Rocket CVE-2026-125812: fix to mass exploitationNov 193.24.2 ships fixNov 25First attackNov 26Automated wavesNov 27Patchstack alert
Sources: WP Rocket changelog, Patchstack (Nov 27, 2026).

Patchstack describes the first attacker on November 25 as working by hand, trying a payload on a few sites and switching to encoded variants when blocked. Within a day it had become automated campaigns. The ten busiest source addresses Patchstack published account for roughly half of what it blocked, with the top one, an Indonesian address, sending 5,352 requests on its own.

Where the payloads come from matters for cleanup. Patchstack has seen them served from raw IP addresses, from nip.io wildcard hostnames, from short-lived trycloudflare.com tunnels, and from WordPress sites it suspects were already hacked. The hacked-site group means one hit site can become the download server for the next victim, so a host that skips the check may be serving attack files to strangers without knowing it.

Hunting for planted wp-media PHP files

Patchstack's indicators are files and network behavior, which suits a self-hosting operator: both can be checked from a shell. The file sweep below lists PHP that appeared after the fix date in the three places Patchstack names, plus anything matching its wp-media-*.php pattern. The log check uses the top attacking addresses Patchstack published.

shell, from the WordPress root: CVE-2026-125812 triage (Patchstack IOCs)
find wp-content -name 'wp-media-*.php'
find wp-content/uploads wp-content/wp-rocket-config -name '*.php' -newermt 2026-11-19
find wp-content -maxdepth 1 -name '*.php' -newermt 2026-11-19
grep 'POST /wp-admin/admin-ajax.php' /path/to/access.log | grep -E '^(103\.235\.74\.7[12]|157\.245\.122\.230|152\.89\.170\.194|180\.232\.236\.101|201\.79\.120\.217|112\.78\.154\.32|167\.71\.75\.155|43\.163\.8\.253|51\.79\.199\.209) '

Read the output as a triage list, not a delete list. The wp-rocket-config directory normally holds the plugin's own per-site PHP config, and WP Rocket maintains its own advanced-cache.php drop-in in wp-content, so compare file names and contents before acting. PHP inside uploads is a different matter: on almost every site it should not exist at all.

Two limits on the log check. Access logs record the POST to admin-ajax.php but not the action name in the request body, so a match on those addresses is a lead, not proof. Patchstack also flags measurement reports from clients that never loaded the page they claim to measure; in a log, that looks like an admin-ajax.php POST from an address with no earlier page request. Attackers rotate addresses, so that pattern ages better than the IP list.

Outbound traffic is the third signal. A web server fetching files from nip.io hosts or trycloudflare.com tunnels has no ordinary reason to do so, and the attack needs that download to happen. Many hosting stacks never log egress from PHP, and that blind spot is why a site can be hit through a public endpoint and show nothing in the places admins usually look. We made the same point about webshell campaigns in our look at mass CMS plugin exploitation: the dropped file, not the request, is the durable evidence. The behavior maps to the MITRE ATT&CK technique for web shells (T1505.003); our MITRE ATT&CK explainer covers how those technique IDs work.

Clean up before you trust the update

  1. Update to 3.24.2 or later. 3.24.3 is the newest release in the changelog at the time of writing.

  2. If you cannot update today, switch off Host Fonts Locally and the CSS background LazyLoad option. That is Patchstack's interim advice, and it removes the two paths the attack uses.

  3. Run the file sweep on every site that had either feature enabled, whether or not it is already updated.

  4. If you find a planted file, treat the site as compromised. Copy the file for evidence, remove it, then rotate the database password in wp-config.php, the WordPress salts and admin passwords, since code running as the web user could read all of them.

Caching plugins keep showing up in this kind of story because they are built to write files and change what a server returns. In July, WP-SHELLSTORM's own logs showed a cache-plugin flaw behind far more backdoored sites than a max-severity bug, and in September a WP Fastest Cache flaw (CVE-2026-74916) let attackers poison pages served to every visitor. Treat performance plugins with the same scrutiny as security plugins: they run on every request, and they hold write access to your web root.

Topics

Frequently asked questions

What is WP Rocket CVE-2026-125812?

CVE-2026-125812 is a critical flaw in the WP Rocket caching plugin for WordPress, rated CVSS 9.8. An attacker with no login can make the site download attacker-controlled content and save it as a PHP file, which then runs on the server. It affects versions before 3.24.2.

Which WP Rocket sites are vulnerable to CVE-2026-125812?

Sites running WP Rocket older than 3.24.2 are vulnerable only if LazyLoad for CSS background images or Host Fonts Locally is enabled. Patchstack says both features are off by default but common on speed-tuned sites. Sites with neither feature on are not exposed through this flaw.

Is CVE-2026-125812 being exploited?

Yes. Patchstack recorded the first exploitation attempt on November 25, 2026, at 15:27 UTC, six days after the fix shipped. By November 26 it was blocking tens of thousands of attempts in a single day from automated campaigns.

Does updating WP Rocket remove an existing compromise?

No. Updating to 3.24.2 or later stops new attacks, but it does not delete PHP files an attacker already planted. Sites that ran a vulnerable build with either affected feature on should check wp-content, wp-content/uploads and wp-content/wp-rocket-config for unexpected PHP such as wp-media-*.php.

How can I mitigate CVE-2026-125812 if I cannot update yet?

Turn off both LazyLoad for CSS background images and Host Fonts Locally in WP Rocket settings. Those two features are the only paths the attack uses, according to Patchstack. Then update to 3.24.2 or later as soon as possible and run a file sweep for planted PHP.

See what Suriq finds on your own servers.

Agentless checks for uptime and your cloud, a lightweight agent for detection on each server, and one console that ranks and explains what it finds.