Skip to main content
株式会社オブライト
株式会社オブライト

WP Rocket Vulnerability CVE-2026-125812 (RCE)

How to Check Exposure, Update to 3.24.2 and Look for Signs of Compromise

Published 2026/11/3012 min read

CVE-2026-125812: WP Rocket before 3.24.2 lets attackers write PHP files without logging in, and attacks are seen. Settings, WP-CLI checks, mitigations.

CVE-2026-125812 is a flaw in versions of the WordPress caching and performance plugin WP Rocket earlier than 3.24.2. Without logging in, an attacker can have the site write a PHP file and run code. Patchstack rates it CVSS 9.8 (Critical) and has observed real attacks since November 25, 2026. The attack works only when either "LazyLoad for CSS background images" or "Host Fonts Locally" is enabled. Check your WP Rocket version and those two settings first, then update to 3.24.2 or later.

This article is based on Patchstack's write-up (dated November 27, 2026), its vulnerability database entry, the CVE record and the official WP Rocket changelog. It states only what those sources confirm, and marks anything not published as unpublished.

The key points in three lines

- What: In WP Rocket versions before 3.24.2, a crafted performance-measurement report can make the site fetch content from an attacker-controlled server and save it as a PHP file, which then runs. No authentication is needed. CVSS is 9.8 (Critical)
- Who: Sites running WP Rocket before 3.24.2 with "LazyLoad for CSS background images" or "Host Fonts Locally" enabled. Both are off by default, but sites tuned for speed often turn them on
- What to do: Update to 3.24.2 or later. Until then, disable the two settings. If a vulnerable version was running unprotected, updating does not remove files already planted, so check for PHP files and review logs

Quick reference: what is affected

EnvironmentAffected versionsFixed version
WP Rocket (paid WordPress plugin)All versions before 3.24.23.24.2
Condition for the attackAn affected version with either "LazyLoad for CSS background images" or "Host Fonts Locally" enabledUpdate to 3.24.2 or later (disable both settings until you can)
WordPress core and other pluginsNot listed as affected by this CVENo action for this CVE (apply normal updates separately)

Patchstack lists affected versions as below 3.24.2, the fixed version as 3.24.2, and the required privilege as unauthenticated. The CVE record also covers all versions before 3.24.2, with the fix in 3.24.2.

What is happening, in plain terms

To speed up page display, WP Rocket loads a small script in the browser that measures each page and reports the results to a public AJAX endpoint (/wp-admin/admin-ajax.php). According to Patchstack, WP Rocket uses the reported URLs for optimization but does not validate them strictly enough. A crafted report makes the site download content from an attacker-controlled server and save it as a PHP file. Once saved, that file can be requested from outside and runs on the server. In other words, someone who is not logged in can run code on your server.

Note that the CVE record classifies the weakness as path traversal (CWE-22), while its title calls it remote code execution (RCE). The two do not match exactly. This article follows Patchstack's technical description and calls the impact "writing a PHP file and running code".

The attack is an ordinary POST request to an endpoint the plugin exposes, so being unable to log in to the admin screen is no defense. Patchstack says some requests combine both feature paths so that whichever option is enabled triggers the flaw.

Attacks seen so far

Patchstack says it first observed exploitation on November 25, 2026, at about 15:27 UTC. The first attacker tested payloads by hand on a few sites and retried with encoded variants after being blocked. Within a day the activity became automated, and Patchstack reports tens of thousands of blocked attempts on November 26. It also says its mitigation rule was live more than two days before the first attack.

Patchstack's database marks the issue as known exploited. The CISA-ADP section of the CVE record, however, lists exploitation as "none", so the data sources differ. This article treats Patchstack's report of exploitation, based on its own observations, as fact. It does not say whether the issue is in CISA's known exploited vulnerabilities catalog, because the sources do not confirm that.

How to check whether you are affected

Check three things: (1) whether WP Rocket is installed and which version, (2) whether either of the two settings is on, and (3) whether there are signs of an attack. WP Rocket is distributed as a paid plugin, not through the WordPress.org directory, so check the server as well as the plugin list.

Step 1: Check the WP Rocket version

Check the version on the Plugins screen in the admin area, or with WP-CLI. Replace <WordPress path> with your actual install location.

# List installed plugins and versions
wp plugin list --path=<WordPress path>

# Show only the WP Rocket version
wp plugin get wp-rocket --field=version --path=<WordPress path>

