Critical WP Rocket flaw is being exploited to plant PHP code on WordPress sites
Sites that run older WP Rocket versions with two optional settings enabled should upgrade to 3.24.2 and check for planted files.
A critical flaw tracked as CVE-2026-125812, scored 9.8 on CVSS, is being actively exploited in the WP Rocket WordPress caching plugin, letting unauthenticated attackers write and run PHP code on affected sites. The weakness lies in how the plugin handles URLs reported to a public endpoint, which can make a site fetch attacker-supplied content and save it as an executable PHP file. It only applies to versions before 3.24.2 when either the CSS background lazy-loading or local Google Fonts hosting option is enabled, though both are off by default. Patchstack recorded the first manual attempts on November 25 and automated campaigns followed the next day, with tens of thousands of blocked requests on November 26 alone. Because the update does not remove files already planted, administrators should upgrade and then review directories and logs for suspicious PHP files and outbound connections.
Why it matters
The flaw, tracked as CVE-2026-125812 and rated 9.8 on CVSS, lets unauthenticated attackers write and run PHP code, so exposure depends on whether a site runs a version before 3.24.2 with LazyLoad for CSS background images or Host Fonts Locally enabled. Both settings are off by default, which narrows the group of affected sites. Patching does not remove files an attacker has already placed, so the risk for an exposed site continues after the update until its directories and logs have been reviewed.
Matters or hype?
Does this story matter, or is it hype? Vote before you see what everyone else said.