Skip to main content
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Recon
    Obtain Author-level credentials
  2. Delivery
    Upload image attachment
  3. Exploit
    Modify 'original-file' meta via REST API
  4. Install
    Inject path traversal payload (../../../wp-config.php)
  5. C2
    Trigger deletion function
  6. Execute
    Delete critical file
  7. Impact
    Access installation endpoint
  8. Step 8
    Reconfigure database
  9. Step 9
    Gain admin access
  10. Step 10
    Execute arbitrary PHP code

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Path canonicalization, traversal prevention
MITRE ATT&CK

2 techniques across 2 tactics: Discovery, Collection

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the attacker to possess WordPress Author-level credentials or higher on the target site. The WP-Optimize plugin version 4.5.2 or earlier must be installed and active. The web server process (typically www-data, apache, or nginx user) must have write permissions to the target files for deletion, which is standard for wp-config.php and other WordPress core files in typical installations. The vulnerability is exploitable through either the standard WordPress Edit Media interface or the REST API (/wp-json/wp/v2/media endpoints), both of which allow Authors to modify post metadata on their own attachment posts. No special plugin configuration is required-default WP-Optimize settings are vulnerable. The attack is not limited by WordPress Multisite restrictions or specific hosting configurations, making it broadly exploitable across diverse WordPress deployments.

Impact

This represents a critical real-world risk despite the 8.1 CVSS score. The CVSS vector (AV:N/AC:L/PR:L/UI:N) indicates network-exploitable with low complexity requiring only low privileges (Author-level). Author accounts are commonly created on WordPress sites for content contributors, making the privilege barrier lower than typical high-CVSS vulnerabilities requiring administrative access. The attack chain from arbitrary file deletion to remote code execution is well-established: deleting wp-config.php triggers WordPress installation mode, allowing attackers to reconfigure the database and gain admin access, or deleting .htaccess files can enable execution of uploaded malicious files. The vulnerability's severity is amplified by WP-Optimize's popularity (600,000+ active installations per WordPress.org statistics) and the fact that Author-level access is frequently granted to external contributors, contractors, or compromised accounts. While no EPSS data or KEV status is provided, the technical simplicity (AC:L), the attacker-favorable privilege requirement (common Author accounts rather than admin-only), and the clear path to RCE make this a genuine priority for WordPress administrators. The vulnerability affects all versions through 4.5.2, and the changeset reference indicates a patch exists in 4.5.3, providing a clear remediation path.

Exploit ScenarioDerived

An attacker with Author credentials (obtained through credential stuffing, social engineering, or compromised contributor account) logs into the WordPress admin panel and uploads a benign image file, creating an attachment post. Using the Edit Media form or a crafted REST API request to /wp-json/wp/v2/media/{id}, the attacker modifies the 'original-file' post meta field to contain a path traversal payload such as '../../../wp-config.php'. When WP-Optimize's image compression cleanup routine executes the unscheduled_original_file_deletion function, it processes the malicious path and deletes wp-config.php. With the configuration file removed, the attacker visits the site to trigger WordPress installation mode, configures a new database connection under their control, and gains administrative access to execute arbitrary PHP code through theme editors or plugin uploads.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
No patch listed yet 0.3% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – May 07, 2026

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.

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.

Affected VersionsENISA

WP-Optimize – Cache, Compress images, Minify & Clean database to boost page speed & performance 0 ≤4.5.2

Affected Packages

euvd wp_optimize_cache_compress_images_minify_clean_database_to_boost_page_speed_performance no fix

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

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.

Know when PHP gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

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

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High

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.

Executive ViewAI

Why It Matters

WP-Optimize plugin versions 4.5.2 and earlier contain a critical file deletion vulnerability that allows authenticated WordPress Authors to delete essential server files, including wp-config.php, leading to site takeover and remote code execution. This impacts hundreds of thousands of WordPress installations and poses immediate risk to organizational web presence and data integrity.

Business Impact: High
Compensating Controls

No vendor-released patch identified at time of analysis. Interim mitigations: (1) Restrict Author-level user accounts to only trusted personnel and audit existing Authors immediately; (2) Disable or deactivate the WP-Optimize plugin entirely until patch release; (3) Implement Web Application Firewall (WAF) rules to block suspicious file deletion requests targeting wp-config.php; (4) Enable WordPress audit logging to monitor Edit Media form submissions and REST API calls to the 'original-file' meta key; (5) Maintain recent server backups restorable within 1 hour; (6) Monitor file integrity of wp-config.php and other critical configuration files for unauthorized changes.

Threat Intelligence Overview

EPSS Score
0.3%
Top 51% exploitable
Social Media
2
Sightings
Data Quality
5 sources
Confidence: Medium

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.3%
Patch available No
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact
High
Technical Impact
Partial

Priority Score

40
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +40
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Path traversal exploits occur when applications use user-controlled input to construct file system paths without proper validation.

Remote Code Execution represents the critical moment when an attacker successfully runs arbitrary code on a target system without physical access.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

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-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

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

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