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

- 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-24377 · JSON: https://cvemate.com/vulnerability/CVE-2021-24377/json

## Description

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

## Signals

- CVSS: 8.1 high (v3.1, NVD) CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
- EPSS: 1.183%, percentile 68.794%, 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/85c0a564-2e56-413d-bc3a-1039343207e4>
- <https://www.wordfence.com/threat-intel/vulnerabilities/id/ef9a6ef5-368e-40df-9a17-2779e453dfcc>

---

Data as of 2026-12-05T13:32:07.406Z. 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
