LIVE · cybersecurity feed
Live wire
cve recordhigh

CVE-2026-5821

Published
CVSS8.1
Severityhigh
WeaknessCWE-73
ExploitedNot in CISA KEV

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H

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 arb

References

← Back to the CVE Tracker

Our coverage of CVE-2026-5821

No stories yet. This page updates automatically when we publish reporting that references CVE-2026-5821.