Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as Author-level user
-
DeliveryUpload attachment and open Custom Fields editor
-
ExploitInject absolute path into image_optimizer_metadata backups
-
ExecutionDelete attachment to fire delete_attachment hook
-
PersistPlugin calls File_System::delete() on injected path
-
ImpactArbitrary file deleted, causing DoS/data loss
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A06:2025 - Insecure Design
ASVS 5.0
V5 - File Handling File name/path control
|
| Exploitation Conditions | Exploitation requires an authenticated account with Author-level capabilities or above (PR:L) on the target WordPress site, and requires that the Image Optimizer plugin (<=1.7.4) is installed and active. The concrete prerequisite is the ability to edit the image_optimizer_metadata post meta on an attachment the attacker owns via WordPress's built-in Custom Fields interface, then trigger the delete_attachment hook by deleting that attachment. Limiting factors: the attacker must already hold Author+ (Contributor/Subscriber cannot edit attachment post meta), deletion is confined to files writable by the web server user, and impact is destructive only (no data disclosure). Sites that do not grant Author+ roles to untrusted parties are not realistically exposed. |
| Impact | The signals are moderately concerning but not emergency-tier. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H, base 8.1 High) reflects easy network exploitation but requires PR:L - Author-level authentication - which meaningfully narrows the attacker population to users who already hold a trusted content role or have compromised such an account. Impact is limited to integrity/availability (file deletion); there is no confidentiality impact (C:N), so this is destructive rather than data-exfiltrating. No EPSS score, KEV entry, or SSVC decision was provided in the input, and no public PoC is referenced, so real-world exploitation probability cannot be quantified from available data. Net assessment: a genuine risk on multi-author WordPress sites where untrusted users hold Author+, but lower priority on single-admin blogs where no low-privilege accounts exist to abuse. |
| Exploit ScenarioDerived | An attacker who registers or compromises an Author account uploads an image, then uses the WordPress Custom Fields editor to overwrite the image_optimizer_metadata backups array with an absolute path such as /var/www/html/wp-config.php. When they delete that attachment, the plugin's delete_attachment handler calls File_System::delete() on the injected path, removing the file and breaking or degrading the site. No public PoC is referenced, but the attack requires only standard low-privilege dashboard access and no special tooling. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Jul 02, 2026
Arbitrary file deletion in the Image Optimizer plugin for WordPress (versions up to and including 1.7.4) lets an authenticated attacker with Author-level access or higher delete any file the web server can write to, potentially causing denial of service, data loss, or removal of security-relevant files such as wp-config.php. The flaw stems from the plugin trusting attacker-controllable backup paths stored in post meta. This was reported by Wordfence; no public exploit identified at time of analysis, and it is not listed in CISA KEV.
RemediationAI
Upstream fix available (changeset 3557772 on the image-optimization repository); a released patched version was not explicitly stated in the input but corresponds to the release following 1.7.4, so administrators should update the Image Optimizer plugin to the latest available version (later than 1.7.4) once confirmed against the Wordfence advisory at https://www.wordfence.com/threat-intel/vulnerabilities/id/a1a00374-e9d6-46f9-a28c-cb7768505787 and the plugin changeset at https://plugins.trac.wordpress.org/changeset?reponame=&old=3557772%40image-optimization&new=3557772%40image-optimization. Until patched, the most effective compensating control is to restrict who holds Author-level or higher roles - audit and demote untrusted accounts to Contributor or Subscriber, which cannot edit attachment post meta (trade-off: legitimate authors lose media-management ability). As a secondary control, deploy a security plugin or mu-plugin that restricts or disables the Custom Fields meta-box editing of image_optimizer_metadata, or run a WAF rule to flag post-meta writes containing absolute paths; note these are brittle and can break legitimate metadata workflows. Deactivating the Image Optimizer plugin entirely removes the exposure at the cost of losing image optimization functionality.
Affected VersionsENISA
Affected Packages
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
The vulnerability is a CWE-73 (External Control of File Name or Path) issue in the plugin's backup-cleanup logic. The plugin persists backup file paths in the image_optimizer_metadata post meta field and, in Image_Backup::remove() (classes/image/image-backup.php:117), passes those stored paths directly to File_System::delete() when the WordPress delete_attachment hook fires (modules/backups/components/handle-backups-removing.php:19). Because WordPress exposes post meta editing through the built-in Custom Fields interface, an Author can overwrite the backups array with arbitrary absolute paths. The missing control is a validation step confirming each path resolves within the WordPress uploads directory before deletion; without it, any path the process can reach is fair game, bounded only by the web server user's filesystem permissions.
Know when Wordpress Plugin 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
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Exploited over the network via the WP dashboard (AV:N/AC:L), but requires Author-level auth (PR:L); file deletion yields high integrity and availability impact with no confidentiality loss.
Primary rating from Vendor (wordfence).
CVSS VectorVendor: wordfence
DescriptionCVE.org
The Image Optimizer plugin for WordPress is vulnerable to arbitrary file deletion in versions up to and including 1.7.4. This is due to insufficient path validation in the Image_Backup::remove() function where backup file paths stored in post meta are used directly in file deletion operations without verifying they are within the uploads directory. The plugin stores backup file paths in the image_optimizer_metadata post meta field and trusts these paths completely when deleting backups on the delete_attachment hook. An authenticated attacker with Author-level access can edit the image_optimizer_metadata post meta on their own attachments via WordPress's Custom Fields interface, injecting arbitrary absolute file paths into the backups array. When the attacker subsequently deletes the attachment, the plugin calls File_System::delete() on each path without validation. This makes it possible for authenticated attackers, with Author-level access and above, to delete arbitrary files on the server within the web server's filesystem permissions, potentially leading to denial of service, data loss, or security degradation.
Executive ViewAI
Organizations running the WordPress Image Optimizer plugin through version 1.7.4 face immediate operational risk, as any staff member with Author access can permanently delete critical website files including database configurations. This vulnerability threatens website availability, data integrity, and customer-facing services. With no vendor patch available, emergency mitigation actions are required within 24 hours.
No vendor-released patch identified at time of analysis. Interim mitigations: (1) Disable the Image Optimizer plugin on all affected installations; (2) Audit and restrict Author-level user access to only staff requiring it; (3) Implement file integrity monitoring on web server directories; (4) Enable and actively monitor web server access logs for suspicious file deletion events; (5) Maintain regular offsite backups to enable recovery from unauthorized file deletion.
Threat Intelligence Overview
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
More in Wordpress Plugin
View allThe Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1
The Hash Form - Drag & Drop Form Builder plugin for WordPress is vulnerable to arbitrary file uploads due to missing fil
Authentication bypass in the LiteSpeed Cache WordPress plugin (versions prior to 6.5.0.1) allows unauthenticated remote
The Simple File List plugin for WordPress through version 4.2.2 contains an unauthenticated remote code execution vulner
The AI Engine WordPress plugin through version 3.1.3 exposes Bearer Token values through the /mcp/v1/ REST API endpoint
The SureTriggers WordPress plugin through version 1.0.82 contains a privilege escalation vulnerability that allows unaut
The Ninja Forms plugin before 2.9.42.1 for WordPress allows remote attackers to conduct PHP object injection attacks via
The Business Directory Plugin - Easy Listing Directories for WordPress plugin for WordPress is vulnerable to time-based
SQL injection in the NotificationX WordPress plugin (versions up to and including 2.8.2) allows unauthenticated remote a
The POST SMTP Mailer - Email log, Delivery Failure Notifications and Best Mail SMTP for WordPress plugin for WordPress i
The MasterStudy LMS WordPress Plugin - for Online Courses and Education plugin for WordPress is vulnerable to union base
The Email Subscribers by Icegram Express plugin for WordPress is vulnerable to SQL Injection via the ‘hash’ parameter in
EUVD-2026-41247
GHSA-rhv9-h5xx-r8m5
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB