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

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
T1059 · Command and Scripting InterpreterAttackers can run the downloaded PHP code on vulnerable WordPress sites.T1105 · Ingress Tool TransferThe flaw allows attackers to download PHP code from an external source onto vulnerable WordPress sites.T1190 · Exploit Public-Facing ApplicationAttackers exploit the unauthenticated public endpoint in vulnerable WP Rocket installations.
CVE
Vendors
PatchstackWordPress security firm Patchstack observed the first low-scale, manual exploitation attempts on November 25 at 15:27 UTC, the activity escalating to fully automated campaigns the following day.WP MediaAccording to its developer, WP Media, the plugin is used on more than 5.6 million sites by 394,000 customers.
