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. The CSS caching function FilesystemCache::generate_path() constructs filesystem destinations from URL-derived host and path components without adequate normalization, validation, or directory-containment checks. An equivalent weakness affects local font storage through Fonts\Filesystem::write_font_css(). Attacker-influenced URLs can direct downloaded content outside the intended cache directories under attacker-influenced filenames, potentially enabling remote code execution. Patchstack classifies the vulnerability 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.
Impact
What an attacker gets, and what they’ve been doing with it.
Successful exploitation can write attacker-controlled fetched content outside the intended cache or font directories. If the destination and filename permit server-side execution, this enables remote code execution with the permissions of the affected web application process, potentially compromising site data, modifying application content, and disrupting service. The CNA assessment indicates high confidentiality, integrity, and availability impact. Active exploitation has not been confirmed.
Mitigation
If you can’t patch tonight, do this now.
Patchstack issued an interim attack-blocking rule, but its implementation details are not public. Disabling an individual caching or font feature is not established as a reliable workaround because the exact 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 reactivation with a patched version. Malicious cached content alone does not establish exploitation of this vulnerability.
Remediation
Patch, then assume compromise.
Upgrade WP Rocket to version 3.24.2 or later and verify that the installed version reflects the update. Version 3.24.2 adds path normalization, host and filename validation, directory-containment enforcement, restrictions against executable filenames, font-content verification, and stricter URL handling. Updates can be applied through WordPress or manually; unattended automatic updates are disabled, and expired licenses can prevent access to plugin updates.
Exploits
1 exploit validated by Mallory's analysis.
References
Frequently asked questions
- Is CVE-2026-125812 exploited in the wild?
- As of Nov 28, 2026, Mallory has no reports of CVE-2026-125812 being exploited in the wild. It is not listed in CISA KEV.
- Is there a public exploit for CVE-2026-125812?
- Yes. Mallory tracks 1 public exploit or proof of concept for CVE-2026-125812, the earliest disclosed Nov 25, 2026.
- Is there a patch for CVE-2026-125812?
- Upgrade WP Rocket to version 3.24.2 or later and verify that the installed version reflects the update. Version 3.24.2 adds path normalization, host and filename validation, directory-containment enforcement, restrictions against executable filenames, font-content verification, and stricter URL handling.
- How severe is CVE-2026-125812?
- CVE-2026-125812 has a CVSS v3.1 score of 9.8 (Critical) and an EPSS score of 1.0% (62nd percentile) as of Nov 28, 2026.
Recent activity
16 sources tracked across advisories, community write-ups, and news. New activity surfaces here as Mallory finds it.