# CVE-2021-24376: Autoptimize \< 2.7.8 - Arbitrary File Upload via "Import Settings"

- Priority: **Prioritise**
- Reason: Public exploit (reference, Date unknown)
- Next step: Check applicability: affected before 2.7.8 (CNA); fix release not confirmed
- Status: published
- Published: 2021-06-21 · Modified: 2024-08-03
- Record: https://cvemate.com/vulnerability/CVE-2021-24376 · JSON: https://cvemate.com/vulnerability/CVE-2021-24376/json

## Description

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

## Signals

- CVSS: 9.8 critical (v3.1, NVD) CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 3.727%, percentile 90.155%, as of 2026-12-04
- Known exploited (KEV): CISA not listed, ENISA not listed, CIRCL not listed
- Ransomware use: none recorded
- Public exploits: 1 (reference)

## Affected

- autoptimize autoptimize: \< 2.7.8
- unknown autoptimize: ≥ 2.7.8, \< 2.7.8
- wordpress autoptimize: \< 2.7.8

## References

- <https://wpscan.com/vulnerability/93edcc23-894a-46c2-84d2-407dcb64ba1e>
- <https://www.wordfence.com/threat-intel/vulnerabilities/id/640f2616-f3a5-4be6-901e-848d2d77506e>

---

Data as of 2026-12-05T13:32:01.909Z. The priority label is CveMate's own model from public evidence, not an official rating, and it knows nothing about your assets. How labels are decided: https://cvemate.com/faq#priority