# If one server hosts several sites, check each site

If the version is lower than 3.24.2, you are on an affected version. At 3.24.2 or higher, the fix for this issue is included.

Step 2: Check whether the two settings are on

In the WP Rocket settings, look for "LazyLoad for CSS background images" and "Host Fonts Locally" and see whether either is switched on. The position of these items can differ between versions, so this article does not name a specific location. Even if both are off, update to 3.24.2 anyway: settings can change, and while Patchstack states that these two are off by default, it does not claim there is no other condition.

Step 3: Look for signs of attack

Patchstack lists these detection indicators.

- Requests: POST /wp-admin/admin-ajax.php with action=rocket_beacon. Be especially suspicious of requests from clients that never loaded the page they report on, or that send a full URL where a bare domain is expected
- Outbound connections: the web server connecting to unfamiliar hosts, nip.io names, or temporary trycloudflare.com tunnels
- Suspicious PHP files: PHP files with names like wp-media-*.php in wp-content/wp-rocket-config/, wp-content/uploads/ or wp-content/

Example commands follow. Log locations and formats vary, so replace the paths. The log search is an example that looks for rocket_beacon, which Patchstack names; finding nothing does not prove you were not hit.

# Example: search access logs for rocket_beacon (log path depends on your environment)
grep -h "rocket_beacon" /var/log/nginx/access.log* | head

# Example including compressed, rotated logs
zgrep -h "rocket_beacon" /var/log/nginx/access.log*.gz | head

# Example: find PHP files named wp-media-*.php
find <WordPress path>/wp-content -type f -name "wp-media-*.php" -ls

# Example: find recently modified PHP files (last 10 days here)
find <WordPress path>/wp-content -type f -name "*.php" -mtime -10 -ls

Patchstack names wp-media-*.php as an example of what to look for but does not rule out other file names. Do not rely on the name alone: treat any PHP file inside uploads as suspicious and investigate it.

Patchstack publishes a list of the most active attacking IP addresses. It also says operators rotate addresses and use residential proxies, so blocking IP addresses alone is not a defense.

What to do, by environment

Update from the admin screen

WP Rocket is a paid plugin. Updates are tied to the license, and WP Rocket's documentation says that when a license expires you lose access to plugin updates. If no update notice appears, check the license status. The steps are:

- Back up files and the database before you start
- Look for the WP Rocket update on the Plugins or Updates screen and update to 3.24.2 or later
- If no update notice appears, one option is to download the latest files from your WP Rocket account and install them manually (check WP Rocket's official guidance for the exact steps; this article's sources did not confirm them)
- After updating, confirm the site displays correctly and that cache regeneration works

Whether automatic updates are on depends on each site's settings. We found no official documentation on WP Rocket's own automatic update behavior, so do not rely on it: check the actual version.

Update with WP-CLI

If you have SSH access and WP-CLI, you can update as below. For a paid plugin, the update may not appear unless the site has a registered license and can fetch update information. If it does not update, switch to the admin screen steps and check the license.

# Check whether an update is available
wp plugin list --update=available --path=<WordPress path>

# Update WP Rocket (when update information is available)
wp plugin update wp-rocket --path=<WordPress path>

# Confirm the version afterwards (3.24.2 or higher)
wp plugin get wp-rocket --field=version --path=<WordPress path>

If a web agency or maintenance company handles it

If another company handles updates, you can send these three questions as they are.

- Which WP Rocket version does our site run, and when will it be on 3.24.2 or later?
- Are "LazyLoad for CSS background images" and "Host Fonts Locally" enabled? If so, can they be turned off until the update?
- Do access logs since November 25 show suspicious rocket_beacon requests, and are there suspicious PHP files under wp-content?

If they manage many sites at once, ask for a per-site report, because versions may differ.

If you cannot update

Sometimes you cannot update right away, for example because testing is needed or a license problem prevents downloading the update. Prioritize as follows.

- Disable both "LazyLoad for CSS background images" and "Host Fonts Locally" (see the next section)
- If you use Patchstack, its mitigation rule (RapidMitigate) can block attacks for this CVE
- Contact your hosting provider or web agency and set a deadline for the update
- Until you update, repeat the log and PHP file checks, for example once a day

Mitigations while you cannot patch

Patchstack describes two mitigations. One is to disable both "LazyLoad for CSS background images" and "Host Fonts Locally". The other is its RapidMitigate rule, which blocks the attacks without changing plugin code. Both are stopgaps; the real fix is updating to 3.24.2 or later.

