Incident sheet · Security & Risk

Filed
Read
3 min · 538 words
Severity
Routine

Attackers Exploit Critical WP Rocket Flaw to Run PHP Code on WordPress Sites

Unauthenticated attackers exploit CVE-2026-125812 in WP Rocket below 3.24.2 to run remote PHP code. Patchstack has blocked over 25,000 requests targeting 5.6 million sites.

Attackers Exploit Critical WP Rocket Flaw to Run PHP Code on WordPress Sites
Feed — AI-generated

Event log

  1. CVE-2026-125812 affects WP Rocket versions before 3.24.2, fixed on November 19.
  2. WP Rocket runs on more than 5.6 million sites with 394,000 customers.
  3. First exploitation attempts were observed November 25 at 15:27 UTC; automation began the next day.
  4. Patchstack has blocked more than 25,000 malicious requests from multiple attackers.
  5. Exploitation requires 'LazyLoad for CSS background images' or 'Host Fonts Locally' to be enabled.

Attackers are actively exploiting a critical vulnerability in the WP Rocket caching plugin, tracked as CVE-2026-125812, to execute arbitrary PHP code on WordPress sites. Patchstack, a WordPress security firm, has blocked more than 25,000 malicious requests from multiple attackers as automated campaigns escalate.

WP Media, the plugin's developer, says WP Rocket runs on more than 5.6 million sites and serves 394,000 paying customers. The flaw affects versions before 3.24.2. Fixed code shipped on November 19.

What does CVE-2026-125812 allow?

The vulnerability stems from insufficient validation of data sent to a public endpoint. It lets unauthenticated attackers write and run PHP code downloaded from an external source, with no valid credentials required.

Exploitation is possible only when either the 'LazyLoad for CSS background images' or 'Host Fonts Locally' options are enabled. Both settings are inactive by default. Administrators who never turned either option on face a narrower attack surface.

Patchstack observed the first low-scale, manual exploitation attempts on November 25 at 15:27 UTC. The activity escalated to fully automated campaigns the following day.

How are the attacks structured?

The attackers target both vulnerable features, sometimes within a single request, so the exploit fires on any site where at least one risky option is active. Patchstack said: "Attackers use both feature paths, sometimes in one request, so that whichever feature a site has enabled, one of them fires."

The researchers also detailed the attackers' hosting infrastructure. "They host their payloads on bare IP addresses, wildcard DNS names such as nip.io, temporary trycloudflare.com tunnels, and other WordPress sites that are likely compromised," Patchstack said.

What should administrators do now?

WP Media published an advisory over the weekend urging users to upgrade to version 3.24.2 or later. Administrators who cannot upgrade immediately should disable the affected options. The vendor's path is WP Rocket > Page Optimization > Image & Media > Media tab, turning off LazyLoad for CSS background images and Self-host Google Fonts.

Additional mitigation steps:

  • WP Media released a helper plugin for administrators managing multiple websites, to apply the fix across an entire portfolio at once.
  • Patchstack published a list of attacker IP addresses that site owners can add to blocklists immediately.
  • Updating does not remove previously planted files, so administrators who ran a vulnerable version with either risky option enabled should review logs for suspicious requests and outbound connections.

Why does this matter at scale?

The exposure is significant even with the default settings inactive. A paid plugin with 5.6 million installations and 394,000 customers represents a large target base, and the attackers moved from manual probing to fully automated campaigns within roughly 24 hours of the first observed activity. The 25,000-plus blocked requests recorded by Patchstack's platform indicate sustained, multi-attacker volume rather than a single campaign.

Site owners should treat the two non-default options as the trigger condition. Any WordPress deployment running WP Rocket below 3.24.2 with 'LazyLoad for CSS background images' or 'Host Fonts Locally' enabled should upgrade first, then audit for post-compromise artifacts such as injected PHP files and unexplained outbound connections to IP addresses, nip.io domains, or trycloudflare.com tunnels.

via bleepingcomputer.com (Source)

Filed under

Share this article:

More from Rebecca Stone

Rebecca Stone

Show full bio

Senior reporter covering money, funding and market shifts around enterprise information technology and the leaders who run at CIO Monitor.

271 articles

The newsroom digest

One email a day with the stories that matter. No noise.

By subscribing you agree to the privacy policy.

Cross-references

‹ Previous articleNext article ›