CVE-2026-5821: CWE-73 External Control of File Name or Path in elemntor Image Optimizer – Optimize Images and Convert to WebP or AVIF
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.
AI Analysis
Technical Summary
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.
CVE-2026-5821: CWE-73 External Control of File Name or Path in elemntor 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
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
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.
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 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
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
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.