CVE-2021-24376

Autoptimize < 2.7.8 - Arbitrary File Upload via "Import Settings"

No CVSS score yet EPSS 3.73%

Published 21 Jun 2021 Updated 3 Aug 2024 CNA: 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.

Exploitation

EPSS 3.73%: the probability of exploitation activity in the next 30 days, from the EPSS model of FIRST. The score is higher than 90.0% of all scored CVEs. Scores of 1 Dec 2026.

Weakness

  • CWE-434 Unrestricted Upload of File with Dangerous Type

Affected products

As the CNA lists them.

ProductVersions
Autoptimize
Unknown
affected from 2.7.8, before 2.7.8

Is my server affected?

This CVE is in a product, which Linux distributions and language package managers do not ship. The advisory of the vendor is in the references below.

Vulnpocalypse matches the package lists of Linux servers and containers against the Trivy vulnerability database, which does not list this product.

References

Advisories

Source: the record CVE-2021-24376 of the CVE List (CVE Program), CVE Terms of Use; EPSS of FIRST; the CWE catalog of MITRE, CWE Terms of Use. The text of the record is shown as published. Data sources and licences.