Severity by source
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Primary rating from NVD · only source for this CVE.
CVSS VectorNVD
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Lifecycle Timeline
2DescriptionCVE.org
The WP-Optimize - Cache, Compress images, Minify & Clean database to boost page speed & performance plugin for WordPress is vulnerable to arbitrary file deletion due to insufficient file path validation in the unscheduled_original_file_deletion function in all versions up to, and including, 4.5.2 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.
AnalysisAI
Arbitrary file deletion in WP-Optimize plugin versions ≤4.5.2 allows authenticated attackers with Author-level privileges to delete critical server files including wp-config.php, enabling remote code execution. The vulnerability exploits insufficient path validation in the unscheduled_original_file_deletion function combined with the non-protected 'original-file' meta key that Authors can manipulate via WordPress's Edit Media form or REST API. Wordfence discovered this CWE-22 path traversal flaw affecting the popular WordPress optimization plugin used on hundreds of thousands of sites.
Technical ContextAI
This is a CWE-22 (Improper Limitation of a Pathname to a Restricted Directory) vulnerability in the WP-Optimize plugin's image compression module. The class-updraft-smush-manager.php file implements an unscheduled_original_file_deletion function that accepts file paths from the 'original-file' post meta field without adequate sanitization. In WordPress, meta keys beginning with an underscore are protected and only editable by administrators, but 'original-file' lacks this prefix, making it a public meta key. This design flaw allows Author-level users (who have create_posts and edit_posts capabilities but should have restricted server access) to set arbitrary file paths on attachment posts they control. When the deletion function processes these manipulated meta values, it performs unlink() operations on attacker-controlled paths, enabling directory traversal attacks to delete files anywhere the web server process has write permissions.
RemediationAI
Upgrade immediately to WP-Optimize version 4.5.3 or later, which addresses the path traversal vulnerability through improved file path validation in class-updraft-smush-manager.php (changeset 3518513 available at https://plugins.trac.wordpress.org/changeset/3518513/wp-optimize/trunk/includes/class-updraft-smush-manager.php). The fix can be applied through the WordPress admin dashboard under Plugins → Updates or by downloading from the official WordPress plugin repository. If immediate patching is not possible, implement these compensating controls: (1) Temporarily revoke Author-level access for all non-essential user accounts and audit recent Author account activity for suspicious attachment uploads or metadata modifications via wp_postmeta table inspection; (2) Implement file integrity monitoring (FIM) on critical WordPress files (wp-config.php, .htaccess, index.php, wp-load.php) to detect unauthorized deletion attempts; (3) Configure web application firewall (WAF) rules to block REST API requests from Author-level accounts to attachment endpoints containing suspicious file path patterns in metadata; (4) Review WordPress filesystem permissions to ensure the web server process cannot delete critical configuration files outside the wp-content/uploads directory. Note that disabling the plugin entirely eliminates the vulnerability but removes caching and optimization functionality, potentially impacting site performance.
sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not
(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear
ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C
Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au
Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c
Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re
The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows
The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
NetAlertX (formerly PiAlert) versions 23.01.14 through 24.x before 24.10.12 allow unauthenticated command injection thro
The GiveWP - Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all
Same weakness CWE-22 – Path Traversal
View allShare
External POC / Exploit Code
Leaving vuln.today
EUVD-2026-28323
GHSA-p78j-pm32-q3pf