Autoptimize < 2.7.8 - Arbitrary File Upload via "Import Settings"
CVE-2021-24376
Key facts
CVE-2021-24376 is a critical severity (CVSS 9.8) vulnerability in Wordpress Autoptimize. No exploitation in the wild or public proof-of-concept has been recorded so far. Its EPSS score is 3.7%, the estimated probability of exploitation in the next 30 days.
How risky is it?
- Yes: Works over the network, no login needed
- No: No public exploit code yet
- No: No attacks seen yet
- No: Not on CISA's exploited list
Our verdict
Patch this week
Exploitation is likely. Prioritise the fix.
What to do
1Check the vendor's fix
No fixed version is recorded yet. The vendor advisory is the authoritative source for patches.
2Can't patch yet? Reduce exposure
It can be reached over the network, so limit who can reach Autoptimize. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.
3Why it's rated "Patch this week"
- It can be exploited remotely without credentials.
- Its CVSS severity is critical (9.8).
What is CVE-2021-24376?
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.
Affected Version(s)
Autoptimize 2.7.8