WP Rocket 3.15 through 3.24.1: Actively Exploited RCE (CVE-2026-125812)
Update WP Rocket to 3.24.2 or later. Versions 3.15 through 3.24.1 are affected by CVE-2026-125812 when LazyLoad for CSS background images or Self-host Google Fonts is enabled. Patchstack rates the flaw Critical (CVSS 9.8) and reported automated exploitation attempts on November 27, 2026.
Which sites are affected?
One of the two features must be enabled on an affected installation. No WordPress account is required. The vulnerability is in how WP Rocket handles untrusted input while processing locally cached assets. On an affected site, this can result in server-side PHP execution. The attack attempts reported by Patchstack do not by themselves establish how many sites were compromised.
Patch or temporarily disable both features
Update through the WordPress Plugins screen using the official WP Rocket update channel. Check the installed version on each site, including staging and multisite installs. If the upgrade is not available, open WP Rocket > Page Optimization > Image & Media (the Media tab on versions before 3.24), turn off both affected features, save, and verify that both settings remain off. This is a temporary mitigation, not a substitute for upgrading.
Check for compromise
If either feature was enabled on an affected version, retain web, PHP and outbound network logs. Review activity from November 25, when Patchstack first observed an exploitation attempt, and extend the review to earlier retained logs if available. Look for unexpected outbound connections from the web server, unfamiliar executable files in normally non-executable cache or media paths, and unauthorized administrator accounts or scheduled tasks. An unusual request is a lead, not proof of compromise.
For an installed-version check, run this read-only command from the WordPress installation:
wp plugin get wp-rocket --field=version
Patching does not remove files or accounts planted before the update. If you find evidence of code execution, isolate the installation, preserve a forensic copy, and coordinate recovery with your host or incident-response team. Restore or rebuild from known-clean software and backups, remove unauthorized access, rotate credentials and invalidate sessions after containment, then verify normal site operation before reopening.
Does CVE-2026-125812 affect AccelerateWP?
Yes. On December 2, Patchstack disclosed that AccelerateWP, a fork of WP Rocket, also carries CVE-2026-125812. The affected features are off by default in AccelerateWP, but builds older than 3.24.2-1.1-55 are exposed if CSS background lazy loading or local font hosting is enabled. That build number is specific to AccelerateWP and differs from the WP Rocket fix.
Ask your hosting provider to confirm that your site is running AccelerateWP 3.24.2-1.1-55 or later. If the update is not yet available, disable both affected features and verify that they stay off. If either feature was enabled while the site was vulnerable, preserve logs and have your host check for unexpected PHP files and signs of compromise. See the Patchstack advisory for AccelerateWP.
Sources
WP Rocket vendor advisory and mitigation instructions · Patchstack exploitation report and detection guidance