Skip to main content

WP-Optimize EUVDEUVD-2026-28323

| CVE-2026-7252 HIGH
Path Traversal (CWE-22)
2026-05-07 Wordfence GHSA-p78j-pm32-q3pf
8.1
CVSS 3.1 · NVD
Share

Severity by source

NVD PRIMARY
8.1 HIGH
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
Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High

Lifecycle Timeline

2
Analysis Generated
May 07, 2026 - 05:46 vuln.today
CVE Published
May 07, 2026 - 04:27 nvd
HIGH 8.1

DescriptionCVE.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.

More in PHP

View all
CVE-2012-1823 CRITICAL POC
9.8 May 11

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

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

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

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

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

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

CVE-2024-46506 CRITICAL POC
10.0 May 13

NetAlertX (formerly PiAlert) versions 23.01.14 through 24.x before 24.10.12 allow unauthenticated command injection thro

CVE-2024-8353 CRITICAL POC
9.8 Sep 28

The GiveWP - Donation Plugin and Fundraising Platform plugin for WordPress is vulnerable to PHP Object Injection in all

Share

EUVD-2026-28323 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy