WP Rocket: path traversal leading to code execution (CVE-2026-125812) fixed in 3.24.2, reported exploited
Published 30/11/2026 17:44
Timeline
3 events over 3 d 16 h
- 27/11/2026First report+3 d 16 h
- 30/11/2026 17:20CorroboratedBleepingComputer+24 min
- 30/11/2026 17:44Published on WatchtowerPro CISO
In short
An attacker with no login can make a WordPress site running WP Rocket before 3.24.2 save and run their own PHP code on the server (CVE-2026-125812, CVSS 9.8). Exploitation is reported by BleepingComputer and VulnCheck. Update WP Rocket to 3.24.3 (at minimum 3.24.2) and check for planted PHP files. Shodan estimates about 1.6 million internet-facing WordPress servers worldwide, 277,059 of them in the EU (04/12/2026); how many run an affected version is not yet known. GreyNoise reports a public exploit for CVE-2026-125812 (01/12/2026).
How bad is it
Critical. An attacker on the internet can make a vulnerable WordPress site save and run their own code, without logging in, if certain WP Rocket font or image options are on.
No exploitation reported yet.
Severity score
CVSS 3.1 from NVD, from patchstack.com, read 04/12/2026.
What an attacker needs
- Internet access to itEnough
- A loginNot needed
- A user to clickNo
- Special settingsNo
Red helps the attacker, blue holds them back, grey is not published yet.
If it works, an attacker can
- Run their own code on the system
- Read the data it holds
- Change or delete that data
- Take it offline
Type: remote code execution.
A score is the worst case for the flaw, not a verdict on any one system. How we score · ReconX customers see which of their own systems are affected.
Affected versions
- The CVE record (CNA: Patchstack) lists WP Rocket versions before 3.24.2 as affected.
- A third-party scanner README says the vendor advisory names 3.15 through 3.24.1; the advisory itself was not read. Whether versions before 3.15 are affected is not known, so treat them as affected and update.
- The README says the flaw works only when LazyLoad for CSS background images or Host Fonts Locally is enabled; both are off by default.
- No other product was found affected in the sources read.
Fixed in
- CVE-2026-125812: WP Rocket 3.24.2 and later fix it according to the CVE record; 3.24.3 is the newest release on the vendor's GitHub releases page.
What to do now
- Update WP Rocket to 3.24.3, the newest release (at minimum 3.24.2).
- If you cannot update now, turn off LazyLoad for CSS background images and Host Fonts Locally. These measures reduce exposure and do not make the site safe; verify them against the vendor advisory.
- Updating does not remove an existing compromise. Look for planted PHP files in wp-content/uploads, in the top level of wp-content (only index.php belongs there) and in wp-content/wp-rocket-config (files changed on or after 25/11/2026 or named wp-media-*.php).
- Review access logs for POST requests with action=rocket_beacon.
- If a suspicious file is found, treat the site as compromised.
ReconX customers see the full notice - and their own systems
Our customers are alerted at every phase. Until a patch exists, the ReconX agent watches their servers from the inside for anomalies, and our outside view - the attacker's view - shows which systems to fix first.
In ReconX: the full analysis, 5 open questions, followed up as sources answer and all 3 sources with their dates. And technology matching: which of your systems run WordPress, at which version, fixed or not - and what each one needs.
Main sources
Known exploited (VulnCheck KEV): WP Media WP Rocket - wpmedia wp_rocket Improper Limitation of a Pathname to a Restricted Directory Research · Hackers exploit critical WordPress WP Rocket flaw to breach sites Research · CVE Record: CVE-2026-125812 Research
Data: Shodan - WordPress (estimate, 04/12/2026) · GreyNoise - CVE-2026-125812 (estimate, 01/12/2026)