9.8

CVSS 3.1 base score, unauthenticated code execution

6

days between the fixed release and the first attack

5.6M+

websites using WP Rocket, per the vendor

2

optional features that expose a site, per the vendor

Why WP Rocket sites missed a patch that was already out

WP Rocket shipped the fix for CVE-2026-125812 on 19 Nov 2026. The first attack Patchstack recorded came on 25 Nov. Six days is a long head start for a fix, and on thousands of sites it still was not enough. The reason is not a missing patch. It is where the patch had to travel.

CVE-2026-125812 lets anyone on the internet, with no account, make a WordPress site write a PHP file and then run it. That is the worst class of bug a web application can have, and it lives in one of the most widely installed performance plugins in the WordPress world. WP Rocket says it is used on more than 5.6 million websites. Even a small share of those running an exposed configuration is a large target.

Most WordPress owners have a mental model of updates that goes like this: core updates itself, plugins from the WordPress.org directory show an update badge, and a managed host or a security plugin catches the rest. WP Rocket sits partly outside that model. It is a paid plugin from WP Media, and its updates arrive through the vendor's own licensed channel. ZeroPath's analysis of the flaw notes that WP Rocket opts out of unattended automatic updates and that an expired licence removes update access. The vendor's own advisory carries a separate workaround for sites that cannot update.

So our position is plain. Treat a paid plugin as its own patch stream, with an owner and a check, because the default WordPress update habits do not cover it. CVE-2026-125812 is the proof: the fix existed, the attackers knew where the stragglers were, and the stragglers were the sites whose plugin did not update itself.

What WP Rocket and Patchstack disclosed

The WP Rocket security advisory says the flaw affects WP Rocket 3.15 through 3.24.1 on sites where at least one of two optional features is enabled: LazyLoad for CSS background images, or self-hosting of Google Fonts. Where either is on, the vendor says, "an attacker can execute arbitrary code on the affected website without authentication." The fix is WP Rocket 3.24.2, which the advisory says was released on 19 Nov 2026. The vendor's public changelog lists 3.24.2 on the same date with one security line: improved validation of cached CSS, font and preconnect files. It does not name the CVE.

The flaw was reported to Patchstack's bug bounty program on 4 Nov 2026, according to both IT-Connect and ZeroPath, and Patchstack published its advisory on 23 Nov. The CVE record lists a CVSS 3.1 base score of 9.8, network reachable, low complexity, no privileges and no user interaction. ZeroPath classes the root cause as CWE-22, path traversal.

Then came the attacks. In its write up of the campaign, Patchstack says its telemetry caught the first exploitation attempt on 25 Nov 2026 at 15:27 UTC. The first attacker worked by hand, then retried with encoded variants. Within a day the activity had turned into automated campaigns, and Patchstack says it blocked "tens of thousands" of attempts on 26 Nov alone. Its top ten source addresses account for roughly half of everything it blocked, and the busiest single address sent 5,352 blocked requests.

Two details from that timeline matter. Patchstack says its own mitigation rule for the flaw was live more than two days before the first attack arrived. And the first attack came two days after the advisory, not two days after the fix. Attackers moved on the public description of the bug. The fix had been sitting on WP Media's update servers for most of a week by then.

CVE-2026-125812Critical
  • Product //

    WP Rocket, the paid WordPress caching and performance plugin from WP Media
  • Affected //

    3.15 to 3.24.1 with an exposed feature on, per the vendor; every version before 3.24.2, per ZeroPath
  • Fixed in //

    3.24.2, released 19 Nov 2026
  • CVSS //

    9.8 (3.1, from the CVE record)
  • Login needed //

    No
  • Exploited //

    Yes, per Patchstack, since 25 Nov 2026; not on CISA KEV at the time of writing

How CVE-2026-125812 turns a beacon into PHP

WP Rocket measures pages as visitors load them. A small script in the browser reports what it saw, such as which elements carry background images and which fonts the page uses, back to the site through WordPress's public AJAX endpoint. The plugin then fetches those resources and stores copies on the server so it can serve them faster. That is the feature working as designed.

The flaw is in what the plugin trusted. Patchstack says the plugin did not validate the values in those reports "strictly enough." ZeroPath, reading the fix, says the code that builds a cache path joined the reported host and path onto the cache folder without resolving parent directory segments, without checking the host, and without limiting the file name or extension. The same pattern sat in the code that stores Google Fonts locally. Put together, a crafted report could make the site fetch content from a server the attacker controls and save it as a PHP file in a place the web server will execute.

We describe what each stage achieves and leave the requests out.

Figure 01

From an anonymous report to code on the site

  1. 01

    Report //

    An anonymous client posts page data to the public endpoint.

  2. 02

    Steer //

    Unchecked values point the cache writer at the attacker.

  3. 03

    Write //

    The fetched content is saved as a PHP file in wp-content.

  4. 04

    Run //

    One web request executes the file as the site.

