All CVEs

WP Rocket, a WordPress caching plugin, lets attackers with no login plant and run PHP code; attacks seen since 25 Nov. Only sites with LazyLoad for CSS background images or Self-host Google Fonts on are at risk. Update to 3.24.2 or later. https://tldrcve.com/wp-rocket-rce/

WP Rocket · CVE-2026-125812

WP Rocket RCE

Patch now if…Exploited, no login. Only with a risky setting on.

TL;DR

WP Rocket, a WordPress caching plugin, lets attackers with no login plant and run PHP code; attacks seen since 25 Nov. Only sites with LazyLoad for CSS background images or Self-host Google Fonts on are at risk. Update to 3.24.2 or later.

More details

WP Rocket reports page measurements from visitors' browsers to a public endpoint and didn't check the URLs in them strictly enough, so an attacker can make the site download a file from their own server and save it as PHP. Vorelito reported it through Patchstack's bug bounty on 4 Nov, the fix shipped on 19 Nov, and Patchstack saw the first attack on 25 Nov at 15:27 UTC, about three hours after the CVE record went public; the "KEV" label in Patchstack's database is its own, as CISA's catalog doesn't list it. Sources disagree on which versions are affected: WP Rocket says 3.15 to 3.24.1, Patchstack and the CVE record say every version before 3.24.2; WP Rocket's changelog backs the narrower range, as the two features arrived in 3.15 and 3.18.

How scary is it?

updated 2 Dec
  • Yes: Works without logging in1,2
  • Partly: Shown working, code not public2
  • Yes: Attacks seen in the wild2,1
  • No: Not on CISA's exploited list9,3,4

Scare-o-meter

Check today

Find out if you're affected.
If you are, patch.

Are you affected? only if all are true

1WP Rocket older than 3.24.2command

3.24.2 (19 Nov 2026) fixes it. WP Rocket says only 3.15 to 3.24.1 are affected; Patchstack and the CVE record say every version before 3.24.2. WP Rocket's changelog fits the vendor's range: LazyLoad for CSS background images arrived in 3.15 and Self-Host Google Fonts in 3.18. You can also see the version under Plugins in your dashboard.1,2,3,5,7

wp plugin get wp-rocket --field=version
2A risky setting is oncommand

At least one of these is on: LazyLoad for CSS background images, Self-host Google Fonts. Both are under WP Rocket > Page Optimization > Image & Media (in the Media tab before 3.24). Patchstack calls the second one Host Fonts Locally and says both are off by default but common on performance-tuned sites; WP Rocket doesn't say. The command prints each setting; 0 means off. They are stored as lazyload_css_bg_img and host_fonts_locally in wp_rocket_settings, the names WP Rocket's own mitigation helper switches off.1,2,6,8

wp option pluck wp_rocket_settings lazyload_css_bg_img; wp option pluck wp_rocket_settings host_fonts_locally
3Attackers can reach the site

Attacks go to POST /wp-admin/admin-ajax.php with action=rocket_beacon, which Patchstack calls a public endpoint. No login is needed, so any site reachable from the internet qualifies.2,1

What to do

1Update WP Rocket

Update to 3.24.2 or later; 3.24.3 came out on 26 Nov. With an active licence, WP Rocket says to go to Plugins, find WP Rocket, select Update now and confirm the installed version. With an expired licence, turn off both settings (next step) while you arrange a renewal.1,5

Latest safe versions checked 3 Dec

WP Rocket → 3.243.24.3WP Rocket's changelog shows a single release line. Anything before 3.24.2 lacks the CVE-2026-125812 fix; update to the latest. Check with wp plugin get wp-rocket --field=version.
2Can't update yet?command

Turn off LazyLoad for CSS background images and Self-host Google Fonts, save, and confirm both are off on each site. WP Rocket says this "mitigates the documented attack paths"; keep them off until you're on 3.24.2. For many sites, WP Rocket offers a helper plugin that forces both off, installed with the command shown. On Multisite, activate it on each site: wp plugin activate wp-rocket-mitigate-cve-2026-125812 --url=https://example.com/subsite/.1,6,2

wp plugin install ./wp-rocket-mitigate-cve-2026-125812.zip --activate
3Look for a break-incommand

Updating or turning the settings off doesn't remove PHP files an attacker already planted. If a site ran an affected version with either setting on (WP Rocket's condition), Patchstack says to check wp-content/wp-rocket-config/, wp-content/uploads/ and wp-content/ itself for unexpected PHP files, such as wp-media-*.php, and to review old logs: rocket_beacon requests from clients that never loaded the page they report on, and outbound requests from your server to unfamiliar hosts, nip.io names or trycloudflare.com tunnels. WP Rocket says files or accounts an attacker created need their own investigation by your host or security team. The command is ours, run from the WordPress folder; WP Rocket keeps its own config files in wp-rocket-config, named after your site. In wp-content/ itself, WP Rocket's own advanced-cache.php is expected.2,1,10

find wp-content/wp-rocket-config wp-content/uploads -name '*.php'; ls wp-content/*.php

This page shows you how to check. It can't tell you you're safe.

Sources (10) and changelog
  1. WP Rocket: advisory for CVE-2026-125812, affected versions and settings, where they live, workaround, helper plugin and WP-CLI commands, 3.24.2 release date 27 Nov
  2. Patchstack: attacks since 25 Nov, how it works, settings off by default, the endpoint, what to look for, planted files stay 27 Nov
  3. CVE record: CVE-2026-125812, every version before 3.24.2, CVSS 9.8, credited to Vorelito, CISA's SSVC entry 25 Nov
  4. Patchstack database: published 23 Nov, reported 4 Nov, Patchstack's own exploited (KEV) label 23 Nov
  5. WP Rocket: changelog, 3.24.2 security fix, 3.24.3, LazyLoad for CSS background images in 3.15, Self-Host Google Fonts in 3.18
  6. GitHub: WP Rocket mitigation helper, the setting names it turns off
  7. WP-CLI: wp plugin get
  8. WP-CLI: wp option pluck
  9. CISA KEV catalog: not listed
  10. GitHub: WP Rocket 3.24.3 code, config files in wp-rocket-config named after the site