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

Critical 9.8 Published Updated

An attacker can upload a malicious PHP file via the Import Settings feature to achieve remote code execution on the WordPress site.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-24376?

CVE-2021-24376 is a critical vulnerability in Unknown Autoptimize, published on 21 Jun 2021. An attacker can exploit it over the internet without logging in, with no action from the victim.

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

Weakness: CWE-434

Which versions are affected by CVE-2021-24376?

It affects 1 product.

Products include Autoptimize Autoptimize.

How do I fix CVE-2021-24376?

No fix has been published for CVE-2021-24376 yet. Limit exposure of the affected software until one is available.

Is CVE-2021-24376 being exploited?

There is no known exploitation of CVE-2021-24376 in the wild and no public exploit code.

Sources

Also known as GHSA-8637-ph22-g43w.

Is CVE-2021-24376 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free