Critical Path Traversal Flaw in WP Rocket Plugin Can Lead to RCE
A critical unauthenticated path traversal vulnerability, CVE-2026-125812, affects the WP Rocket WordPress plugin and can result in remote code execution. Versions before 3.24.2 are affected.
PHPWordPressWebVulnerabilitiesKey points
- CVE-2026-125812 is a critical unauthenticated path traversal flaw in the WP Rocket WordPress plugin that can lead to RCE.
- WP Rocket versions before 3.24.2 are affected, per the NVD.
- The flaw is classified as improper limitation of a pathname to a restricted directory.
What happened
According to Horizon3.ai, the WP Rocket WordPress plugin contains a critical security flaw tracked as CVE-2026-125812. The issue is described as an unauthenticated path traversal that can lead to remote code execution (RCE), making it a serious risk for affected sites.
Who is affected
The vulnerability is an improper limitation of a pathname to a restricted directory, classified as path traversal, in WP Media's WP Rocket plugin. Per the NVD entry, the problem affects WP Rocket versions before 3.24.2.
Why it matters
Because the flaw is reported as exploitable without authentication and can result in code execution, an attacker who reaches a vulnerable site could potentially gain significant control. WP Rocket is a widely used WordPress plugin, which broadens the potential exposure.
What to do
The NVD data indicates the issue is resolved in version 3.24.2, so administrators should update to that release or later. For full technical details and any additional mitigations, refer to the original report from Horizon3.ai.
What to do
- Update WP Rocket to version 3.24.2 or later.
- Review the Horizon3.ai report for affected versions and mitigation details.
Original report
“CVE-2026-125812”
CVE-2026-125812 is a critical unauthenticated path traversal in the WP Rocket WordPress plugin leading to RCE. See affected versions, fixes, and mitigations.
Vulnerabilities mentioned
- CVE-2026-125812 — WP Media WP Rocket Critical
- CVE-2026-138482 — Omnisend Email Marketing for WooCommerce by Omnisend
- CVE-2026-141002 — Brainstorm Force Modern Cart – WooCommerce Side Cart & Popup Cart
- CVE-2026-138488 — Unlimited Elements For Elementor (Free Widgets, Addons, Templates)
- CVE-2026-138320 — CusRev Customer Reviews for WooCommerce
- CVE-2026-138449 — WP Desk Flexible Checkout Fields for WooCommerce