Hackers are actively exploiting a critical vulnerability in the WordPress caching plugin WP Rocket, tracked as CVE-2026-125812, that can enable attackers to execute arbitrary PHP code on affected WordPress sites. Multiple reports describe ongoing attempts and focus on how the flaw turns a request into code execution.

Context across outlets centers on Patchstack’s reporting timeline and technical details about the attack path. The vulnerability is linked to WP Rocket’s “measurement beacon,” which sends data via a front-end script to a public AJAX endpoint (admin-ajax.php) using the action rocket_beacon. According to the described analysis, inadequate validation of URL-related inputs can allow an attacker to cause a remote file to be saved within the web root as a .php file, then requested for execution. Exploitation appears conditional: the vulnerable code path is reached when specific WP Rocket performance settings are enabled (such as LazyLoad for CSS background images and “Host Fonts Locally”), which are off by default.

Both sources emphasize that sites running affected WP Rocket versions prior to 3.24.2 are at risk and that 3.24.2 improves validation of cached asset files. One source additionally notes that updates may not remove artifacts from prior exploitation, and recommends checking for unexpected PHP files.