Skip to content

Plugins & ToolsNews

Critical WP Rocket flaw lets attackers run code without logging in

WP Rocket before 3.24.2 has a 9.8-rated path traversal flaw that lets an attacker with no account run code on the server. Check your version, update, and renew an expired licence to get the fix.

A grey steel filing cabinet in a quiet office with its top drawer pulled fully open, showing rows of manila folders.
Illustration: Socket Journal
On this page
  1. What the flaw is
  2. Is it being exploited?
  3. What to do now
  4. Sources

WP Rocket, one of the most widely used WordPress caching plugins, had a critical flaw that lets an attacker with no account on the site run code on the server. It affects every version before 3.24.2, is rated 9.8 out of 10, and is fixed in 3.24.2, released on 19 November 2026.

If your site runs WP Rocket, check its version today and update to 3.24.2 or later. WP Rocket is a paid plugin that updates through its own licence, not WordPress.org, so sites with an expired licence do not receive the fix.

What the flaw is

The NVD record for CVE-2026-125812, filed by Patchstack and published on 25 November 2026, describes a path traversal flaw (CWE-22) in WP Rocket before 3.24.2. Path traversal means the plugin can be made to read or write files outside the folder it is meant to use.

Patchstack’s advisory, published on 23 November, classifies the result as remote code execution and lists the required privilege as “Unauthenticated”. It credits the researcher Vorelito, who reported the flaw on 4 November. Neither the NVD record nor the public advisory names the vulnerable feature or request.

WP Media’s changelog for 3.24.2 does not mention a CVE. Its only security line reads “Improve validation of cached CSS, font and preconnect files”. Version 3.24.3, released on 26 November, is the newest and also contains the fix.

PluginAffectedFixed inSeverityLogin needed
WP RocketBefore 3.24.23.24.2 (19 November 2026)Critical, 9.8No
Severity is the CVSS 3.1 score Patchstack assigned, as listed by the NVD on 6 December 2026.

Is it being exploited?

Sources differ. Patchstack’s advisory marks the flaw as known to be exploited. The US Cybersecurity and Infrastructure Security Agency (CISA) had not added it to its Known Exploited Vulnerabilities catalogue as of the 4 December edition, and CISA’s own assessment in the NVD record, dated 25 November, recorded no exploitation at that time while rating the flaw automatable with total technical impact.

Automatable, unauthenticated flaws in popular plugins tend to be scanned for widely soon after disclosure, so treat an unpatched site as at risk whatever the current reports say.

What to do now

  1. Check the installed version under Plugins → Installed Plugins, or with wp plugin get wp-rocket --field=version.
  2. If it is older than 3.24.2, update it from Dashboard → Updates. Then clear WP Rocket’s cache so pages are rebuilt by the new version.
  3. If no update appears, check the licence. WP Rocket’s documentation on expired licences says plugin updates stop when a licence expires, and that the renewal link keeps working afterwards. Renew it, or deactivate and delete WP Rocket and use another caching plugin until you can.
  4. Look for signs of an earlier break-in: administrators you did not create (wp user list --role=administrator --fields=ID,user_login,user_registered), and plugins, themes or PHP files you did not install.

We checked the commands above on WordPress 7.1.5 with WP-CLI 3.0.1. Agencies can find WP Rocket across their sites with wp @all plugin list --name=wp-rocket --fields=name,status,version if they keep WP-CLI aliases. Our story on the Essential Widgets admin takeover flaw has a fuller checklist for checking a site after a critical plugin flaw.

Sources

Written by

Socket Journal Staff

The Socket Journal newsroom reports on WordPress, plugins, hosting and AI for people who run websites. We check every fact against primary sources and test our guides on a real WordPress site.

The Friday Patch

One email a week with what changed for people who run websites: releases, security fixes, AI tools worth trying and the week’s best guides.