Result //

No account in, code running as the web server out.

Steps 02 and 03 are the bug. Everything after them is ordinary PHP doing what the attacker wrote.

The fix in 3.24.2 closes the middle of that chain. Per ZeroPath, it validates the host and the path, refuses PHP extensions, and checks that a downloaded font really looks like a font before saving it. Each of those checks alone would have broken the chain. That is a useful lesson for anyone who writes code that saves remote content to disk: the file name, the folder and the content type are three separate decisions, and the attacker only needs one of them to be wrong.

Once the file runs, the attacker has whatever the web server account has. On a typical WordPress host that means the database credentials in wp-config.php, every file the site can write, and a place to plant more files that survive the plugin update. That last point is the one site owners miss most often. The update stops the bug. It does not remove what came in through it.

Is your site affected by CVE-2026-125812?

Start with the version. Open the Plugins page in WordPress and read the WP Rocket version, or check the plugin header on disk. Anything at 3.24.2 or later has the fix.

If the version is older, the vendor's answer depends on two settings. WP Rocket says the documented attack paths need LazyLoad for CSS background images or self-hosted Google Fonts to be on. Both live under WP Rocket, Page Optimization, Image and Media in current builds, and under the Media tab before 3.24. Patchstack notes that both are off by default but common on sites that have been tuned for speed, which is exactly the kind of site that buys a performance plugin.

ZeroPath and IT-Connect take the more conservative view: the vulnerable code is in every version before 3.24.2, and the version number is the only reliable test. We agree with them for a practical reason. Settings change. A site that had one of the features on last month and off today may have been exposed in between, and nobody keeps a history of a caching plugin's checkboxes. If the site ran an old build while the campaign was live, assume it was in range and check it.

Three situations deserve extra care:

  • Expired licences. The vendor's advisory has a separate path for sites that cannot update: turn both features off, or install the vendor's mitigation helper plugin, which does the same thing. A site with a lapsed licence will not see the update in the dashboard at all.
  • Multisite networks. The helper plugin has to be activated on each subsite, per the vendor. A network administrator who activates it once at the top has not covered the network.
  • Agency and reseller fleets. Agencies often install a licensed copy across client sites and lose track of the licence when the client relationship ends. Those sites keep running the plugin and stop getting its updates.

On the severity scale we use across the site, this is critical: unauthenticated, network reachable, code execution, confirmed exploitation. If the site is old and the features were on at any point since 25 Nov, treat it as a site that needs checking, not a site that needs a patch.

How to check a WordPress site for planted PHP

Patchstack's guidance is specific, and it is where we would start. Look for unexpected PHP files in wp-content/wp-rocket-config/, in wp-content/uploads/, and directly in wp-content/ itself, with file names such as wp-media-*.php. None of those folders should be gaining PHP files on a normal day. The uploads folder in particular should hold media, and a PHP file there is a finding on any site, whatever plugin put it there.

Patchstack adds two network signals. The first is outbound traffic from the web server to unfamiliar hosts, to names under nip.io, or to tunnels under trycloudflare.com, because the planted content is fetched by the site itself. It also says payloads were served from bare IP addresses and from other WordPress sites that were likely compromised. The second is traffic to the measurement endpoint that does not fit a real visitor: reports from clients that never loaded the page they claim to describe, or reports carrying full URLs where the plugin expects bare host names. Every attempt went to wp-admin/admin-ajax.php.

A caution on logs. Those beacon reports arrive in the body of a POST request, and a standard access log does not record the body. A web server log will show a burst of POST requests to admin-ajax.php and nothing more. File creation and outbound connections are where this attack leaves a clear trace, so the rules below look there.

Figure 02

New PHP files where WP Rocket exploitation plants them, and the outbound fetch

Sigma

title: PHP file created in a WordPress content folder that should not gain code
status: experimental
description: Flags new .php files under wp-content/uploads, wp-content/wp-rocket-config or named wp-media-*.php, the locations Patchstack lists for CVE-2026-125812.
logsource:
  product: linux
  category: file_event
detection:
  selection_ext:
    TargetFilename|endswith: '.php'
  selection_path:
    - TargetFilename|contains:
        - '/wp-content/uploads/'
        - '/wp-content/wp-rocket-config/'
    - TargetFilename|contains: '/wp-content/wp-media-'
  condition: selection_ext and selection_path
falsepositives:
  - Plugin installs or updates that write PHP into wp-content during a change window
level: high
---
title: Web server fetching from tunnel or wildcard DNS hosts
status: experimental
description: Flags outbound requests from WordPress web servers to nip.io or trycloudflare.com names, which Patchstack saw used to host payloads.
logsource:
  category: proxy
