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

Patch this weekFull system takeover over the network, no login needed.
9.8CRITICAL

Key Information:

Vendor

Wordpress

Vendor
CVE Published:
21 June 2021

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

References

Deserialization Vulnerability in Ultimate Member Plugin by WordPress

CVE-2026-134481
WordPressUltimate Member😄9.8CRITICAL

Unauthorized Password Reset in User Registration Aide Plugin for WordPress

CVE-2026-121385
WordPressUser Registration Aide👾9.8CRITICAL

Remote Code Execution Vulnerability in WP Duplicate Plugin by WordPress

CVE-2026-14492
WordPressWP Duplicate – WordPre...9.8CRITICAL
View more Wordpress vulnerabilities...

CVSS V3.1

Score:
9.8
Severity:
CRITICAL
Confidentiality:
High
Integrity:
High
Availability:
High
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Marcin Węgłowski
.