CVE-2026-125812: Unauthenticated Remote Code Execution via Path Traversal in WP Rocket
CVE-2026-125812 is a path traversal vulnerability in WP Media's WP Rocket WordPress plugin affecting versions before 3.24.2; the earliest affected release is unspecified. In the CSS caching functionality, FilesystemCache::generate_path() incorporated URL-derived host and path values into filesystem destinations without sufficient normalization, filename validation, or directory containment checks. The local-font functionality had an equivalent weakness in Fonts\Filesystem::write_font_css(). Attacker-influenced URLs could consequently direct downloaded content outside the intended cache or font directories under attacker-influenced filenames. This file-write capability can enable remote code execution when executable content reaches a location where the server will execute it. The vulnerability is classified as unauthenticated remote code execution with a CNA-assigned CVSS v3.1 score of 9.8.
Impact, mitigation & remediation
What it means and what to do now: patch path, interim mitigations, and the assume-compromise checklist.
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can write attacker-controlled content outside intended plugin storage directories and potentially execute it with the privileges of the web application. This could compromise WordPress data and application integrity and disrupt site availability. The assigned CVSS vector indicates high confidentiality, integrity, and availability impacts. Active exploitation has not been confirmed.
If you can’t patch tonight, do this now.
Patchstack issued an interim attack-blocking rule, but its contents are not public. Disabling an individual CSS or font feature is not established as a reliable workaround because the complete vulnerable entry points and required feature configuration are unspecified. For suspected compromise, disable preloading, clear the cache, deactivate the plugin, and clean the site before reactivating an updated installation. These incident-response measures do not replace patching, and malicious cached content alone does not establish exploitation of this vulnerability.
Patch, then assume compromise.
Upgrade WP Rocket to version 3.24.2 or later and verify that the update was successfully applied. Version 3.24.2, released November 19, 2026, adds path normalization, host and filename validation, directory containment checks, executable-extension restrictions, font-content verification, and stricter handling of untrusted URLs. Administrators should explicitly arrange the update rather than rely on unattended automatic updates; an expired license may prevent access to plugin updates.
1 exploit validated by Mallory's analysis.
Frequently asked questions
10 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.
The version that knows your environment.
