WP Rocket CVE-2026-125812: Check Two Settings, Fix and Clean Up
Attackers have been exploiting an unauthenticated code-execution flaw in WP Rocket since 25 November, Patchstack reports. Here's how to check whether your site was exposed or hit, update it, and clean up planted files.

Status: WP Rocket CVE-2026-125812 is fixed in WP Rocket 3.24.2 (19 Nov 2026) and has been exploited since 25 Nov 2026, per Patchstack. Checked 1 Dec 2026.
Attackers are exploiting a critical flaw in WP Rocket, a paid caching and speed plugin for WordPress. The flaw, tracked as WP Rocket CVE-2026-125812, lets anyone without an account make a site save a file of the attacker's choosing as PHP and then run it. Patchstack, a WordPress security company, reported the attacks on 27 November. It saw the first attempt on 25 November at 15:27 UTC. A site is exposed only if it runs a version older than 3.24.2 and has one of two optional settings turned on. Updating closes the hole but does not remove files an attacker already planted, so exposed sites also need a check.
Which WordPress sites are exposed to WP Rocket CVE-2026-125812?
Three questions decide it. Patchstack and WP Rocket's own security advisory agree on the two settings: LazyLoad for CSS background images and the Google Fonts option. Both are off by default, according to Patchstack.
| Your site | Result |
|---|---|
| WP Rocket 3.24.2 or later | Not exposed to new attacks. Still check for planted files if it ran an older version with a setting on. |
| Older than 3.24.2, both settings off | Not exposed through the paths the vendor documented. Update anyway. |
| Older than 3.24.2, either setting on | Exposed. Update now, then check whether the site was hit. |
| Older than 3.24.2, you don't know which settings were on | Treat it as exposed. |

