CVE-2021-24376 Autoptimize < 2.7.8 - Arbitrary File Upload via "Import Settings"
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.
Other vulnerabilities in Unknown Autoptimize
- CVE-2021-24377 Autoptimize < 2.7.8 - Race Condition leading to RCE
- CVE-2020-24948 File upload in n/a
- CVE-2023-2113 Autoptimize < 3.1.7 - Admin+ Stored Cross-Site Scripting via Settings Import
- CVE-2022-2635 Autoptimize < 3.1.1 - Admin+ Stored Cross Site Scripting
- CVE-2021-24378 Autoptimize < 2.7.8 - Authenticated Stored XSS via File Upload
Sources
Also known as GHSA-8637-ph22-g43w.