CVE-2026-5821
Last modified
CVE-2026-5821 is a high-severity vulnerability rated 8.1/10 on the CVSS scale. 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. EPSS estimates a 0.35% chance of exploitation in the next 30 days.
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.
Metrics
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Weakness Enumeration
Affected Software
Source: CNA advisory (CVE.org). NVD analysis pending.
| Vendor | Product | Versions |
|---|---|---|
| elemntor | Image Optimizer – Optimize Images and Convert to WebP or AVIF | <= 1.7.4 |
References
Timeline
- Published
- Last Modified
- Status
- Deferred
Frequently Asked Questions
What is CVE-2026-5821?
How severe is CVE-2026-5821?
How do I fix CVE-2026-5821?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2026
- CVE-2026-58198ChatterBot is a machine learning, conversational dialog engi…5.5
- CVE-2026-5820The Zypento Blocks plugin for WordPress is vulnerable to Sto…6.4
- CVE-2026-58203pydantic-settings provides settings management using Pydanti…5.3
- CVE-2026-58207NATS Server is a high-performance server for NATS.io, the cl…6.5
- CVE-2026-58208NATS Server is a high-performance server for NATS.io, the cl…7.5
- CVE-2026-58209NATS Server is a high-performance server for NATS.io, the cl…4.3
- CVE-2026-58210NATS Server is a high-performance server for NATS.io, the cl…7.5
- CVE-2026-58211NATS Server is a high-performance server for NATS.io, the cl…5.4
- CVE-2026-58212Rejected reason: Further research determined the issue is no…
- CVE-2026-58213NATS Server is a high-performance server for NATS.io, the cl…7.1
- CVE-2026-58214NATS Server is a high-performance server for NATS.io, the cl…4.3
- CVE-2026-58216An out-of-bounds read flaw was found in Samba's Kerberos Key…5.3
Are you affected by CVE-2026-5821?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
