Hackers Exploit WP Rocket Flaw to Run Malicious Code on WordPress Sites Without Logging In
What happened?
A critical WP Rocket flaw, CVE-2026-125812 (CVSS 9.8), allows unauthenticated attackers to write and execute malicious PHP code on vulnerable WordPress websites. WordPress administrators should update the plugin to 3.24.2 or later, even if they have not seen signs of an attack. The vendor’s advisory says the flaw affects WP Rocket versions 3.15 through 3.24.1 when either LazyLoad for CSS background images or Host Fonts Locally is enabled. The first setting delays loading background images until they are needed. The second serves Google Fonts from the website itself.
Key details
- A critical WP Rocket flaw allows unauthenticated attackers to write and execute malicious PHP code on vulnerable WordPress sites.
- The vulnerability affects WP Rocket versions 3.15 through 3.24.1 when LazyLoad for CSS background images or Host Fonts Locally is enabled.
- Patchstack recorded the first exploitation attempt on November 25 at 15:27 UTC, six days after the fix was released.
- Automated attacks followed within a day of the initial manual exploitation attempts.
- Patchstack blocked tens of thousands of exploitation requests on November 26 alone.
- Updating the plugin does not remove files an attacker may have already planted on the server.
- Administrators should review web and outbound traffic logs back to at least November 25 for signs of compromise.
What is affected?
- WP Rocket versions 3.15 through 3.24.1 with LazyLoad for CSS background images or Host Fonts Locally enabled.
How do I fix or mitigate it?
- Update WP Rocket to version 3.24.2 or later.
- Patchstack RapidMitigate rule blocks exploitation attempts and was active before the first attack.
What should defenders look for?
- Unusual requests tied to WP Rocket's page measurements.
- Connections from the server to unfamiliar hosts.
- Unexpected PHP files in wp-content, especially wp-content/uploads/ and wp-content/wp-rocket-config/.
- Suspicious filenames such as wp-media-*.php.
Summarised by SecOraLens from Cyber Security News. Always read the original source before acting. How SecOraLens verifies advisories.
What to do next
Brief your board. Brief your team.
Executive risk briefs for governance, technical kill-chains for the SOC — delivered as advisories publish. Critical alerts within 1 hour. No spam, unsubscribe anytime.
