Critical WP Rocket Plugin Flaw Allows Unauthenticated Remote Code Execution Under Active Attack
Critical WP Rocket Plugin Flaw Allows Unauthenticated Remote Code Execution Under Active Attack
Summary
CVE-2026-125812 is an unauthenticated remote code execution vulnerability in WP Rocket, a WordPress caching plugin from WP Media, rated CVSS 9.8 (Critical). Patchstack states that attackers "write and execute PHP code on affected sites" and that the flaw "is currently being targeted in the wild", with the first recorded exploitation attempt on 2026-11-25 15:27 UTC. The fix is WP Rocket 3.24.2. Exploitation requires the "LazyLoad for CSS background images" or "Host Fonts Locally" feature to be enabled (both off by default). Updating does not remove files an attacker already planted.
Recommendation: Update WP Rocket to 3.24.2 or later, or disable both affected features if you cannot update. Hunt for the planted files and request patterns below on every site that ran a vulnerable version, since the update does not clean up an earlier compromise.
Affected Systems and/or Applications
- WP Rocket (WordPress plugin by WP Media), all versions before 3.24.2.
- Only sites with "LazyLoad for CSS background images" or "Host Fonts Locally" enabled are reported as exploitable. Both are off by default.
- First fixed version: 3.24.2.
- Patchstack reports 5.5M+ installs.
Technical Details
Vulnerability Mechanism
WP Rocket includes a small script that runs in visitors' browsers. It measures each page and reports the results to a public AJAX endpoint (POST /wp-admin/admin-ajax.php, action=rocket_beacon), and the plugin then uses those results to optimize the page. The endpoint is reachable without authentication, and the URLs reported to it are not validated strictly enough.
When either "LazyLoad for CSS background images" or "Host Fonts Locally" is enabled, the plugin acts on those reported URLs. An attacker can submit a crafted report that makes the site download content from a server the attacker controls and save it as a PHP file. The attacker's code then runs on the web server, which gives unauthenticated remote code execution with the privileges of the web server account.
NVD, based on the CNA (Patchstack) record, classifies the weakness as CWE-22 (Improper Limitation of a Pathname to a Restricted Directory). This is a weakness classification and the impact is remote code execution, so the two descriptions refer to the same flaw.
Observed Exploitation Path
Patchstack reports active exploitation: first attempt 2026-11-25 15:27 UTC, and tens of thousands of blocked attempts on 2026-11-26 alone. The Hacker News also reports that Wordfence blocked 135 attacks in the 24 hours before its own advisory.
Reported request pattern: POST /wp-admin/admin-ajax.php with action=rocket_beacon. Patchstack flags rocket_beacon requests from clients that never loaded the page they report on, or that report full URLs where bare domains are expected. Reported follow-on activity: PHP files named wp-media-*.php planted in wp-content/wp-rocket-config/, wp-content/uploads/ or wp-content/, and outbound requests from the web server to unfamiliar hosts, nip.io names, trycloudflare.com tunnels or other possibly compromised WordPress sites.
Key Points
- CVSS 3.1: 9.8 Critical, vector CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (CNA Patchstack; NVD's own score is not yet provided and NVD marks the CVE "Not Scheduled" for enrichment).
- Active exploitation is reported by Patchstack and The Hacker News. The Patchstack database page carries a "Known to be exploited! (KEV)" label, which is Patchstack's own tag.
- FIRST EPSS: probability 0.07323, percentile 0.94512. EPSS is a 30-day exploitation probability, not certainty.
- The update stops new attacks but "does not remove files an attacker already planted".
- Scanner coverage: As per today 12/1/2026, the Tenable Plugins Pipeline shows a CVE-2026-125812 plugin in test status, meaning that the plugin is in the production build & release pipeline.
- Credit: Vorelito (Patchstack database entry). Patchstack database entry published 2026-11-23, reported 2026-11-04; Patchstack article 2026-11-27; The Hacker News 2026-12-01; NVD published 2026-11-25.
Mitigation
Immediate Actions for Self-Hosted Instances
Limit Exposure
If you cannot update immediately, disable both "LazyLoad for CSS background images" and "Host Fonts Locally". Patchstack also offers a RapidMitigate rule for this CVE, available to Patchstack customers. Consider blocking or inspecting POST /wp-admin/admin-ajax.php requests with action=rocket_beacon at the WAF or reverse proxy.
Patch/Upgrade
Update WP Rocket to version 3.24.2 or later.
Threat Hunting
Look back to at least 2026-11-25 on every site that ran a vulnerable version:
- Search web server and WAF logs for
POST /wp-admin/admin-ajax.phpwithaction=rocket_beacon, especially from the source IPs below or with the anomalies described above. - Search for unexpected
wp-media-*.phpfiles inwp-content/wp-rocket-config/,wp-content/uploads/andwp-content/. - Review outbound connections from the web server to unfamiliar hosts,
nip.ionames andtrycloudflare.comtunnels.
Reported source IPs (Patchstack, blocked requests since 2026-11-25; IPs may be spoofed, shared or rotate, so treat as leads, not proof): 103.235.74.71, 103.235.74.72, 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.
Assume Breach if Unpatched
Not evidenced for any specific asset: no vulnerable, exposed customer asset has been identified. However, exploitation has been reported since 2026-11-25, and the fix does not remove files already planted. Sites that ran a vulnerable version with either affected feature enabled and were internet-reachable on or after 2026-11-25 should be treated as potentially compromised until the hunting steps above are completed.
What the Cyber Fusion Center is Doing
The CFC is monitoring the situation and analyzing the case to identify potential threat-hunting campaigns. This advisory will be updated if required.
IDs
- CVE-2026-125812
- CWE-22 (Improper Limitation of a Pathname to a Restricted Directory, as listed by NVD/CNA Patchstack)
- Vendor Advisory: Patchstack WP Rocket < 3.24.2 RCE advisory (PSID df380380db42)
- Tenable plugin ID: in test stage.
- Qualys QID: not available yet.
References
- Patchstack, Critical WP Rocket RCE (CVE-2026-125812) Under Active Attack: https://patchstack.com/articles/critical-wp-rocket-rce-cve-2026-125812-under-active-attack/
- Patchstack database, WP Rocket < 3.24.2 RCE: https://patchstack.com/database/wordpress/plugin/wp-rocket/vulnerability/wordpress-wp-rocket-plugin-3-24-2-remote-code-execution-rce-vulnerability
- WP Rocket < 3.24.2 - Unauthenticated Remote Code Execution: https://www.wordfence.com/threat-intel/vulnerabilities/wordpress-plugins/wp-rocket/wp-rocket-3242-unauthenticated-remote-code-execution
- The Hacker News: https://thehackernews.com/2026/12/hackers-target-critical-wp-rocket-flaw.html
- NIST NVD, CVE-2026-125812 (user-supplied HTML export, 2026-12-02): https://nvd.nist.gov/vuln/detail/cve-2026-125812
- FIRST EPSS: https://www.first.org/epss/
- CISA Known Exploited Vulnerabilities Catalog: https://www.cisa.gov/known-exploited-vulnerabilities-catalog
- Tenable Plugins Pipeline: https://www.tenable.com/plugins/pipeline
- Qualys Vulnerability Detection Pipeline: https://www.qualys.com/vulnerability-detection-pipeline





.avif)



.webp)


.webp)