> CVE-2026-5821 [HIGH]

« BACK_TO_HOME
PUBLISHED
2026-07-02 06:16
MODIFIED
2026-07-02 06:16
CVSS_SCORE V3
8.1
EPSS (Prob. Exploit)
0.66%
Top 48.9%
DATA SOURCES:
NVD 🔗 2026-07-02 CWE MITRE 🔗 2026-11-01 FIRST EPSS 🔗 2026-10-25

> 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.

> AFFECTED_PRODUCTS

ℹ️ Aucun produit affecté n'a encore été publié par NVD pour cette CVE.

> CVSS V3 METRICS

CVSS_VECTOR
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
EXPLOITABILITY
2.8
IMPACT
5.2

> MÉTRIQUES CVSS DÉTAILLÉES

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:H/A:H
Métrique Valeur Interprétation
AV (Vecteur d'Attaque)
Attack Vector
Network (N)
Exploit possible à distance via réseau (HTTP, API, etc.)
AC (Complexité d'Attaque)
Attack Complexity
Low (L)
Peu de conditions requises pour exploiter
PR (Privilèges Requis)
Privileges Required
Low (L)
Authentifié avec compte utilisateur basique
UI (Interaction Utilisateur)
User Interaction
None (N)
Aucune interaction utilisateur nécessaire
S (Périmètre)
Scope
Unchanged (U)
Impact reste dans le périmètre du composant compromis
C (Impact Confidentialité)
Confidentiality Impact
None (N)
Aucune divulgation d'informations
I (Impact Intégrité)
Integrity Impact
High (H)
Modification totale des données possible
A (Impact Disponibilité)
Availability Impact
High (H)
Interruption totale du service possible

> RÉSUMÉ DES IMPACTS

Confidentialité
None
Aucune divulgation d'informations
Intégrité
High
Modification totale des données possible
Disponibilité
High
Interruption totale du service possible

> WEAKNESSES

CWE-73

> CWE DETAILED DESCRIPTIONS

CWE-73: External Control of File Name or Path - The product allows user input to control or influence paths or file names that are used in filesystem operations.

> HISTORIQUE DES MODIFICATIONS

Première apparition
02/07/2026 06:16
Source: NVD
📊 ENRICHISSEMENT 01/08/2026 06:01
CWE
Champ modifié: Description CWE
Ancienne valeur:
N/A
Nouvelle valeur:
CWE-73: External Control of File Name or Path - The product allows user input to control or influence paths or file names that are used in filesystem operations.
Total des modifications: 1 Dernière mise à jour: 3 months ago

> REFERENCES

https://plugins.trac.wordpress.org/browser/image-optimization/tags/1.7.3/classes...
https://plugins.trac.wordpress.org/browser/image-optimization/tags/1.7.3/classes...
https://plugins.trac.wordpress.org/browser/image-optimization/tags/1.7.3/modules...
https://plugins.trac.wordpress.org/browser/image-optimization/trunk/classes/imag...
https://plugins.trac.wordpress.org/browser/image-optimization/trunk/classes/imag...
https://plugins.trac.wordpress.org/browser/image-optimization/trunk/modules/back...
https://plugins.trac.wordpress.org/changeset?sfp_email=&sfph_mail=&reponame=&old...
https://www.wordfence.com/threat-intel/vulnerabilities/id/a1a00374-e9d6-46f9-a28...
« BACK_TO_HOME