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

· Original article ↗

Summary

Attackers are exploiting CVE-2026-125812 in WP Rocket versions before 3.24.2 when either of two optional features is enabled, allowing unauthenticated PHP-code execution. WP Media patched it; Patchstack reports automated attacks and 25,000+ blocked requests.

Key points

  • CVE-2026-125812 stems from insufficient validation at a public endpoint, allowing unauthenticated attackers to write and run PHP code downloaded from an external source.
  • The flaw affects WP Rocket versions before 3.24.2 when either “LazyLoad for CSS background images” or “Host Fonts Locally” is enabled; both options are inactive by default.
  • Patchstack observed low-scale manual exploitation attempts on November 25, followed by fully automated campaigns the next day.
  • Attackers reportedly hosted payloads on bare IP addresses, wildcard DNS such as nip[.]io, temporary trycloudflare[.]com tunnels, and other WordPress sites described as likely compromised.
  • WP Media released a fix on November 19; users should upgrade to WP Rocket 3.24.2 or later. If they cannot upgrade, the article advises disabling the two affected features.
  • Patchstack says its security platform blocked more than 25,000 malicious requests from multiple attackers. Updating does not remove files already planted, so administrators should review logs for suspicious requests and outbound connections.

Article Details

Vulnerability Types
  • Insufficient validation of data sent to a public endpoint, enabling unauthenticated arbitrary PHP code execution
Severity
Critical
Affected Versions
  • WP Rocket versions before 3.24.2
Exploitation Status
active
Exploit Availability
unknown
Patch Status
available
Workarounds
  • Turn off LazyLoad for CSS background images and Self-host Google Fonts in WP Rocket's Page Optimization settings.

MITRE ATT&CK

CVE

Vendors

Products

Related Articles