# CVE-2021-24377: Autoptimize < 2.7.8 - Race Condition leading to RCE

- Severity: High 8.1 (CVSS:3.1, scored by NVD) `CVSS:3.1/AV:N/AC:H/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): 1.18%, higher than 68% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2021-06-21T19:18:23.000Z
- Modified: 2026-06-17T03:39:55.587Z
- Weaknesses: CWE-362
- Assigned by: WPScan

## Description

The Autoptimize WordPress plugin before 2.7.8 attempts to remove potential malicious files from the extracted archive uploaded via the 'Import Settings' feature, however this is not sufficient to protect against RCE as a race condition can be achieved in between the moment the file is extracted on the disk but not yet removed. It is a bypass of CVE-2020-24948.

(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 8.1 High `CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H`
- NVD: CVSS:2.0 6.8 Medium `AV:N/AC:M/Au:N/C:P/I:P/A:P`

## References

- <https://wpscan.com/vulnerability/85c0a564-2e56-413d-bc3a-1039343207e4> (exploit, third-party-advisory)

## Sources

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

---

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