News

Critical WP Rocket Flaw Is Under Attack: Update WordPress Sites to 3.24.2

Rajat Chauhan
Published By
Rajat Chauhan
Updated Dec 2, 2026 3 min read
Critical WP Rocket Flaw Is Under Attack: Update WordPress Sites to 3.24.2

Attackers are exploiting a critical flaw in WP Rocket, a paid caching plugin for WordPress, that lets them run their own code on a website without logging in. The flaw, CVE-2026-125812, is fixed in version 3.24.2, released on 19 November 2026. Security firm Patchstack says attacks began on 25 November.

What changed

WP Rocket released version 3.24.2 on 19 November 2026. Its changelog describes the fix in one line: "Improve validation of cached CSS, font and preconnect files".

WP Rocket changelog entry for version 3.24.2, dated November 19, 2026 and captured on 2 December 2026, listing two bug fixes and a line reading Security: Improve validation of cached CSS, font and preconnect files

The fix as it appears in WP Rocket's own changelog, captured on 2 December 2026. Source: wp-rocket.me.

On 27 November, Patchstack reported that the flaw behind that line is being exploited. It rates CVE-2026-125812 at 9.8 out of 10 and says it "lets unauthenticated attackers write and execute PHP code on affected sites". According to Patchstack:

  • every WP Rocket version before 3.24.2 is affected, but only on sites where LazyLoad for CSS background images or Host Fonts Locally is switched on;
  • its first recorded exploitation attempt was on 25 November 2026 at 15:27 UTC, and the volume "has risen sharply since".
Summary table from Patchstack's report of 27 November 2026, captured on 2 December 2026: CVE-2026-125812, product WP Rocket, unauthenticated remote code execution, CVSS 9.8 critical, active exploitation observed, no authentication required, affected versions below 3.24.2 with LazyLoad for CSS background images or Host Fonts Locally enabled, fixed version 3.24.2

Patchstack's summary of the flaw, from its report of 27 November 2026 as captured on 2 December 2026. Source: patchstack.com.

Wordfence, another WordPress security company, lists the same flaw at 9.8. When we checked its page on 2 December 2026, it said Wordfence had blocked 28,016 attacks on this flaw in the previous 24 hours.

What it means for you

  • Check your version today. In WordPress, open Plugins and look at the WP Rocket row. Anything below 3.24.2 needs updating now. WP Rocket is a paid plugin, so if your licence has lapsed the update may not show up in the dashboard.
  • If you can't update at once, Patchstack's advice is to turn off both LazyLoad for CSS background images and Host Fonts Locally. Treat that as a stopgap until you update.
  • Updating does not clean a hacked site. Patchstack warns that the update "does not remove files an attacker already planted". If the site ran an older version with either setting on, look for PHP files you don't recognise, especially ones named wp-media-*.php, in wp-content/wp-rocket-config/, wp-content/uploads/ and wp-content/.
  • If you find one, assume the site is compromised: restore a clean backup from before 25 November, then change admin passwords and database credentials.
  • Not on WordPress? You are not affected. We reported a similar attack on Drupal sites last week in our post on the Drupal installer flaw.

What we don't know yet

Nobody has said how many sites have been broken into. WP Rocket's changelog does not mention the CVE or the attacks, and we found no separate security notice from the company. The share of WP Rocket sites with either setting switched on is also unknown; Patchstack says both are off by default but "common on performance-tuned sites".

Sources

Rajat Chauhan

Rajat Chauhan

Msc Machine Learning in Science UoN | Founder rainaiservices.com