CVE-2026-125812
December 2, 2026
·
0
Minutes Read

Critical WP Rocket Plugin Flaw Allows Unauthenticated Remote Code Execution Under Active Attack

Advisory
Security Advisory
December 2, 2026
·
0
Minutes Read

Critical WP Rocket Plugin Flaw Allows Unauthenticated Remote Code Execution Under Active Attack

Advisory
Security Advisory
December 2, 2026
·
0
Minutes Read
Kudelski Security Team
Find out more
table of contents
Share on
Thank you! Your submission has been received!
Oops! Something went wrong while submitting the form.

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.php with action=rocket_beacon, especially from the source IPs below or with the anomalies described above.
  • Search for unexpected wp-media-*.php files in wp-content/wp-rocket-config/, wp-content/uploads/ and wp-content/.
  • Review outbound connections from the web server to unfamiliar hosts, nip.io names and trycloudflare.com tunnels.

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

Related Post