CVE-2026-125812 is a critical path traversal vulnerability in WP Rocket, a premium WordPress caching and performance plugin from WP Media installed on more than 5.5 million sites. An unauthenticated remote attacker can cause the plugin to fetch an attacker-controlled URL and write its contents to a traversed filesystem path, planting an executable PHP file in the webroot and achieving remote code execution as the web-server user. The vulnerability is only exploitable when one of two non-default options — LazyLoad for CSS background images or Host Fonts Locally — is enabled. Patchstack rates the vulnerability 9.8 (Critical) under CVSS v3.1 and has confirmed active exploitation in the wild. Horizon3 attack researchers reverse engineered the patch to validate the vulnerability.
Technical Details
WP Rocket’s font optimization feature detects Google Fonts referenced on a page and re-hosts them locally. When it processes an attacker-influenced URL, the plugin builds the local destination path by joining a base cache directory to the URL’s path component without canonicalizing or bounding it, so directory-traversal sequences escape the intended cache directory. Because the written content is taken from the attacker-controlled source and no file-type or content check is applied before the write, an attacker can place a PHP file in a web-reachable location and execute it. The LazyLoad-for-CSS-background-images feature reaches the same unvalidated write. Version 3.24.2 adds stricter validation of cached CSS, font, and preconnect files, clamping the write path and rejecting non-font content.
Weakness: CWE-22, Improper Limitation of a Pathname to a Restricted Directory (Path Traversal)
Attack vector: Network; the site must be reachable and running an affected, feature-enabled configuration
Authentication: None
User interaction: None
Impact: Remote code execution as the web-server user (high confidentiality, integrity, and availability impact)
CVSS v3.1: AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H (9.8, Critical)
Internet exposure is the common case, but any reachable WordPress site running an affected, feature-enabled version is exploitable without authentication or user interaction.
Affected Versions & Patch
Affected
- WP Rocket 3.15 through 3.24.1, when LazyLoad for CSS background images or Host Fonts Locally is enabled
Fixed
- WP Rocket 3.24.2 (and later; 3.24.3 is the current release)
Mitigations
If you cannot upgrade immediately, disable both “LazyLoad for CSS background images” and “Host Fonts Locally” in WP Rocket, which removes the exploitable paths. Patchstack has also published a virtual patch (vPatch) rule for the vulnerability. These are workarounds, not a fix; upgrading to 3.24.2 or later remains required, and a site that was already exploited must also be checked for a planted webshell.
Timeline
- November 19, 2026: WP Rocket 3.24.2 released, fixing the vulnerability.
- November 23, 2026: Patchstack published its advisory for CVE-2026-125812.
- November 25, 2026: NVD published the CVE record; Patchstack observed the first in-the-wild exploitation.
- November 26, 2026: Automated exploitation campaigns observed; WP Rocket 3.24.3 released.
References
- Patchstack Advisory: WP Rocket < 3.24.2 Remote Code Execution (CVE-2026-125812)
- NIST NVD Record: CVE-2026-125812
- WP Rocket Changelog
- Public proof-of-concept (GitHub: joshuavanderpoll/CVE-2026-125812)
- SecurityWeek: Critical WordPress WP Rocket Vulnerability Exploited Days After Patching
- BleepingComputer: Hackers exploit critical WordPress WP Rocket flaw to breach sites





