Skip to content
Brief Security & Trust ·

WP Rocket flaw lets attackers run code if either of two non-default options is on

Horizon3.ai says sites are exposed if either option is on, and attacks are confirmed.

In brief
  • Sites running WP Rocket 3.15 to 3.24.1 are exposed if either of two non-default options is on. Patchstack has confirmed attacks.
  • Updating to 3.24.2 or later is required. Turning the options off is only a stopgap.

Horizon3.ai said on 4 December that CVE-2026-125812, a critical flaw in the WP Rocket WordPress plugin, lets attackers take over sites without logging in. It says the plugin is on more than 5.5 million sites. Horizon3 says Patchstack rates the flaw 9.8 out of 10 and has confirmed attacks in the wild.

Horizon3 says the plugin joins the path of an attacker-supplied web address to its cache folder without limits, so a PHP file can land in the public web folder. Either of two settings opens the hole: LazyLoad for CSS background images or Host Fonts Locally. Neither is on by default. Versions 3.15 through 3.24.1 are affected. Version 3.24.2 came out on 19 November, and Horizon3 lists 3.24.3 as the current release. The number of breached sites is not given.

Horizon3's timeline says Patchstack published its advisory on 23 November and saw the first attacks on 25 November. Automated campaigns followed on 26 November, and a public proof-of-concept exists on GitHub. Sites had about two days between the advisory and the first attack. Horizon3 says updating to 3.24.2 or later is required. Turning off both settings is a workaround, not a fix. Attacked sites should be checked for a planted backdoor.

A WebPulse Brief: a short report of an important event, written by the WebPulse Newsroom with AI assistance and checked against the reporting below. When there is more to explain, we follow up with a full story. How we use AI.

Reporting: Horizon3.ai.