Hackers exploit critical WordPress WP Rocket flaw to breach sites
Hackers are actively exploiting critical vulnerability CVE-2026-125812 in the WP Rocket WordPress plugin to execute arbitrary PHP code on unpatched sites.
By Dillip Chowdary • Nov 30, 2026 • Source: BleepingComputer

At a glance
- Product
- WP Rocket
- Developer
- WP Media
- Vulnerability ID
- CVE-2026-125812
- Fixed version
- 3.24.2
- Release date
- November 19
- Customer count
- 394,000 customers
In this post
Threat actors are actively exploiting a critical vulnerability in the WP Rocket WordPress caching plugin to execute arbitrary PHP code on target servers, according to BleepingComputer's report. Tracked as CVE-2026-125812, the security defect allows unauthenticated attackers to send data to an exposed public endpoint, write malicious scripts directly to the filesystem, and execute payloads retrieved from remote servers. Developer WP Media addressed the issue by releasing version 3.24.2 after discovering that specific media and font optimization configurations exposed websites to takeover.
This breakdown details the mechanics behind CVE-2026-125812, the timeline of public exploitation, and the administrative steps required to neutralize attacks. WordPress site administrators, agency technical leads, and web security teams managing client estates should audit current WP Rocket configurations immediately. Understanding how automated exploit scripts chain these caching features helps teams locate injected backdoors and prevent automated intrusions across managed WordPress environments.
01Unauthenticated remote code execution in caching endpoints
The critical security flaw stems from insufficient input validation within a publicly accessible endpoint exposed by the plugin. Attackers exploit this gap by submitting crafted network requests containing external URLs, forcing the plugin to download PHP code from an attacker-controlled server and store it locally. Once the malicious PHP script resides on the WordPress web server, the attacker requests the file directly to execute arbitrary code with web server permissions.
The vulnerability affects all WP Rocket versions prior to 3.24.2 whenever specific performance settings are enabled. Specifically, installations running the LazyLoad for CSS background images feature or the Host Fonts Locally option allow external data processing without proper authentication. Because these functions handle external asset processing, their underlying handlers fail to sanitize remote paths before writing script content to disk.
Note: Both the CSS background image lazy loading and local font hosting settings remain inactive by default on fresh installations.
02Five million sites and patch deployment timeline
WP Rocket operates as a paid WordPress performance plugin providing page caching, CSS code optimization, and media lazy loading across large web environments. The plugin developer reports that more than 394,000 paying customers run the software across more than 5.6 million active WordPress installations worldwide. This large footprint makes performance-related flaws in the plugin attractive targets for automated compromise operations.
Developer WP Media prepared and released security patches resolving the flaw on November 19, issuing version 3.24.2 to close the endpoint validation gap. The company followed the release by publishing a detailed security advisory over the following weekend, advising all customers to upgrade immediately. The advisory warned site owners that leaving unpatched installations online creates direct remote execution pathways.
Security teams emphasize that deploying the patch closes the vulnerable endpoint but leaves existing file modifications intact. Administrators managing extensive deployments faced a narrow window between WP Media's weekend advisory and the appearance of active attack scripts against exposed endpoints.
Advertisement
Tech Pulse Daily
Get tomorrow's pulse first
Join engineers who read Tech Pulse before stand-up. Free, weekday mornings.
03Automated exploitation wave across twenty-five thousand requests
Security research firm Patchstack detected the earliest malicious activity targeting CVE-2026-125812 on November 25 at 15:27 UTC. Those initial interactions began as low-scale, manual attempts to verify whether target sites processed remote payload strings through the caching plugin. Within twenty-four hours, the reconnaissance phase shifted into high-volume, fully automated exploitation campaigns sweeping the web on November 26.
Patchstack reported that its managed security platform intercepted and blocked more than 25,000 malicious exploitation requests originating from multiple distinct attackers. The automated scripts scanned large IP ranges to discover live WordPress instances utilizing vulnerable WP Rocket asset-processing hooks. The sudden jump from manual validation to automated scanning indicates that threat actors weaponized public patch details rapidly.
Security analysts observed attackers spraying exploit attempts across thousands of domains without verifying whether vulnerable sub-features were switched on beforehand. This blanket approach allowed threat groups to compromise any accessible site that had ever toggled either performance setting on.
04Cloudflare tunnels and dual feature payload delivery
Automated attack traffic demonstrates a high degree of operational flexibility by targeting both susceptible features simultaneously. Threat actors routinely craft individual HTTP requests that target both the CSS background lazy-loading handler and the local font hosting handler in one transmission. As Patchstack observed, this dual-path attack structure guarantees that if a site runs either feature, the exploit executes successfully.
To host their intermediate payloads, attackers rely on varied network infrastructure designed to evade domain reputation filters. Investigators tracked payload URLs pointing to bare IP addresses, temporary trycloudflare.com tunnels, wildcard DNS platforms such as nip.io, and previously compromised WordPress instances. Staging malicious PHP files on compromised third-party blogs helps attackers disguise delivery traffic as legitimate website-to-website communication.
Attacking engines rotate these temporary hosting locations quickly to bypass perimeter domain blocks. Once fetched by WP Rocket, the downloaded PHP script establishes a permanent foothold on the underlying host, allowing attackers to maintain control after payloads expire.
05Settings reconfiguration and server inspection checklist
- Disable image lazyloading Open WP Rocket settings, navigate to Page Optimization, select Image and Media, and uncheck LazyLoad for CSS background images.
- Turn off local font hosting Access the same Media tab settings panel and disable the option labeled Self-host Google Fonts.
- Deploy the vendor mitigation tool Install the dedicated helper plugin provided by WP Media to neutralize the vulnerability across multi-site installations.
- Block known malicious addresses Add attacker IP addresses documented by Patchstack to network edge filters, security plugins, and web application firewalls.
- Audit filesystem and server logs Inspect web access records for suspicious inbound requests and search local disk directories for unauthorized PHP scripts planted prior to patching.
Site administrators who cannot immediately apply the 3.24.2 update must complete the configuration workarounds immediately to break exploit delivery. Updating to a safe version does not remove previously planted files, so website administrators who ran the vulnerable version with either option that opens an exploitation path should review their logs for suspicious requests and outbound connections. Active sites: 5.6 million sites
Frequently asked questions
Which WP Rocket versions are vulnerable to CVE-2026-125812?
All WP Rocket versions released prior to version 3.24.2 contain the remote code execution vulnerability when specific settings are enabled.
Which plugin settings enable the exploitation path?
Exploitation requires enabling either LazyLoad for CSS background images or Self-host Google Fonts, both of which are disabled by default.
Does upgrading to WP Rocket 3.24.2 remove existing backdoors?
Upgrading closes the vulnerable endpoint to prevent new attacks, but it does not remove malicious PHP files planted before the patch was applied.
What workaround is available if an immediate update is not possible?
Administrators can disable both LazyLoad for CSS background images and Self-host Google Fonts under the Media tab, or install WP Media's helper plugin.
Sources
Author
Dillip Chowdary
Writes Tech Bytes coverage of AI, engineering, and the tools that actually ship. Editor of Tech Pulse Daily.
Related on Tech Bytes
Advertisement