WordPress Plugin Vulnerabilities
WP-Optimize < 4.5.3 - Author+ Arbitrary File Deletion via 'original-file' Post Meta
Description
The plugin is vulnerable to arbitrary file deletion due to insufficient file path validation in the `unscheduled_original_file_deletion()` function. This makes it possible for authenticated attackers, with Author-level access and above, to delete arbitrary files on the server, which can easily lead to remote code execution when the right file is deleted (such as `wp-config.php`). This is possible because `original-file` is a public (non-protected) meta key — it does not begin with an underscore — allowing Authors to freely create or modify it on their own attachment posts via the standard Edit Media form or the REST API.
Affects Plugins
References
Classification
Type
FILE DELETION
OWASP top 10
CWE
CVSS
Miscellaneous
Original Researcher
Ly Hoang
Verified
No
WPVDB ID
Timeline
Publicly Published
2026-05-06 (about 7 days ago)
Added
2026-05-07 (about 6 days ago)
Last Updated
2026-05-07 (about 6 days ago)