Radar sectionsDatabase
Check my site
WordPress plugin

Image Optimizer <= 1.7.4 — Authenticated (Author+) Arbitrary File Deletion via Post Meta Field Injection

CVE-2026-5821Published · Updated

Action summary

Affected: ≤1.7.4Update to 1.7.5 or newer

All remediation steps
Severity
High8.1
CVSS
8.1
CVSS 3.1 · CNA (Wordfence)
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
What does this vector mean?
AV:N Attack vector
Network
AC:L Attack complexity
Low
PR:L Privileges required
Low
UI:N User interaction
None
S:U Scope
Unchanged
C:N Confidentiality
None
I:H Integrity
High
A:H Availability
High
Weakness
CWE-73 External Control of File Name or Path
Required access
Unknown
Exploit prediction (EPSS)
No score
CISA KEV
Not listed

Am I affected?

Image Optimizer – Compress Images and Convert to WebP or AVIF image-optimization

  1. Affected≤ 1.7.4
  2. Patched in1.7.5

Update to 1.7.5 or newer.

You are affected if you run ≤ 1.7.4. Version 1.7.5 and later are not affected by this issue.

  • Check your version: in wp-admin go to Plugins → Installed Plugins and read the version under Image Optimizer – Compress Images and Convert to WebP or AVIF.
  • No admin access? Run a passive check of your site. It reads public files only.

What to do

  1. Update to version 1.7.5, or a newer patched version
  2. Rotate administrator passwords and application secrets if the site ran a vulnerable version while publicly reachable.
  3. Watch Image Optimizer – Compress Images and Convert to WebP or AVIF to get an email when the next vulnerability is published.

Advisory

Source description from Wordfence Intelligence, credited to Dmitrii Ignatyev.

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.

Exploits & references

Proof-of-concept & detection

No public proof-of-concept or detection template is known for this vulnerability.

Advisories & patches

More in Image Optimizer – Compress Images and Convert to WebP or AVIF

All 2
More vulnerabilities in Image Optimizer – Compress Images and Convert to WebP or AVIF
SeverityVulnerabilityCVEPublished
Medium4.3Missing Authorization
≤1.7.1Update to 1.7.2
CVE-2026-25387

Timeline

  1. CVE published

    Severity high, CVSS 8.1

  2. Record last updated

Sources & licenses

Wordfence record
Vulnerability data
Wordfence Intelligence. Copyright 2012-2026 Defiant Inc. Licensed under the CC BY-SA 4.0.
CVE® identifiers
Copyright 1999-2026 The MITRE Corporation. Used under the CVE Program. CVE® is a registered trademark of The MITRE Corporation.
CVSS / CWE
National Vulnerability Database (NVD), shown unmodified. This product uses the NVD API but is not endorsed or certified by the NVD.
VulnCrest content
Summary, remediation guidance and page layout © VulnCrest. Not sourced from NVD.

How we use these sources

Search VulnCrest Radar

Are you sure?