CVE-2026-7252
Arbitrary File Deletion in WP-Optimize WordPress Plugin
Publication date: 2026-05-07
Last updated on: 2026-05-07
Assigner: Wordfence
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| wp_optimize | wp_optimize | to 4.5.2 (inc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-22 | The product uses external input to construct a pathname that is intended to identify a file or directory that is located underneath a restricted parent directory, but the product does not properly neutralize special elements within the pathname that can cause the pathname to resolve to a location that is outside of the restricted directory. |
Attack-Flow Graph
AI Powered Q&A
How can this vulnerability impact me? :
This vulnerability can have severe impacts including unauthorized deletion of important server files by users with author-level access. Such file deletions can disrupt website functionality or lead to remote code execution if critical files are removed. This could allow attackers to take control of the server, compromise data integrity, and cause service outages.
Can you explain this vulnerability to me?
The WP-Optimize plugin for WordPress, up to version 4.5.2, has a vulnerability that allows authenticated users with author-level access or higher to delete arbitrary files on the server. This happens because the plugin does not properly validate file paths in the unscheduled_original_file_deletion function. The vulnerability arises since the 'original-file' meta key is public and can be modified by authors through the Edit Media form or REST API, enabling them to specify files to delete. Deleting critical files like wp-config.php can lead to remote code execution.