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…

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 (elemntor) up to version 1.7.4 is vulnerable to arbitrary file deletion due to insufficient path validation in its backup removal function. Authenticated users with Author-level access can manipulate backup file paths via post meta fields and cause deletion of arbitrary files on the server when deleting attachments. This vulnerability can lead 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/02/2026, 06:36:19 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 validating 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. Upon deletion of the associated attachment, the plugin calls File_System::delete() on these paths without validation, enabling arbitrary file deletion within the web server's filesystem permissions. This vulnerability is classified as CWE-73 (External Control of File Name or Path) and has a CVSS v3.1 score of 8.1, indicating high severity.

Potential Impact

An attacker with Author-level access can delete arbitrary files on the server within the permissions of the web server process. This can cause denial of service by removing critical files, data loss by deleting important data, or security degradation if sensitive files are deleted or system stability is compromised. The vulnerability does not 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 access to trusted users only and monitor for suspicious activity related to post meta manipulation. Avoid deleting attachments unless necessary and consider disabling the plugin if exploitation risk is unacceptable.

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/02/2026, 06:36:19 UTC

Last updated: 07/02/2026, 07:22:32 UTC

Views: 6

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