Attackers are exploiting a critical vulnerability in the WP Rocket WordPress caching plugin only days after the vendor released a fix, turning vulnerable websites into potential footholds for arbitrary PHP execution. Tracked as CVE-2026-125812, the flaw carries a CVSS 3.1 score of 9.8 from the submitting CNA, Patchstack, and requires no authentication.
The vulnerability is a path-traversal issue caused by insufficient validation of URLs submitted during WP Rocket’s page-optimization process. A crafted request can cause a vulnerable site to retrieve attacker-controlled content and write it as a PHP file outside the plugin’s intended cache location. An attacker can then request that file to execute code with the privileges of the web server, potentially compromising the site’s content, credentials and underlying hosting environment.
WP Media’s security advisory says the affected range is WP Rocket 3.15 through 3.24.1 when either “LazyLoad for CSS background images” or “Self-host Google Fonts” is enabled. Version 3.24.2, released November 19, contains the fix. The NVD record describes the issue as improper limitation of a pathname to a restricted directory and lists all versions below 3.24.2 as affected.
Patchstack reported the first exploitation attempt on November 25 at 15:27 UTC, six days after the patched release, with activity escalating from low-volume manual attempts to automated campaigns. The reports establish active exploitation but do not attribute the activity to a named threat actor. The NVD entry is currently marked deferred for enrichment, so the 9.8 rating should be understood as the available secondary CVSS assessment rather than an NVD-produced score.
Administrators should update WP Rocket to 3.24.2 or a later release immediately, even if the vulnerable optimization features are not knowingly in use, and should review web-server, WordPress and file-integrity logs for unexpected PHP files or suspicious requests. Sites that could not be patched before exploitation began should be treated as potentially compromised: defenders should inspect administrator accounts, scheduled tasks, plugins, themes and outbound connections, rotate exposed credentials and investigate persistence before returning the site to normal operation.
