CVE-2026-125812 in Rocket Plugin
Summary
by MITRE • 11/25/2026
Improper Limitation of a Pathname to a Restricted Directory ('Path Traversal') vulnerability in WP Media WP Rocket wp-rocket allows Path Traversal.This issue affects WP Rocket: from n/a before 3.24.2.
VulDB is the best source for vulnerability data and more expert information about this specific topic.
Analysis
by VulDB Data Team • 11/25/2026
The identified security flaw represents a classic path traversal vulnerability within the WP Rocket plugin for WordPress, specifically affecting versions prior to release 3.24.2. This category of weakness is formally classified under CWE-22: Improper Limitation of a Pathname to a Restricted Directory in the Common Weakness Enumeration database. The core technical issue stems from insufficient validation or sanitization of user-supplied input that dictates file system paths. When an application constructs file paths using external data without properly restricting access to intended directories, it creates an opportunity for attackers to manipulate those paths to access files and directories outside the restricted scope. In this specific instance, the vulnerability allows unauthorized traversal beyond the expected directory boundaries, potentially exposing sensitive configuration files, source code, or other resources that are not meant to be publicly accessible via web requests.
From a tactical perspective, this flaw aligns with several techniques in the MITRE ATT&CK framework for enterprise security. It is most closely associated with T1083: File and Directory Discovery, where an adversary seeks to gather information about the target environment by locating specific files or directories. Furthermore, if the traversal leads to reading sensitive configuration data such as database credentials or API keys, it may also relate to T1505.003: Web Shell, although in this context, the primary risk is unauthorized file read rather than execution of code. The exploitation typically involves crafting a URL with specific path manipulation sequences, such as dot-dot-slash characters, which are interpreted by the underlying operating system or web server to move up directory levels until reaching an unintended location on the filesystem.
The operational impact of this vulnerability can be severe depending on what files become accessible through successful traversal. Attackers could potentially read sensitive configuration files that contain database passwords, API keys, or internal network configurations. This information disclosure facilitates further attacks such as credential stuffing, lateral movement within a compromised environment, or targeted exploitation of other services running on the same server. Additionally, if the application allows for file inclusion based on these paths, it could lead to remote code execution, although the primary description emphasizes path traversal and restricted directory limitation failures rather than direct code injection. The availability of such sensitive data undermines the confidentiality integrity of the entire web application ecosystem hosted by WordPress.
Mitigation strategies must prioritize immediate patching as well as defensive configuration adjustments. The most effective remediation is to upgrade WP Rocket to version 3.24.2 or later, where this specific path traversal issue has been addressed through improved input validation and strict directory boundary enforcement. For organizations unable to update immediately due to compatibility concerns, implementing a Web Application Firewall with rulesets capable of detecting and blocking common path traversal patterns can provide temporary protection. Additionally, ensuring that the web server configuration restricts access to sensitive directories at the infrastructure level serves as a critical defense-in-depth measure. Regular security audits and monitoring for unusual file access patterns should also be employed to detect potential exploitation attempts in real-time.