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

- Severity: Critical 9.8 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 3.73%, higher than 90% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-06-21T19:18:22.000Z
- Modified: 2026-06-17T03:39:55.490Z
- Weaknesses: CWE-434
- 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.

(As written by CVE List.)

## Affected

- Unknown Autoptimize: from 2.7.8 before 2.7.8
- autoptimize autoptimize: before 2.7.8

## Every score

- NVD: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 7.5 High `AV:N/AC:L/Au:N/C:P/I:P/A:P`

## References

- <https://wpscan.com/vulnerability/93edcc23-894a-46c2-84d2-407dcb64ba1e> (exploit, third-party-advisory)

## Sources

- CVE List: [CVE-2021-24376](https://www.cve.org/CVERecord?id=CVE-2021-24376), CVE Terms of Use, modified 2024-08-03
- NVD: [CVE-2021-24376](https://nvd.nist.gov/vuln/detail/CVE-2021-24376), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2021-24376 · Whole record: https://cve.day/CVE-2021-24376.json · Rebuilt by cve.day 2026-11-25T22:58:02.054Z
