vulnerability
WordPress Plugin: autoptimize: CVE-2021-24376: Unrestricted Upload of File with Dangerous Type
| Severity | CVSS | Published | Added | Modified |
|---|---|---|---|---|
| 7 | (AV:N/AC:L/Au:N/C:P/I:P/A:P) | Oct 9, 2020 | May 15, 2025 | May 5, 2026 |
Severity
7
CVSS
(AV:N/AC:L/Au:N/C:P/I:P/A:P)
Published
Oct 9, 2020
Added
May 15, 2025
Modified
May 5, 2026
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.
Solution
autoptimize-plugin-cve-2021-24376
References
- https://www.cve.org/CVERecord?id=CVE-2021-24376
- https://www.wordfence.com/threat-intel/vulnerabilities/id/640f2616-f3a5-4be6-901e-848d2d77506e?source=api-prod
- https://euvd.enisa.europa.eu/vulnerability/EUVD-2021-11288
- CVE-2021-24376
- https://attackerkb.com/topics/CVE-2021-24376
- CWE-434
- EUVD-EUVD-2021-11288
Rapid7 Labs
2026 Global Threat Landscape Report
The predictive window has collapsed. Exploitation follows disclosure in days. See how attackers are accelerating and how to stay ahead.