Critical WP Rocket Vulnerability Exploited to Execute Unauthenticated PHP Code
Unauthenticated hackers are actively exploiting a critical vulnerability in the WP Rocket caching plugin to execute arbitrary PHP code on WordPress sites.
Tracked as CVE-2026-125812, the flaw carries a severity rating of 9.8 out of 10 and affects all versions prior to 3.24.2, according to ITdaily. The paid performance plugin, developed by WP Media, runs on more than 5.6 million websites globally across 394,000 customers, as reported by bleepingcomputer.com.
The vulnerability stems from insufficient validation of data sent to a public endpoint used by the plugin’s page measurement scripts. Attackers manipulate reporting requests to force target servers into downloading and storing external PHP files without requiring any login credentials.
Sites remain vulnerable only if specific configuration choices are active. “Both features stand off by default, but they appear frequently on sites tuned for speed,” Dave Jong, Security Research Lead at Patchstack, wrote in findings cited by ITdaily. Attackers target the LazyLoad for CSS background images and Host Fonts Locally options, sometimes combining both settings into a single request.
Security firm Patchstack detected the initial manual exploitation attempt on November 25 at 15:27 UTC. Activity quickly escalated the following day into automated campaigns that triggered thousands of blocks.
Patchstack blocked more than 25,000 malicious requests originating from multiple actors, noting that certain groups distributed identical code through rotating proxy pools of residential IP addresses. Attackers hosted their payloads on bare IP addresses, wildcard DNS names such as nip.io, temporary trycloudflare.com tunnels, and other WordPress sites that were likely already compromised.

WP Media released fixes for the vulnerability on November 19 and published an advisory urging administrators to upgrade. Updating the software, however, does not remove malicious files already deployed by attackers.
Developed by WP Media, a company created in 2014 and headquartered in Lyon, France, WP Rocket stands as a major force in web performance optimization. Operating with an employee base working remotely in multiple locations throughout the world, WP Media provides software that has propelled its flagship caching plugin onto millions of websites globally.
Administrators managing sites that ran a vulnerable version must inspect directories like wp-content/wp-rocket-config/ and wp-content/uploads/ for unauthorized PHP files and review server logs for outbound connections to unknown servers. For sites unable to update immediately, operators should disable the vulnerable lazy-loading and font-hosting options or deploy a vendor-provided helper plugin.