Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…
EPSS 0.3%top 73%

CVE-2026-5821: CWE-73 External Control of File Name or Path in elemntor Image Optimizer – Optimize Images and Convert to WebP or AVIF

0
High
VulnerabilityCVE-2026-5821cvecve-2026-5821cwe-73
Published: 07/02/2026 (07/02/2026, 05:35:07 UTC)
Source: CVE Database V5
Vendor/Project: elemntor
Product: Image Optimizer – Optimize Images and Convert to WebP or AVIF

Description

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.

CVSS v3.1

Score 8.1high

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
High
Availability
High
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 07/09/2026, 09:25:11 UTC

Technical Analysis

CVE-2026-5821 is a vulnerability in the Image Optimizer – Optimize Images and Convert to WebP or AVIF WordPress plugin by elemntor. The issue arises from the Image_Backup::remove() function, which uses backup file paths stored in the image_optimizer_metadata post meta field without verifying that these paths reside within the uploads directory. An authenticated attacker with Author-level privileges can inject arbitrary absolute file paths into this metadata via WordPress's Custom Fields interface on their own attachments. When the attacker deletes the attachment, the plugin calls File_System::delete() on each path without validation, enabling deletion of arbitrary files within the web server's filesystem permissions. This can cause denial of service, data loss, or security degradation. The CVSS v3.1 score is 8.1 (High) with vector AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H. No patch or official remediation is currently documented.

Potential Impact

An attacker with Author-level access can delete arbitrary files on the server within the web server's filesystem permissions by exploiting insufficient path validation in the plugin's backup deletion process. This can result in denial of service, loss of critical data, or degradation of system security. The vulnerability does not directly impact confidentiality but has high impact on integrity and availability.

Mitigation Recommendations

Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until an official fix is available, restrict Author-level user capabilities if possible and monitor for suspicious activity related to attachment deletion. Avoid using the vulnerable plugin version or disable it if feasible.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

Technical Details

Data Version
5.2
Assigner Short Name
Wordfence
Date Reserved
2026-04-08T16:28:00.923Z
Cvss Version
3.1
State
PUBLISHED
Remediation Level
null

Threat ID: 6a46037b27e9c7971942c6bc

Added to database: 07/02/2026, 06:21:47 UTC

Last enriched: 07/09/2026, 09:25:11 UTC

Last updated: 08/16/2026, 00:41:14 UTC

Views: 83

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

Need more coverage?

Upgrade to Pro Console for AI refresh and higher limits.

For incident response and remediation, OffSeq services can help resolve threats faster.

Latest Threats

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses