WP Rocket path traversal exploited for unauthenticated RCE (CVE-2026-125812)
Original title: CVE-2026-125812
Versions 3.15 through 3.24.1 are affected only if LazyLoad or Host Fonts Locally is enabled; 3.24.2 fixes it.
Horizon3 says CVE-2026-125812 lets an unauthenticated attacker make WP Rocket fetch an attacker-controlled URL and write it to a traversed path, planting PHP in the webroot. Patchstack rates it 9.8 and confirmed exploitation from November 25, 2026, with automated campaigns the next day. WP Media fixed it in 3.24.2 on November 19; 3.24.3 is the current release. A public proof-of-concept is on GitHub.
- The plugin is installed on more than 5.5 million sites.
- Exploitation needs LazyLoad for CSS background images or Host Fonts Locally.
- The weakness is CWE-22 and requires no authentication or user interaction.
- Disable both options if you cannot upgrade, and check for a webshell.
- Patchstack also published a virtual patch rule as a workaround.
Impact: remote code execution as the web-server user
| Product | Affected | Fixed in |
|---|---|---|
| WP Media WP Rocket | 3.15 through 3.24.1 | 3.24.2 |
- 1.Upgrade WP Rocket to 3.24.2 or later.
- 2.If you cannot upgrade, disable LazyLoad for CSS background images and Host Fonts Locally.
- 3.Check already exploited sites for a planted webshell.
- CVEs
- CVE-2026-125812
- Vendors
- WP Media
- Products
- WP Rocket
- Organizations
- Patchstack
Vulnerabilities mentioned
All| CVE | Vulnerability | CVSS | EPSS | Signals | Published |
|---|---|---|---|---|---|
| CVE-2026-125812 | Path traversal in WP Rocket before 3.24.2 | 9.8 | 7% | PoC ×3 |
From the original article
3 min read at horizon3.ai
CVE-2026-125812 is a critical unauthenticated path traversal in the WP Rocket WordPress plugin leading to RCE. See affected versions, fixes, and mitigations.
By Horizon3 · horizon3.ai
A short excerpt; the article and its images belong to the publisher. Summary, key facts and assessment above are AI-written from the article and can be wrong.