The sources name the fonts setting differently. WP Rocket's screens and advisory call it Self-host Google Fonts; Patchstack calls it "Host Fonts Locally". It is the same feature, which WP Rocket's docs say arrived in version 3.18.
The version range also differs by source, so the table uses the wider one:
WP Rocket's advisory: versions 3.15 through 3.24.1 are affected.
Patchstack and the CVE record: all versions before 3.24.2, with no lower bound given.
Check your WP Rocket version without loading site code
From the site's root folder on a VPS or over SSH, read the version straight from the plugin file:
grep -m1 "WP_ROCKET_VERSION" wp-content/plugins/wp-rocket/wp-rocket.phpThe output is a PHP define line with the version in quotes. Anything below 3.24.2 needs the update for WP Rocket CVE-2026-125812. This check reads a file and runs nothing, which matters if the site may already be infected.
The WP-CLI command wp plugin get wp-rocket --field=version gives the same answer, but it loads WordPress, including any planted code. Imunify360, a server security product, warns in its 30 November write-up not to run WP-CLI as root on an infected site. Run it as the site's own user, after the file checks below come back clean. On shared hosting without SSH, the version is on the WordPress Plugins page.
Check the two settings
On WP Rocket 3.24 or later, open WP Rocket > Page Optimization > Image & Media. On older versions, open the Media tab.
Look at LazyLoad for CSS background images and Self-host Google Fonts.
If either box is ticked and the version is below 3.24.2, the site was exposed for as long as that was true.
How to fix WP Rocket CVE-2026-125812: update to 3.24.2 or turn off two settings
| Version | Status | Released |
|---|---|---|
| Before 3.24.2 (3.15–3.24.1 per WP Rocket) | Vulnerable if either setting is on | — |
| 3.24.2 | Fixed | 19 Nov 2026 |
| 3.24.3 | Fixed (latest on the changelog; no new security item) | 26 Nov 2026 |
With an active license, update from the WordPress Plugins page and confirm the version reads 3.24.2 or later, as WP Rocket's advisory describes. WP Rocket is sold outside the WordPress.org directory, and ZeroPath, a security research firm, notes that an expired license blocks updates and that auto-updates are off by default.
With an expired license, or if you can't update today, WP Rocket says to turn off both settings, save, confirm both are off, and keep them off until 3.24.2 is installed. The trade-off is speed: background images load eagerly again and Google Fonts load from Google's servers. Treat this as a stopgap. ZeroPath also traces code paths for preconnect handling, and the 3.24.2 changelog mentions "preconnect files". ZeroPath warns against treating a disabled feature as proof that an old install is safe. The update is the real fix.
For many sites, WP Rocket's advisory offers a mitigation helper plugin, a zip download from its GitHub repository, that turns off both features. Agencies and hosts can deploy it with WP-CLI. On multisite, WP Rocket says to install it once and activate it on each affected subsite.
A web application firewall (WAF) rule is another stopgap. Patchstack says its own mitigation rule blocks the attempts without changing plugin code and was live more than two days before the first attack. Imunify360 says its WAF blocks the requests seen so far. Both are vendors describing their own products, and ZeroPath notes that the content of Patchstack's rule is not published. A WAF rule doesn't remove files that are already there.
Is the WP Rocket flaw being exploited?
Yes. WP Rocket CVE-2026-125812 is under attack, according to Patchstack's telemetry. Its timeline runs like this:
The first attacker worked by hand on 25 November, then retried with encoded variants after being blocked.
Attacks were automated within a day, with "tens of thousands" of blocked attempts on 26 November alone.
Several independent operators are involved.
The ten most active IP addresses account for roughly half of blocked attempts since 25 November.
Patchstack published those top source IPs in its advisory. Treat that list as a snapshot, not a block list, because attackers rotate addresses. Patchstack says one cluster sent identical requests from four residential IPs, which suggests a rotating proxy pool.
The attackers fetch their payloads from several kinds of host, according to Patchstack: bare IP addresses, wildcard DNS names such as nip.io, temporary trycloudflare.com tunnels, and other WordPress sites that are likely compromised themselves. The Hacker News reported on 1 December that Wordfence, another WordPress security firm, blocked 135 attacks in the previous 24 hours.
The CVSS score for WP Rocket CVE-2026-125812, 9.8 (Critical), vector AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H, comes from Patchstack, which is also the CVE Numbering Authority (CNA) for this record. Patchstack also sells the mitigation rule mentioned above. NVD, the US vulnerability database, had not published its own score; one tracker lists the NVD entry as "Deferred". The CVE record credits the finding to "Vorelito, Patchstack Bug Bounty Program".
WP Rocket CVE-2026-125812 was not in CISA's Known Exploited Vulnerabilities (KEV) catalog when the security firm Rescana checked catalog version 2026.11.25 on 27 November. Rescana notes that this catalog came out about four hours after the first reported attempt, so the flaw's absence says nothing about whether it is being exploited.
The Hacker News, citing WP Rocket's website, says the plugin runs on more than 5.5 million sites. That is the plugin's user base, not the number of vulnerable sites. Only sites on an old version with one of the two settings on are exposed, and no source has published that count.
Was your site hit? Files, logs and accounts to check
Run these from the site's root folder. None of these signs of WP Rocket CVE-2026-125812 exploitation proves a compromise, and finding none doesn't prove the site is clean, because attackers can rename files and change timestamps. Patchstack's first sighting on 25 November is only its own telemetry, so the searches below go back to the fix date, or have no date limit at all.
Planted PHP files
Patchstack names three places for unexpected PHP files: wp-content/wp-rocket-config/, wp-content/uploads/ and wp-content/ itself, with names like wp-media-*.php. Imunify360 adds wp-content/mu-plugins/.
# Names matching the pattern Patchstack reported, anywhere under wp-content
find wp-content -name "wp-media-*.php"
# PHP inside uploads (normally none, or a tiny blank index.php)
find wp-content/uploads -name "*.php"
# What sits directly in wp-content and in WP Rocket's config folder
ls -la wp-content/*.php wp-content/wp-rocket-config/
# Must-use plugins load on every request; check each file here
ls -la wp-content/mu-plugins/
# PHP changed since the fix shipped, outside plugin and theme folders
find wp-content -name "*.php" -newermt "2026-11-19" -not -path "*/plugins/*" -not -path "*/themes/*"Some of what these commands find is normal, and some is not:
Normal in
wp-content/:index.phpandadvanced-cache.php, which WP Rocket writes itself. You may also seeobject-cache.phpordb.phpfrom a caching or database plugin you installed.Normal in
wp-rocket-config/: WP Rocket keeps a PHP config file per domain there.Suspicious: anything matching
wp-media-*.php, PHP files with code inuploads/, and anmu-plugins/file you didn't add. Imunify360 says the planted names usewp-media-plus eight hex characters, and that onemu-pluginsfile re-creates the others when they are deleted.
A legitimate filename doesn't prove the file is clean, so open anything recent and read it. Also search the site for references to the payload hosts:
grep -rlE "nip\.io|trycloudflare\.com" wp-content/POST requests to admin-ajax.php in your access log
Patchstack says the attack arrives as POST /wp-admin/admin-ajax.php with action=rocket_beacon. Standard Apache and nginx access logs record the request line but not the POST body. So grep rocket_beacon access.log usually finds nothing, even on a site that was attacked. Count POSTs to the endpoint by IP and by day instead:
# Top source IPs (log path varies: /var/log/nginx/, /var/log/apache2/, ~/access-logs/ on cPanel)
zgrep -h "POST /wp-admin/admin-ajax.php" /var/log/nginx/access.log* | awk '{print $1}' | sort | uniq -c | sort -rn | head -20
# POSTs per day, to spot a jump from 25 November
zgrep -h "POST /wp-admin/admin-ajax.php" /var/log/nginx/access.log* | awk '{print $4}' | cut -d: -f1 | sort | uniq -cWP Rocket's own beacon and WordPress itself post to this endpoint from real visitors, so some traffic is normal. Patchstack's signal is beacon requests from clients that never loaded the page they report on. Pick a busy IP and see whether it ever fetched a normal page: zgrep -h "^203.0.113.5 " /var/log/nginx/access.log* | head, using the IP you found. If the site is behind Cloudflare or another CDN, the first log field is the CDN's IP unless the server logs the real client IP. Only WAF or ModSecurity audit logs keep the POST body with rocket_beacon in it.
Outbound requests to nip.io and trycloudflare.com
Patchstack lists the web server fetching from unfamiliar hosts, nip.io names or trycloudflare.com tunnels as a sign of attack. Web access logs don't record outbound fetches. Look in firewall or egress logs, DNS resolver logs, or your host's network logs if you have them.
New admin users and scheduled tasks
Imunify360 reports attacker-created administrator accounts. Run these as the site user, not root:
wp user list --role=administrator --fields=ID,user_login,user_email,user_registered
wp cron event list
crontab -lWithout WP-CLI, sort the wp_users table by user_registered in phpMyAdmin. The table prefix may not be wp_. Any admin you don't recognize, created after 19 November, should be investigated.
What to do if you find a planted file
For WP Rocket CVE-2026-125812, WP Rocket's advisory says only that attacker-created files and accounts "need separate investigation", and it points to a host or security team. The steps below are general incident-response practice, not WP Rocket's instructions:
Preserve evidence first. Copy the site files, the database and the access logs somewhere off the server before changing anything.
Update WP Rocket to 3.24.2 or later, or turn off both settings, so the same hole can't be used again.
Remove the planted files, starting with any loader in
mu-plugins/, which Imunify360 says re-creates the others.Delete unknown admin accounts and review the remaining users' roles.
Rotate secrets: WordPress admin passwords, the database password in
wp-config.php, hosting, SFTP and SSH passwords, and the salts inwp-config.php, which ends all logged-in sessions. Imunify360 lists the salts and database password among its own steps.Check scheduled tasks: WordPress cron events and the server crontab.
If you can't be sure the site is clean, restore from a backup taken before the site was exposed, then update before putting it back online.
On shared hosting, ask the host to scan the whole account. One compromised site can reach others under the same user.
How the rocket_beacon bug turns a URL into a PHP file
Patchstack describes the WP Rocket CVE-2026-125812 chain in plain terms. ZeroPath adds the code-level detail:
WP Rocket runs a small script in visitors' browsers that measures each page and reports what it found, such as background image and font URLs.
The report goes to a public endpoint,
admin-ajax.phpwithaction=rocket_beacon, which accepts it without a login.WP Rocket uses the reported URLs to fetch and cache CSS and font files locally. Before 3.24.2 it did not check those URLs strictly enough, according to Patchstack.
ZeroPath says the cache path was built by joining the URL's host and path onto the cache folder, without resolving
..segments or limiting file names and extensions.So a crafted report makes the site download the attacker's content and save it as a
.phpfile outside the cache folder.The attacker requests that file, and the web server runs it as PHP. That is remote code execution.

The bug class is path traversal (CWE-22). The CVE record lists it that way, while its title describes the impact as remote code execution. Path traversal means software builds a file path from outside input and fails to stop ../ from climbing out of the intended folder. Here the input was a URL inside a beacon report, and the result was an attacker-controlled file in a place where PHP runs. ZeroPath frames the server's outbound fetch as the delivery mechanism, not the weakness. No public exploit chain has been published, and this article doesn't describe one.
Timeline: a one-line changelog fix, six days before the first attack
| Date (2026) | Event | Source |
|---|---|---|
| 19 Nov | WP Rocket 3.24.2 ships. Its only security line: "Improve validation of cached CSS, font and preconnect files." No CVE is named. | WP Rocket changelog |
| 23 Nov | Public disclosure date in the CVE record. Patchstack's rule is live by about then (more than two days before the first attack). | CVE record, Patchstack |
| 25 Nov | CVE published. First exploitation attempt at 15:27 UTC. | CVE record, Patchstack |
| 26 Nov | Tens of thousands of blocked attempts. WP Rocket 3.24.3 ships with no security item. | Patchstack, WP Rocket changelog |
| 27 Nov | Patchstack publishes its advisory. WP Rocket's advisory page is last updated. | Patchstack, WP Rocket |
| 1 Dec | Mainstream coverage, including The Hacker News. | The Hacker News |
By ByteMuni's count, the fix for WP Rocket CVE-2026-125812 was public for six days before the first recorded attack, and the CVE details for two. During that window the only signal most site owners saw was a changelog line that read like routine hardening. Sites that held updates for a monthly maintenance window were exposed for the whole stretch. The gap between a fix shipping and a fix being installed is the subject of ByteMuni's Linux distro CVE patch-speed report. For a WordPress core case, see WordPress 7.1.4 fixes an RCE flaw already under attack.
Checklist for agencies managing WP Rocket sites
For a freelancer or agency with many client sites, the order of the WP Rocket CVE-2026-125812 work matters more than the detail:
List every site running WP Rocket and its version, using the
grepcheck above across each document root.Update every site below 3.24.2. For sites with expired licenses, deploy WP Rocket's helper plugin or turn off both settings by hand, then renew.
For every site that ran an old version with either setting on, run the file, log and admin-user checks. If you can't tell which settings were on, check them all.
Clean up any hit site with the steps above, starting with a full off-server copy for evidence.
Change policy: treat any "Security:" line in a plugin changelog as urgent, CVE or not. Turn on automatic updates for plugins whose vendors you trust, and keep license renewals current so updates can actually arrive.
Read the changelogs of paid plugins as closely as free ones; they update outside WordPress.org and are easy to miss. ByteMuni's report on the Rank Math PRO malware breach covers another premium-plugin incident.
Frequently asked questions
Does WP Rocket update itself automatically?
Not by default, according to ZeroPath, and an expired license blocks updates. Check the version yourself on every site rather than assuming it updated.
Is the free WordPress.org plugin "Rocket Lazy Load" affected?
None of the advisories name it. Patchstack, WP Rocket and the CVE record cover only the paid WP Rocket plugin.
Does turning off the two settings remove an attacker who already got in?
No. WP Rocket says turning the settings off or updating blocks new exploitation through the documented paths but doesn't remove anything an attacker already created.
My host uses Imunify360 or a WAF. Am I safe?
A WAF can block attempts, but it doesn't remove files planted before it was in place. Update anyway, and run the file checks if the site was exposed.



