WP Rocket Bug Lets Anyone Plant PHP, and Attackers Are Lining Up
Patchstack says attackers began exploiting CVE-2026-125812 in WP Rocket on Nov. 25, using the rocket_beacon endpoint to make sites download and run PHP. Update to 3.24.2 and check wp-content for planted files.
Attackers are exploiting a critical flaw in WP Rocket, the paid WordPress caching plugin WP Media says runs on more than 5.6 million sites. The bug lets anyone with no login write a PHP file to the server and run it. Patchstack saw the first hand-crafted attempt on Nov. 25 at 15:27 UTC. A day later automated campaigns had taken over, with tens of thousands of blocked requests on Nov. 26 alone. BleepingComputer reports that the fix shipped on Nov. 19, so the attacks began six days after the patch.
For defenders
Affected: WP Rocket before 3.24.2, on sites with LazyLoad for CSS background images or Host Fonts Locally (Self-host Google Fonts) turned on. Both are off by default but common on performance-tuned sites. Fixed in 3.24.2. CVE-2026-125812, CVSS 9.8.
How it works: WP Rocket’s in-browser script measures each page and reports URLs back to a public AJAX action, rocket_beacon, at /wp-admin/admin-ajax.php. The plugin doesn’t check those URLs strictly. A forged report makes the site fetch content from an attacker’s server and save it as a PHP file, which then runs. Patchstack says attackers hit both feature paths, sometimes in one request, and host payloads on bare IPs, nip.io wildcard names, temporary trycloudflare.com tunnels and other WordPress sites that are likely compromised. T1190 (Exploit Public-Facing Application), T1105 (Ingress Tool Transfer), T1505.003 (Server Software Component: Web Shell).
Status: exploitation CONFIRMED (Patchstack, several independent operators). Public exploit reported (a Nuclei template and three GitHub repositories, per our CVE data). Not in CISA KEV.
Mitigate now: update to 3.24.2. If you can’t, turn off both features under WP Rocket > Page Optimization (Image & Media). WP Media also offers a helper plugin for people who manage many sites. Updating does NOT remove files an attacker already planted, so check wp-content/wp-rocket-config/, wp-content/uploads/ and wp-content/ itself for unexpected PHP (for example wp-media-*.php).
The ten busiest source addresses Patchstack blocked (about half of all attempts):
103.235.74[.]71
157.245.122[.]230
152.89.170[.]194
180.232.236[.]101
103.235.74[.]72
201.79.120[.]217
112.78.154[.]32
167.71.75[.]155
43.163.8[.]253
51.79.199[.]209What it means for you
WP Rocket makes WordPress sites load faster. If your site runs it (check Plugins in your WordPress dashboard), update it today. A hacked site can quietly push spam or scams to your visitors, or serve as a launch pad for attacks on other sites. Your web host or the person who built your site can do this in two minutes. If you don’t run WordPress, there’s nothing to do.
Do this now
- Update WP Rocket to 3.24.2 or later (Plugins > Installed Plugins).
- If you can’t update yet, turn off “LazyLoad for CSS background images” and “Host Fonts Locally”.
- Ask your host to scan
wp-contentfor PHP files that appeared after Nov. 25, and change your WordPress admin passwords if anything turns up. - Keep a recent backup you could roll back to if the site was already hit.
Source article: Critical WP Rocket RCE (CVE-2026-125812) Under Active Attack
Publisher: Patchstack (Dave Jong)
Published: Nov. 27, 2026
URL: https://patchstack.com/articles/critical-wp-rocket-rce-cve-2026-125812-under-active-attack/
Executive Summary
Several independent, unattributed operators are mass-exploiting CVE-2026-125812, an unauthenticated remote code execution flaw (CVSS 9.8) in the WP Rocket caching plugin for WordPress, affecting versions before 3.24.2 on sites with LazyLoad for CSS background images or Host Fonts Locally enabled. Patchstack first saw manual exploitation on November 25, 2026 at 15:27:11 UTC, six days after WP Media’s November 19 fix, and the activity became automated campaigns the next day; BleepingComputer reports more than 25,000 malicious requests blocked. No threat actor name has been assigned. The intrusion chain is short: the attacker POSTs a forged performance report to the public rocket_beacon AJAX action at /wp-admin/admin-ajax.php, often exercising both vulnerable feature paths in one request; WP Rocket accepts the reported URL without strict validation, fetches content from attacker-controlled hosting (bare IP addresses, nip.io wildcard names, temporary trycloudflare.com tunnels or other compromised WordPress sites) and writes it to disk as PHP, which then executes, typically leaving a web shell in wp-content/wp-rocket-config/, wp-content/uploads/ or wp-content/ (for example wp-media-*.php). Some operators first test whether a site is vulnerable without revealing their own server, and one cluster sent byte-identical requests from four residential IP addresses, consistent with a rotating proxy pool. The objective is persistent code execution on WordPress sites; patching does not remove planted files. Hunt leads, false positive expectations and indicators are detailed below; no detection rules or file hashes were published.
ATT&CK chain: Initial Access → Command and Control → Persistence
Hunt Lead Grid
| Hunt Lead Level | Hunt Lead Name | ATT&CK | Risk of False Positives |
|---|---|---|---|
| 1 (Junior) | rocket_beacon POSTs From Published Exploit Sources | T1190 (Exploit Public-Facing Application) | Low. These ten addresses were observed sending exploit traffic at volume; a legitimate visitor from one of them hitting rocket_beacon is unlikely, though the residential and cloud ranges can be reassigned, so the match is anchored on the endpoint and the Nov. 25 onward window. |
| 1 (Junior) | Unexpected PHP Files in WP Rocket and Uploads Folders | T1505.003 (Server Software Component: Web Shell) | Low. WP Rocket’s config folder holds a small, known set of PHP config files and uploads should hold none; the sweep anchors on PHP files created after Nov. 25 that do not match the plugin’s own config naming. |
| 2 (Pro) | rocket_beacon Reports Carrying Full External URLs | T1190 (Exploit Public-Facing Application) | Medium. Every real visitor sends beacons, so the rule anchors on beacons with no preceding page load from the same client, or with full URLs to off-site hosts where WP Rocket expects bare domains. |
| 3 (Elite) | Web Server Fetch to Tunnel or Wildcard Host After a Beacon | T1105 (Ingress Tool Transfer) | Medium. WordPress legitimately calls out to update servers and font hosts; the correlation anchors on an outbound fetch to a bare IP, nip.io or trycloudflare.com host within seconds of a rocket_beacon POST, followed by a new PHP file. |
rocket_beacon POSTs From Published Exploit Sources
Every exploitation attempt Patchstack recorded went to POST /wp-admin/admin-ajax.php with action=rocket_beacon, and ten source addresses accounted for roughly half of the blocked attempts since November 25: 103.235.74[.]71 and 103.235.74[.]72 (Ikubaru, Indonesia), 157.245.122[.]230, 201.79.120[.]217 and 167.71.75[.]155 (listed by Patchstack as DigitalOcean), 152.89.170[.]194 (C1V Hosting, Italy), 180.232.236[.]101 (Eastern Telecom, Philippines), 112.78.154[.]32 (Biznet, Indonesia), 43.163.8[.]253 (Aceville / Tencent Cloud, Singapore) and 51.79.199[.]209 (OVH, Singapore). Search web server and WAF logs for any request from these addresses, and specifically for admin-ajax.php POSTs carrying rocket_beacon. A hit that returned HTTP 200 on a site that was running a vulnerable version with either feature enabled should be treated as a possible compromise, not just a blocked probe.
Use web server access logs, CDN or WAF logs, and hosting-panel logs; sweep from November 25, 2026 15:00 UTC forward. Scope to every WordPress site with WP Rocket installed, prioritizing those that ran a version before 3.24.2 with either feature on. Blocking these IPs is reasonable as a short-term step, but it is not a fix: Patchstack describes several operators and at least one rotating residential proxy pool, so new sources will appear and the cloud addresses may be reassigned to innocent tenants later. Any confirmed hit moves straight to the file sweep in the next lead.
Hunt Lead Level: 1 (Junior Analyst)
ATT&CK: Initial Access → T1190 (Exploit Public-Facing Application)
Sources: “Critical WP Rocket RCE (CVE-2026-125812) Under Active Attack”, Patchstack, Nov. 27, 2026, https://patchstack.com/articles/critical-wp-rocket-rce-cve-2026-125812-under-active-attack/ (source article)
Unexpected PHP Files in WP Rocket and Uploads Folders
The exploit’s end state is a PHP file written from attacker-hosted content and then executed. Patchstack names three places to look: wp-content/wp-rocket-config/, wp-content/uploads/ and directly in wp-content/, with names such as wp-media-*.php. List all .php files in those paths with their modification times, flag anything created on or after November 25, 2026, and compare the wp-rocket-config contents against the per-domain config files the plugin writes for itself. Any PHP under uploads, and any wp-media-*.php that the site owner did not create, is a likely web shell.
Run it with a file integrity tool, a host-based EDR, a hosting provider’s malware scanner or a simple find command over SSH, across every site that ran a vulnerable version. Do not rely on the plugin update: WP Media and Patchstack both warn that updating does not remove planted files. Do not just delete a hit; preserve it and the access logs around its creation time, then check for other persistence (new admin users, modified theme files, cron entries) before cleaning. Hash-blocking is the wrong control because the payloads are fetched per attack and Patchstack published no hashes. The check generalizes to any WordPress RCE that drops PHP into writable content folders.
Hunt Lead Level: 1 (Junior Analyst)
ATT&CK: Persistence → T1505.003 (Server Software Component: Web Shell)
Sources: “Critical WP Rocket RCE (CVE-2026-125812) Under Active Attack”, Patchstack, Nov. 27, 2026 (source article); “Hackers exploit critical WordPress WP Rocket flaw to breach sites”, BleepingComputer, Nov. 30, 2026, https://www.bleepingcomputer.com/news/security/hackers-exploit-critical-wordpress-wp-rocket-flaw-to-breach-sites/ (additional source, same vulnerability)
rocket_beacon Reports Carrying Full External URLs
Legitimate beacons are sent by WP Rocket’s own script after a real browser has loaded the page being measured. Patchstack’s detection guidance points to two anomalies: rocket_beacon requests from clients that never loaded the page they report on, and reports containing full URLs where WP Rocket expects bare domains. Build a rule that flags rocket_beacon POSTs where the source address has no GET for a front-end page in the preceding minutes, and, where POST bodies are logged, beacons whose reported values include a scheme and host pointing off-site (bare IPs, nip.io names, trycloudflare.com tunnels or unrelated WordPress domains). Patchstack also notes attackers often exercise both the CSS background and font paths in one request, which a real browser would not need to do.
Use WAF or reverse-proxy logs with request-body capture, or a WordPress security plugin that logs AJAX payloads; plain access logs support the “no preceding page load” half only. Sweep from November 25, 2026 and keep the rule after patching, since it catches probing by operators who check for vulnerable sites without revealing their payload server. Expect noise from caching layers and CDNs that replay or strip referrers, so allowlist your own CDN egress ranges by address rather than by user agent. Treat any beacon with an off-site full URL as an attempted exploit and pivot to the file lead.
Hunt Lead Level: 2 (Pro)
ATT&CK: Initial Access → T1190 (Exploit Public-Facing Application)
Sources: “Critical WP Rocket RCE (CVE-2026-125812) Under Active Attack”, Patchstack, Nov. 27, 2026 (source article)
Web Server Fetch to Tunnel or Wildcard Host After a Beacon
The vulnerable code makes the WordPress server itself download the attacker’s payload, so a successful attempt shows up as an outbound HTTP(S) request from the web server to attacker hosting, seconds after an inbound rocket_beacon POST, followed by a new .php file on disk. Patchstack lists the hosting patterns: bare IP addresses, nip.io wildcard DNS names, temporary trycloudflare.com tunnels and other likely compromised WordPress sites. The detection joins three signals on the same host within a short window: inbound rocket_beacon POST (web log), outbound connection or DNS query from the PHP worker to a bare IP, *.nip.io or *.trycloudflare.com name (proxy, DNS or firewall log), and a PHP file creation under wp-content (file integrity or EDR).
Build it on DNS and egress firewall or proxy logs from web hosts plus web logs and file events; sweep from November 25, 2026. Scope to WordPress hosts, where outbound requests are normally limited to wordpress.org, the plugin vendors’ update servers and font or CDN hosts, and baseline that set for a week before alerting. Do not block nip.io or trycloudflare.com organization-wide as the fix, since developers use both legitimately; restrict egress from production web servers instead, which also blunts this class of fetch-and-write bug in other plugins. Any full three-signal match is a compromise and should go to incident response, including a check of the attacker-supplied host for other victims in your estate.
Hunt Lead Level: 3 (Elite)
ATT&CK: Command and Control → T1105 (Ingress Tool Transfer); Persistence → T1505.003 (Server Software Component: Web Shell)
Sources: “Critical WP Rocket RCE (CVE-2026-125812) Under Active Attack”, Patchstack, Nov. 27, 2026 (source article)
Hash Appendix
CVE-2026-125812 payloads
No file hashes were published in the Patchstack article or BleepingComputer’s report; payloads are fetched per attack from attacker hosting. No lookups in OTX AlienVault or VirusTotal were made for this report.
MD5s
(not available) # no payload hashes published
SHA1s
(not available) # no payload hashes published
SHA256s
(not available) # no payload hashes published
References Appendix
- “Critical WP Rocket RCE (CVE-2026-125812) Under Active Attack”, Patchstack (Dave Jong), Nov. 27, 2026, https://patchstack.com/articles/critical-wp-rocket-rce-cve-2026-125812-under-active-attack/
- “Hackers exploit critical WordPress WP Rocket flaw to breach sites”, BleepingComputer (Bill Toulas), Nov. 30, 2026, https://www.bleepingcomputer.com/news/security/hackers-exploit-critical-wordpress-wp-rocket-flaw-to-breach-sites/
- “WP Rocket Security Advisory and Mitigation Steps for CVE-2026-125812”, WP Media, https://wp-rocket.me/docs/wp-rocket-security-advisory-and-mitigation-steps-for-cve-2026-125812/
CVE at a glance
- CVSS
- 9.8 Critical (v3.1)
- EPSS
- 7.3% chance of exploitation in the next 30 days (higher than 94.5% of CVEs)
- Exploited in the wild
- Not on CISA’s KEV list
- Public exploit
- Yes, reported in a Nuclei template and 3 GitHub repositories
Data from NVD, FIRST EPSS and CISA KEV, refreshed automatically. We report whether public exploit code exists but never link to it: fake proof-of-concepts that infect researchers are common.