Disabling the two settings stops lazy loading of CSS background images and local font hosting, which may slightly lower page-speed scores. That is an acceptable price compared with the risk of code execution. A general WAF rule that blocks requests containing rocket_beacon is conceivable, but this article's sources do not confirm whether any given WAF vendor supports it. Check your WAF provider's information.

Checking after the update matters too. Patchstack states that updating stops new attacks but does not remove files already planted. If a vulnerable version was running before you updated, do the following.

- Check wp-content/wp-rocket-config/, wp-content/uploads/ and wp-content/ for suspicious PHP files, and preserve any you find as evidence before deleting them
- Review access logs since November 25
- If you find suspicious files, also check for added administrator accounts, tampering with wp-config.php, suspicious scheduled tasks and effects on other sites, and consider rotating passwords and keys
- If compromise is suspected, consider restoring from backup, together with the approach in WordPress maintenance in practice

Timeline

DateEventSource
November 4, 2026Listed as the "reported" date in Patchstack's database (reporter: Vorelito)Patchstack DB
November 10CVE ID reservedCVE record
November 19WP Rocket 3.24.2 released. The changelog lists stricter validation of cached CSS, font and preconnect filesWP Rocket changelog
November 23Published date in Patchstack's database; public disclosure date in the CVE recordPatchstack DB, CVE record
November 25CVE record published. Patchstack first observes exploitation (about 15:27 UTC)CVE record, Patchstack article
November 26Automated attacks grow; Patchstack reports tens of thousands of blocked attemptsPatchstack article
November 27Patchstack publishes its alert article; CVE record updatedPatchstack article, CVE record

The 3.24.2 changelog entry does not mention this CVE or the word "vulnerability". Under a security item it only says that validation of cached CSS, font and preconnect files was made stricter. The changelog alone does not show which change fixes this CVE. We could not find a detailed announcement of this issue from WP Rocket itself.

Checklist for today

- List every site that uses WP Rocket (make a table if you run several)
- Check each site's WP Rocket version (wp plugin get wp-rocket --field=version)
- If it is before 3.24.2, back up and update to 3.24.2 or later
- If you cannot update right away, disable "LazyLoad for CSS background images" and "Host Fonts Locally"
- Search access logs since November 25 for rocket_beacon
- Look under wp-content for suspicious PHP files such as wp-media-*.php
- If you find anything, preserve it before deleting, then check administrator accounts, wp-config.php and scheduled tasks
- If someone else maintains the site, ask for the date the update finished and a report of what they checked
- Check the vulnerability news digest published the same day for other items that need action

For how to think about WordPress core updates, see also the wp2shell explainer. This issue is in a plugin, so it needs its own update, separate from core.

Sources

FAQ

I use WP Rocket but do not remember enabling those two settings. Do I still need to update?

Yes. According to Patchstack, the attack works only when one of the two settings is enabled, and both are off by default. But an agency or a past administrator may have turned one on for speed. Check the settings, and update to 3.24.2 or later regardless.

WP Rocket is not in the WordPress.org plugin directory. How do I check for updates?

WP Rocket is a paid plugin and is not listed in the official WordPress.org directory. Updates are tied to the license, and the official documentation says you lose access to plugin updates when the license expires. Check the version through the admin update notice or wp plugin get wp-rocket --field=version, and if no notice appears, check the license status.

Am I safe once I update to 3.24.2?

New attacks stop, but files already planted are not removed. Patchstack states plainly that updating does not remove them. If a vulnerable version was running for any period, check for suspicious PHP files under wp-content and review access logs since November 25.

I found a PHP file. What do I do first?

Preserve the file and the logs as evidence before deleting anything. Then check for added administrator accounts, tampering with wp-config.php, suspicious scheduled tasks and effects on other sites, and consider rotating passwords and keys and restoring from backup. If you are unsure, consult your hosting provider or a security specialist.

If I have a WAF, can I skip the update?

No. A WAF or Patchstack's RapidMitigate rule only blocks attacks until you update; the real fix is updating to 3.24.2 or later. Check your WAF provider's information to see whether it covers this CVE.

株式会社オブライト

Oflight Inc. is a Tokyo-based IT company providing software development, digital signage, web development, network systems, and IoT/AR/VR technology services.

Feel free to contact us

Contact Us