# CVE-2026-125812: WP Media WP Rocket path traversal remote code execution

Source: https://junglewise.ai/threats/cve-2026-125812-improper-limitation-of-a-pathname-to-a-restricted-directory-path  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2026-11-25. Updated: 2026-11-25  
License: CC BY 4.0 with a link back

CVE-2026-125812 · Severity: critical · CVSS 9.8 · Published 2026-11-25

WP Rocket is a WordPress plugin that optimizes site performance through caching and file management. A path traversal vulnerability allows unauthenticated attackers to execute arbitrary code on affected WordPress sites, potentially compromising the entire server. The vulnerability affects all versions before 3.24.2 and poses a critical risk for any website using the plugin.

Technologies: [WP Media WP Rocket](https://junglewise.ai/threats/technologies/wp-rocket). Vendors: [WP Media](https://junglewise.ai/threats/vendors/wp-media).

## Quick answers

**Is CVE-2026-125812 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2026-125812 being exploited in the wild.

**How severe is CVE-2026-125812?** Critical severity, with a CVSS score of 9.8, published 25 November 2026.

**Which products and versions are affected?** WP Media WP Rocket before 3.24.2.

**Is there a fix for CVE-2026-125812?** Yes: fixed in 3.24.2. Until then: If immediate updating is not possible, use Patchstack or similar Web Application Firewall (WAF) solutions to block attacks targeting this vulnerability until the plugin is patched. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**How is CVE-2026-125812 attacked?** It is attacked over the network, in a web application.

**Am I affected by CVE-2026-125812?** Check whether you run WP Media WP Rocket at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- Fixed in 3.24.2

If immediate updating is not possible, use Patchstack or similar Web Application Firewall (WAF) solutions to block attacks targeting this vulnerability until the plugin is patched.

## Technical details

An improper limitation of pathname validation in WP Rocket before version 3.24.2 allows unauthenticated attackers to traverse the filesystem and execute remote code. The vulnerability is reachable over the network without authentication or user interaction required, giving attackers complete server control. A patch is available in version 3.24.2 and later.

## Affected products

- WP Media WP Rocket before 3.24.2

## Timeline

- 2026-11-25: disclosed
- 2026-11-23: advisory

## References

- [https://wordpress.org/plugins](https://wordpress.org/plugins)
- [https://patchstack.com/database/wordpress/plugin/wp-rocket/vulnerability/wordpress-wp-rocket-plugin-3-24-2-remote-code-execution-rce-vulnerability?_s_id=cve](https://patchstack.com/database/wordpress/plugin/wp-rocket/vulnerability/wordpress-wp-rocket-plugin-3-24-2-remote-code-execution-rce-vulnerability?_s_id=cve)

## Related threats

- [WP Media WP Rocket stored cross-site scripting](https://junglewise.ai/threats/cve-2026-125806-improper-neutralization-of-input-during-web-page-generation)
- [WP Media WP Rocket broken access control](https://junglewise.ai/threats/cve-2026-97075-missing-authorization-vulnerability-in-wp-media-wp-rocket-wp)
- [WP Media WP Rocket code injection in regular expression](https://junglewise.ai/threats/cve-2026-97076-executable-regular-expression-error-vulnerability-in-wp-media-wp)
- [WP Rocket stored cross-site scripting in rocket_beacon endpoint](https://junglewise.ai/threats/cve-2026-5934-wp-rocket-stored-cross-site-scripting-in-rocket-beacon-endpoint)
