Critical WP Rocket RCE Vulnerability Under Active Attack
A critical unauthenticated remote code execution vulnerability (CVE-2026-125812) in the popular WP Rocket WordPress plugin is being actively exploited by attackers.

A critical vulnerability affecting the widely-used WP Rocket caching plugin for WordPress has been discovered and is currently under active exploitation. Tracked as CVE-2026-125812, the flaw allows unauthenticated attackers to execute arbitrary PHP code on vulnerable websites, posing a significant risk to site owners and their users.
The vulnerability resides in specific optimization features within WP Rocket, namely LazyLoad for CSS background images and Host Fonts Locally. While these features are off by default, they are commonly enabled on sites optimized for performance. When activated, these features interact with a public AJAX endpoint in a way that does not sufficiently validate user-provided data. Attackers can craft malicious requests to this endpoint, tricking the plugin into downloading and executing attacker-controlled PHP code on the server.
Patchstack, the security firm that identified and reported the vulnerability, observed the first exploitation attempts on November 25, 2026. Since then, the volume of attacks has surged dramatically, evolving from manual probes to widespread automated campaigns. Tens of thousands of blocked exploitation attempts were recorded within a single day, indicating a rapid and aggressive adoption by threat actors.
Attackers are employing sophisticated techniques to maximize their success rate. They are observed using both optimization feature paths within a single request to ensure exploitation regardless of which feature is enabled on a target site. Payloads are hosted on various infrastructure, including bare IP addresses, wildcard DNS names, and temporary tunnels, making attribution and blocking more challenging. Some attackers also perform initial checks to confirm a site's vulnerability before deploying their malicious code.
The exploitation status is critical, with active, widespread exploitation confirmed. The CVSS score for CVE-2026-125812 is a near-perfect 9.8, classifying it as Critical. The vulnerability affects all WP Rocket versions prior to 3.24.2 when the aforementioned optimization features are enabled. The fixed version, 3.24.2, was released to address this issue.
Patchstack has deployed a mitigation rule to protect its users from exploitation attempts. However, the update to version 3.24.2 does not automatically remove any malicious files that may have already been planted by attackers on compromised systems. Site administrators are advised to update WP Rocket immediately and to manually check for any unexpected PHP files in common plugin directories like wp-content/wp-rocket-config/, wp-content/uploads/, or directly within wp-content/.
In response to the active exploitation, CISA has not yet added this vulnerability to its Known Exploited Vulnerabilities (KEV) catalog, but given the widespread nature of the attacks, this is a likely future development. Users are strongly urged to update their WP Rocket installations to the latest version to prevent further compromise. For those unable to update immediately, disabling the LazyLoad for CSS background images and Host Fonts Locally features can serve as a temporary mitigation.