# Fix the WP Rocket vulnerability CVE-2026-125812

> Update WP Rocket to 3.24.2 or turn off two settings; neither step removes files an attacker already planted.

Source: https://fullbytedeveloper.com/blog/patch-wp-rocket-rce-cve-2026-125812
Published here: 2026-11-30

The WP Rocket vulnerability CVE-2026-125812 lets an attacker with no login write and run PHP on your site, and Patchstack has logged exploitation attempts since 2026-11-25. Update WP Rocket to 3.24.2 or newer, or turn off LazyLoad for CSS background images and Self-host Google Fonts until you can. [1][2]

Related reading: [Plan for PHP 8.2 end of life](/blog/php-8-2-end-of-life-wordpress), [Patch W3 Total Cache CVE-2026-135616](/blog/patch-w3-total-cache-memcached-poi) and [Patch Drupal SA-CORE-2026-019](/blog/patch-drupal-installer-019-update-php). Browse the [Security topic](https://fullbytedeveloper.com/blog/topic/security).

## Check your WP Rocket version

The WP Rocket advisory lists versions 3.15 through 3.24.1 as affected. Patchstack rates it CVSS 9.8. [1][2]

In the WordPress dashboard, open Plugins and read the WP Rocket version. With WP-CLI, list every plugin with its version. [2][3]

```bash
wp plugin list --fields=name,version,status
```

Anything below 3.24.2 needs the next step today.

## Update to 3.24.2

Version 3.24.2 was released on 2026-11-19, six days before the first attack Patchstack recorded. With an active license, WP Rocket says to open Plugins, select Update now on WP Rocket, then confirm the installed version is 3.24.2 or later. [1][2]

If no update appears, WP Rocket points to its update guide from the same advisory. [2]

## Turn off the two settings if you cannot update

The bug sits in two speed features: CSS background lazy loading and local hosting of Google Fonts. Patchstack says both are off by default but common on tuned sites. [1]

Open WP Rocket, then Page Optimization, then Image & Media (the Media tab on versions before 3.24). Turn off LazyLoad for CSS background images and Self-host Google Fonts, save, and keep them off until 3.24.2 is installed. [2]

For many sites, WP Rocket publishes a mitigation helper plugin that switches both settings off. After downloading its zip from the advisory, install it with WP-CLI. [2]

```bash
wp plugin install ./wp-rocket-mitigate-cve-2026-125812.zip --activate
```

On Multisite, activate the helper on each affected subsite. Then confirm both settings are off on every site. [2]

## Look for files an attacker already planted

**Warning:** updating or switching the settings off does not remove a webshell or an admin account created before you did it. [1][2]

The attack works by making WP Rocket download content from an attacker's server and save it as a PHP file. Patchstack lists where to look: unexpected PHP files in `wp-content/wp-rocket-config/`, `wp-content/uploads/` or directly in `wp-content/`, for example `wp-media-*.php`. [1]

Patchstack also lists outbound requests from your web server to unfamiliar hosts, `nip.io` names or `trycloudflare.com` tunnels as signs, because attackers host payloads there. [1]

List every administrator account and compare it with the people you expect. [4]

```bash
wp user list --role=administrator --format=csv
```

If either setting was on while you ran a vulnerable version, WP Rocket says to ask your host or security team to check for compromise. [2]

Send this to the friend who turned on every WP Rocket speed setting and never looked back.

## Sources

1. [Patchstack: Critical WP Rocket RCE (CVE-2026-125812) under active attack](https://patchstack.com/articles/critical-wp-rocket-rce-cve-2026-125812-under-active-attack/)
2. [WP Rocket: security advisory and mitigation steps for CVE-2026-125812](https://wp-rocket.me/docs/wp-rocket-security-advisory-and-mitigation-steps-for-cve-2026-125812/)
3. [WP-CLI: wp plugin list](https://developer.wordpress.org/cli/commands/plugin/list/)
4. [WP-CLI: wp user list](https://developer.wordpress.org/cli/commands/user/list/)
