Skip to main content

Image Optimizer CVE-2026-5821

| EUVDEUVD-2026-41247 HIGH
External Control of File Name or Path (CWE-73)
2026-07-02 security@wordfence.com GHSA-rhv9-h5xx-r8m5
8.1
CVSS 3.1 · Vendor: wordfence
View

Attack ChainAIDerived

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

  1. Access
    Authenticate as Author-level user
  2. Delivery
    Upload attachment and open Custom Fields editor
  3. Exploit
    Inject absolute path into image_optimizer_metadata backups
  4. Execution
    Delete attachment to fire delete_attachment hook
  5. Persist
    Plugin calls File_System::delete() on injected path
  6. Impact
    Arbitrary 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.

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

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

Alert me

AnalysisAIv1 – 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

Image Optimizer – Optimize Images and Convert to WebP or AVIF 0 ≤1.7.4

Affected Packages

euvd image_optimizer_optimize_images_and_convert_to_webp_or_avif 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

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

Vendor (wordfence) PRIMARY 8.1 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
vuln.today AI 8.1 HIGH

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.

3.1 AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
4.0 AV:N/AC:L/AT:N/PR:L/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N

Primary rating from Vendor (wordfence).

CVSS VectorVendor: wordfence

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

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.4%
Top 73% exploitable
Prevalence
Medium
specific WordPress image-optimization plugin, moderate but not universal install base
Social Media
1
Sightings
Data Quality
6 sources
Confidence: High

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.4%
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

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

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-5084 CRITICAL POC
9.8 May 23

The Hash Form - Drag & Drop Form Builder plugin for WordPress is vulnerable to arbitrary file uploads due to missing fil

CVE-2024-44000 CRITICAL POC
9.8 Oct 20

Authentication bypass in the LiteSpeed Cache WordPress plugin (versions prior to 6.5.0.1) allows unauthenticated remote

CVE-2020-36847 CRITICAL POC
9.8 Jul 12

The Simple File List plugin for WordPress through version 4.2.2 contains an unauthenticated remote code execution vulner

CVE-2025-11749 CRITICAL POC
9.8 Nov 05

The AI Engine WordPress plugin through version 3.1.3 exposes Bearer Token values through the /mcp/v1/ REST API endpoint

CVE-2025-27007 CRITICAL POC
9.8 May 01

The SureTriggers WordPress plugin through version 1.0.82 contains a privilege escalation vulnerability that allows unaut

CVE-2016-1209 CRITICAL POC
9.8 May 14

The Ninja Forms plugin before 2.9.42.1 for WordPress allows remote attackers to conduct PHP object injection attacks via

CVE-2024-4443 CRITICAL POC
9.8 May 22

The Business Directory Plugin - Easy Listing Directories for WordPress plugin for WordPress is vulnerable to time-based

CVE-2024-1698 CRITICAL POC
9.8 Feb 27

SQL injection in the NotificationX WordPress plugin (versions up to and including 2.8.2) allows unauthenticated remote a

CVE-2023-6875 CRITICAL POC
9.8 Jan 11

The POST SMTP Mailer - Email log, Delivery Failure Notifications and Best Mail SMTP for WordPress plugin for WordPress i

CVE-2024-1512 CRITICAL POC
9.8 Feb 17

The MasterStudy LMS WordPress Plugin - for Online Courses and Education plugin for WordPress is vulnerable to union base

CVE-2024-4295 CRITICAL POC
9.8 Jun 05

The Email Subscribers by Icegram Express plugin for WordPress is vulnerable to SQL Injection via the ‘hash’ parameter in

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