Written by Ruben Selby, founder and penetration tester at Wolfcore. Last reviewed 2 December 2026.
Part of the Wolfcore Resources library: Vulnerabilities and exploitation.
In one sentence: A flaw in the WordPress speed plugin WP Rocket lets an attacker, with no login, put their own code on your website and run it, and attackers are using it now.
What it is
CVE-2026-125812 is an unauthenticated remote code execution flaw in WP Rocket, a popular caching plugin. WP Rocket’s own advisory lists versions 3.15 through 3.24.1, while other reporting says all versions before 3.24.2 are affected, and either way the fix is 3.24.2 or later (3.24.3 is the latest, per SOCRadar). The flaw needs at least one of two features to be switched on: LazyLoad for CSS background images, or Self-host Google Fonts (Patchstack calls the second “Host Fonts Locally”). WP Rocket says both are off by default.
The fix is version 3.24.2, released on 19 November 2026. Patchstack rates the flaw CVSS 9.8, Critical, and reports active exploitation, with the first attempt it saw on 25 November 2026.
How it works
- WP Rocket runs a small script in visitors’ browsers that reports page measurements to a public WordPress AJAX address.
- The plugin uses the reported addresses to optimise the page but, per Patchstack, does not validate them strictly enough.
- An attacker sends a crafted report. The site is tricked into downloading content from the attacker’s server and saving it as a PHP file.
- The attacker’s PHP code then runs on your server. They can change pages, add accounts or plant a backdoor.
Patchstack says activity went from one attacker working by hand to automated campaigns within a day, with several independent operators.
Who it affects and how badly
Any business running WordPress with WP Rocket: retailers, hospitality, estate agents, recruitment sites, charities, schools and agencies that manage many client sites. Plugin flaws do not care about company size.
- Sole trader to 10 staff: a defaced or spam-filled site, search engine warnings, lost orders and a clean-up bill.
- 10 to 250 staff: customer data on the site or in a connected shop can be exposed, and the site may be used to attack visitors.
- Regulated or data-heavy sites: a compromised site holding personal data can be a reportable breach.
What we check on a test
On a web application test of a WordPress site we look at:
- Which plugins and themes are installed, which versions, and whether any are abandoned.
- Which plugin features are switched on, since risk can depend on a setting.
- Whether public AJAX endpoints validate what they receive.
- Whether the web server can write and run PHP in upload and cache folders.
- Whether admin accounts have multi-factor authentication and whether backups can be restored.
Worked example (an illustration, not a real client)
A 15-person trades business has a WordPress site built by a freelancer, with WP Rocket on a lapsed licence and CSS lazy loading turned on for speed. Nobody has updated it for months.
If attacked, the site could start serving spam pages. Google may flag it and enquiries stop. A clean-up costs several days and an agency invoice.
What to do: WP Rocket says that if you cannot update yet, turn off both features under WP Rocket, Page Optimization, Image and Media (the Media tab on versions before 3.24), save, and confirm both are off. Then update to 3.24.2 or later.
How to detect it
Patchstack lists these signs:
- Requests to the WP Rocket measurement action on admin-ajax.php from clients that never loaded the page, or reporting full addresses where bare domains are expected.
- Outbound requests from the web server to unfamiliar hosts, including nip.io names and trycloudflare.com tunnels.
- Unexpected PHP files in wp-content/wp-rocket-config, wp-content/uploads or directly in wp-content, such as files named wp-media followed by random characters.
Patchstack stresses that updating stops new attacks but does not remove files already planted. WP Rocket advises asking your host or security team to check for compromise if either feature was on while you ran a vulnerable version.
How to fix or prevent it
- Update WP Rocket to 3.24.2 or later and confirm the version in the Plugins screen.
- If you cannot update, turn off both vulnerable features until you can.
- Check the folders above for unexpected PHP files and review old logs.
- If anything suspicious is found, treat the site as compromised: restore from a clean backup, change all admin and database passwords, and rotate keys.
- Turn on automatic updates for plugins where practical (see patch management), as the NCSC says to update by default.
- Remove plugins you do not use.
- Keep a list of every site and plugin you run, including freelancer-built ones.
Rules and regulators
- UK: the NCSC advises updating by default and lists 5 days for internet-facing services and software, and says that when exploitation is rife the normal timescale is too long. The ICO expects security measures proportionate to risk.
- EU: GDPR Article 32 requires appropriate technical measures to protect personal data, taking account of the state of the art.
- US: the FTC’s Start with Security guide covers keeping software secure and monitoring activity on your network.
Frequently asked questions
Which versions are affected? WP Rocket’s own advisory lists 3.15 through 3.24.1, while other reporting says all versions before 3.24.2. Either way, you need one of the two named features switched on to be exposed, and the fix is 3.24.2 or later.
What fixes it? Version 3.24.2 or later, released 19 November 2026. SOCRadar lists 3.24.3 as the latest.
Does updating clean an already hacked site? No. Patchstack says it does not remove files an attacker already planted.
Related terms
- wordpress-plugin-vulnerabilities
- exploited-in-the-wild
- cyber-essentials-14-day-patch-rule
- exchange-web-shell-check
- how-to-check-which-ports-are-open-on-your-network
- attack-surface-management
More in Vulnerabilities. Another critical flaw covered this week: React2Shell.
Sources
- https://wp-rocket.me/docs/wp-rocket-security-advisory-and-mitigation-steps-for-cve-2026-125812/
- https://patchstack.com/articles/critical-wp-rocket-rce-cve-2026-125812-under-active-attack/
- https://www.ncsc.gov.uk/collection/vulnerability-management/guidance/policy-update-by-default
- https://www.ncsc.gov.uk/collection/vulnerability-management/guidance/responding-to-active-exploitation
- https://ico.org.uk/for-organisations/uk-gdpr-guidance-and-resources/security/a-guide-to-data-security/
- https://gdpr-info.eu/art-32-gdpr/
- https://www.ftc.gov/business-guidance/resources/start-security-guide-business
- https://socradar.io/blog/wp-rocket-vulnerability-cve-2026-125812/
How Wolfcore helps
A Wolfcore penetration test finds this the way an attacker would, by hand, not with a scanner. Start with the free web vulnerability scan, or see web application penetration testing and penetration testing. Our post on what to check this week has the steps.
Wolfcore
Would your staff click a phishing email?
Run a real, safe phishing test on your team with Phishy. Free for 14 days, up to 10 staff, no card. We help you set it up.
Start a free phishing testFree website security scanor book a 30 minute call