CVE-2021-24376
JSON

9.8critical

Autoptimize < 2.7.8 - Arbitrary File Upload via "Import Settings"

Severity
9.8critical CVSS:3.1 by NVD
Exploit likelihood
3.73% (higher than 90% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
WPScan

Description

The Autoptimize WordPress plugin before 2.7.8 attempts to delete malicious files (such as .php) form the uploaded archive via the "Import Settings" feature, after its extraction. However, the extracted folders are not checked and it is possible to upload a zip which contained a directory with PHP file in it and then it is not removed from the disk. It is a bypass of CVE-2020-24948 which allows sending a PHP file via the "Import Settings" functionality to achieve Remote Code Execution.

Affected

Product or packageVersionsReported by
Unknown Autoptimizefrom 2.7.8 before 2.7.8CVE List
autoptimize autoptimizebefore 2.7.8NVD

All scores

NVD9.8critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
NVD7.5high CVSS:2.0AV:N/AC:L/Au:N/C:P/I:P/A:P

Classification

What each source says

CVE List

The Autoptimize WordPress plugin before 2.7.8 attempts to delete malicious files (such as .php) form the uploaded archive via the "Import Settings" feature, after its extraction. However, the extracted folders are not checked and it is possible to upload a zip which contained a directory with PHP file in it and then it is not removed from the disk. It is a bypass of CVE-2020-24948 which allows sending a PHP file via the "Import Settings" functionality to achieve Remote Code Execution.

NVD (es)

El plugin Autoptimize de WordPress versiones anteriores a 2.7.8, intenta eliminar los archivos maliciosos (como los .php) del archivo subido por medio de la funcionalidad "Import Settings", después de su extracción. Sin embargo, las carpetas extraídas no era comprobadas y es posible subir un zip que contenga un directorio con un archivo PHP en él y que luego no se elimine del disco. Se trata de una omisión del CVE-2020-24948 que permite enviar un archivo PHP por medio de la funcionalidad "Import Settings" para lograr una ejecución de código remota

References

Sources

SourceRecordLicence
CVE ListCVE-2021-24376 changed 2024-08-03CVE Terms of Use
NVDCVE-2021-24376 changed 2026-06-17Public domain