CVE-2026-125812: Critical RCE in WP Rocket

A critical vulnerability in the WP Rocket WordPress plugin allows unauthenticated attackers to execute arbitrary PHP code on vulnerable websites. The flaw has a CVSS score of 9.8 and is being actively exploited. Administrators should immediately update WP Rocket to version 3.24.2 or later.

On November 25, 2026, a critical security vulnerability identified as CVE-2026-125812 was publicly disclosed in WP Rocket, a popular caching and performance optimization plugin for WordPress.

The vulnerability allows remote attackers to execute arbitrary PHP code on affected websites without authentication when certain optimization features are enabled.

Security researchers at Patchstack have confirmed active exploitation attempts, including automated campaigns targeting vulnerable WordPress installations.

Security Vulnerability

Parameter Description
CVE Identifier CVE-2026-125812
Affected Software WP Rocket
Vendor WP Media
CVSS 3.1 Score 9.8
Severity Critical
CWE Identifier CWE-22
Vulnerability Type Path Traversal
Security Impact Remote Code Execution (RCE)
Attack Vector Network
Attack Complexity Low
Privileges Required None
User Interaction None
Active Exploitation Confirmed
Security Fix Available

Vulnerability Details

WP Rocket collects browser-generated performance measurements to optimize website resources.

Insufficient validation of incoming data allows an unauthenticated attacker to bypass filesystem restrictions and place malicious PHP content on the affected server.

The uploaded code may subsequently be executed with the permissions of the web server or PHP process.

Exploitation requires at least one of the following optimization features to be enabled:

  • LazyLoad for CSS background images.
  • Host Fonts Locally (Self-host Google Fonts).

Both features are disabled by default. However, they may be enabled on websites configured for advanced performance optimization.

Affected and Fixed Versions

According to the official WP Rocket security advisory, the following versions are affected:

WP Rocket Version Status
Before 3.15 Outside the vendor-reported affected range
3.15–3.24.1 Vulnerable when affected features are enabled
3.24.2 and later Fixed

The security fix was released on November 19, 2026.

Administrators should install the latest available stable release rather than remaining on an older version.

Active Exploitation

Patchstack detected initial exploitation attempts on November 25, 2026.

Within approximately one day, the activity escalated from isolated attempts to automated attack campaigns.

Internet-facing WordPress installations running vulnerable plugin versions should therefore be considered a high-priority security risk.

The number of successfully compromised websites has not been publicly established.

Security Impact

Depending on application permissions and server configuration, successful exploitation may result in:

  • Unauthorized execution of PHP code.
  • Complete WordPress website takeover.
  • Theft of database credentials and sensitive configuration data.
  • Unauthorized creation of administrator accounts.
  • Installation of web shells and persistent backdoors.
  • Modification of website content.
  • Injection of malicious JavaScript.
  • Distribution of malware and phishing content.
  • Unauthorized access to other websites if hosting isolation is insufficient.

The vulnerability is particularly relevant to hosting environments where multiple websites share operating system resources.

Checking Installed Versions

Administrators can check the installed WP Rocket version through the WordPress administration dashboard under Plugins > Installed Plugins.

Alternatively, if WP-CLI is available, run the following command from the WordPress installation directory:

wp plugin get wp-rocket --field=version

To display the plugin version and activation status:

wp plugin status wp-rocket

For environments hosting multiple WordPress installations, each website should be checked individually.

Update Recommendations

We strongly recommend that customers running WordPress with WP Rocket on their virtual or dedicated servers immediately update the plugin to version 3.24.2 or later.

Updating WP Rocket

Use one of the following methods to install the available security update.

  1. Log in to the WordPress administration dashboard.
  2. Navigate to Plugins > Installed Plugins.
  3. Locate WP Rocket.
  4. Select Update now.
  5. Verify that the installed version is 3.24.2 or later.

Run the following commands from the WordPress installation directory:

wp plugin update wp-rocket
wp plugin get wp-rocket --field=version

WP Rocket is a commercial plugin. Installing updates may require a valid license and access to the vendor's update service.

If the update is unavailable through WordPress, download the latest plugin package from your official WP Rocket account and follow the vendor's installation instructions.

Important: Create a complete backup of your WordPress files and database before performing an update.

Temporary Mitigation

If an immediate update is not possible, disable both affected optimization features.

Navigate to the following section in the WordPress administration dashboard:

WP Rocket > Page Optimization > Image & Media

For versions earlier than 3.24, use the Media tab.

Disable the following options:

  • LazyLoad for CSS background images.
  • Self-host Google Fonts.

Save the configuration, clear the website cache, and verify that both features remain disabled.

Additional protective measures include:

  • Applying available Web Application Firewall (WAF) protection.
  • Restricting unnecessary outbound connections from PHP processes.
  • Enforcing appropriate filesystem permissions.
  • Disabling PHP execution in directories that do not require it.
  • Ensuring proper isolation between hosted websites.

Warning: Disabling the affected features mitigates the documented attack paths but does not resolve the underlying vulnerability. Installing the security update remains necessary.

Detection and Investigation

Administrators should investigate websites that were previously running vulnerable versions with either affected feature enabled.

Pay particular attention to unexpected PHP files in the following directories:

  • wp-content/
  • wp-content/uploads/
  • wp-content/wp-rocket-config/

Checking for Recently Modified PHP Files

Run the following command from the WordPress installation directory:

find wp-content/ -type f -iname '*.php' \
    -newermt '2026-11-25 00:00:00 UTC' -ls

Review the results carefully. Recently modified files are not necessarily malicious and may originate from legitimate plugin updates.

Verifying WordPress Integrity

If WP-CLI is available, verify the integrity of WordPress core files:

wp core verify-checksums --include-root

Review installed plugins and administrative accounts:

wp plugin list
wp user list --role=administrator

WordPress core checksum verification does not validate commercial plugins or custom application files.

Administrators should also review web server access logs, PHP error logs, and outbound network activity for suspicious behavior.

Security Recommendations

Considering the critical severity of CVE-2026-125812 and confirmed exploitation activity, administrators should prioritize the following actions:

  • Update WP Rocket to the latest available stable release.
  • Disable affected optimization features until updates are installed.
  • Audit all WordPress installations, including staging environments.
  • Investigate unexpected PHP files and administrative accounts.
  • Review web server and application logs.
  • Implement appropriate filesystem permissions.
  • Maintain isolation between hosted websites.
  • Keep WordPress core, themes, and plugins updated.
  • Maintain regular backups of website files and databases.
  • Rotate potentially compromised credentials following incident containment.

If compromise is suspected, isolate the affected website and perform a security investigation before restoring normal operations.

Installing the security update prevents further exploitation through the documented vulnerability but does not remove existing malicious files, unauthorized accounts, or persistent backdoors.

patching rce vulnerability wordpress wprocket

USB2Shell: Linux Root Access via USB

A Linux kernel vulnerability dubbed USB2Shell (CVE-2026-98232) allows attackers to execute arbitrary commands with root privileges by connecting a malicious USB device. No authentication or user interaction is required. Security patches are available for affected kernel branches.

Read more

CVE-2026-132165: Critical RCE in Drupal Core

A critical vulnerability in the Drupal Core installer may allow unauthenticated remote attackers to take control of vulnerable websites and execute arbitrary code. Active exploitation has been reported, and administrators are strongly encouraged to apply the available security updates immediately.

Read more

Ready to launch your VPS?

Choose a plan that suits your needs and enjoy fast NVMe SSD storage.

Get started