A critical flaw in WP Rocket, a caching plugin used on WordPress websites, is being targeted in attacks that can let unauthenticated attackers run PHP code on vulnerable sites. Tracked as CVE-2026-125812, the issue affects WP Rocket versions 3.15 through 3.24.1 when either the LazyLoad for CSS background images or Self-host Google Fonts option is enabled. Both settings are disabled by default, according to the plugin developer and security researchers.
WP Media’s security advisory says the vulnerability is fixed in version 3.24.2, released on November 19. The company advises customers to update to that release or a later version. If an update is not possible immediately, it says disabling both affected options blocks the documented attack paths. Patchstack, which assigned the CVE, rates the flaw 9.8 on the CVSS scale.
Patchstack says it first detected exploitation attempts on November 25 at 15:27 UTC. Activity increased sharply the following day as attackers shifted to automated campaigns, with the security firm recording tens of thousands of blocked requests on November 26 alone. The attacks abuse WP Rocket’s public measurement endpoint to make a vulnerable site fetch a file from an attacker-controlled server and save it as PHP code, which can then run on the website’s hosting environment.
Patchstack observed several operators using different infrastructure to host payloads, including direct IP addresses, wildcard DNS names, temporary Cloudflare tunnels and other WordPress sites that may already be compromised. The company said attackers sometimes test whether a site is vulnerable before sending the full payload.
The issue adds to a series of recent WordPress plugin security problems, including flaws in W3 Total Cache and Popup Builder covered by Abijita.
WP Media warns that installing the update or disabling the affected features does not remove files or accounts attackers may have already created. Sites that ran a vulnerable version with either option enabled should also be checked for signs of compromise. Patchstack points to unexpected PHP files in wp-content/wp-rocket-config/, wp-content/uploads/ or wp-content/, along with suspicious outbound connections and unusual requests to the plugin’s measurement endpoint.