detection:
  selection:
    cs-host|endswith:
      - '.nip.io'
      - '.trycloudflare.com'
  condition: selection
falsepositives:
  - Developers testing with tunnels from a shared host
level: medium
A starting point to tune against your own telemetry, not a production rule. Scope the second rule to your web server addresses.

If you do not have file events from your web hosts, a manual check still works. List every PHP file under wp-content/uploads and wp-content/wp-rocket-config, sort by modification time, and look hard at anything from 25 Nov 2026 onward. Then compare the plugin and theme folders against clean copies from the vendor. ZeroPath also points out that page caching can copy infected content into cache files, so clearing the cache belongs in the cleanup, after the planted files are gone, not before.

If you find something, the vendor's general advice for a hacked site applies: stop preloading, clear the cache, deactivate WP Rocket, clean the site, and turn the plugin back on only once the site is clean. Then rotate the database password and the authentication keys in wp-config.php, because a PHP file running as the site could read both. Our web app persistence audit covers what else to look for: an extra administrator, a changed setting, a scheduled task the site did not have before.

Why paid plugins fall out of the update habit

None of this is unique to WP Rocket. It is the shape of every premium WordPress plugin and theme: the code runs inside the same site as everything else, with the same access to the database and the file system, but it updates through a different door.

That door has three properties that matter to a defender. It is gated by a licence, so the update stops arriving when someone forgets to renew. It is often excluded from unattended updates, so even an active licence needs a person to click. And it is less visible to inventory, because scanners and dashboards that track plugins by their WordPress.org listing have nothing to compare a paid plugin's version against. The result is a plugin that is installed everywhere, trusted with everything, and patched only when somebody remembers.

Attackers read release notes and advisories the same way defenders do. A vague changelog line, "improve validation of cached CSS, font and preconnect files", tells a careful reader where to look, and a public advisory four days later confirms it. The window that matters is not the one between disclosure and patch. It is the one between the fixed release and the day the last site installs it, and for a licensed plugin that second date can be months away.

We made a related point about WordPress core in our read of the core upgrade race: the moment a CMS changes state is where attackers wait. Our Drupal installer piece found the same pattern in a different place, a setup page still listening on a live site. WP Rocket adds a third version. The weak point is not the update itself. It is the plugin that never gets one.

There is also a quieter cost. A performance plugin earns its place by rewriting how a site serves pages, which means it touches the response path, the file system and outbound fetches all at once. That is a lot of reach for a component that most organisations classify as a marketing tool, bought on a card, owned by whoever built the site. When we ask who owns a client's WordPress plugins, the answer is often an agency that no longer works there.

How we test WordPress estates on an engagement

On an external test, the first job is the inventory, and it is rarely the main site that matters. The campaign site from two years ago, the regional office blog and the event microsite built by an agency are where old plugins live. Our open source recon tool, atarus-recon, maps what an organisation exposes on the internet, and every WordPress install it finds goes on a list with a named owner or a note that nobody could name one.

For each site we fingerprint plugins and versions from what the site serves publicly, then compare them with vendor changelogs, including the paid plugins that public vulnerability feeds track less well. Where a version is in range for a known critical flaw, we report it as a finding with the evidence we gathered and stop there. We do not send exploitation attempts to a production site to prove a point, and we do not plant files: a test that leaves PHP on a client's server would be the damage we are hired to prevent. The approach is the same as our path traversal and file read checks and our file upload review: show that the path exists, with the least possible touch.

The finding we write most often is not the CVE. It is the process gap behind it: a licensed plugin with no owner, an expired licence, a site that the security team did not know existed. Fixing the CVE closes this week's problem. Giving every paid plugin an owner and a renewal date closes the next one.

When a client wants assurance about a site that may already have been touched, we move from external testing to a review on the host itself: file integrity against vendor copies, new administrator accounts, scheduled tasks, and the outbound connections the web server has made. That is slower than a scan and far more useful after a campaign like this one.

What to do today

  1. Update WP Rocket to 3.24.2 or later on every site, by hand. Do not wait for an automatic update. If the update does not appear, check the licence.

  2. Where you cannot update, turn off both exposed features. Disable LazyLoad for CSS background images and self-hosted Google Fonts, or install the vendor's mitigation helper on each subsite, and keep them off until the update is in.

  3. Check every site that ran an older build since 25 Nov. Look for PHP files in wp-content/uploads, wp-content/wp-rocket-config and wp-content itself, starting with names like wp-media-*.php. The Detection block is a starting point.

  4. If anything turns up, clean before you cache. Remove the planted files, clear the cache, then rotate the database password and the keys in wp-config.php.

  5. Give every paid plugin an owner and a renewal date. Put premium plugins and themes on the same patch list as core, with someone accountable for the licence.