Autoptimize <= 2.7.7 - Race Condition leading to Remote Code Execution

Concurrent Execution using Shared Resource with Improper Synchronization ('Race Condition')
CVE CVE-2021-24377
CVSS High (8.1)
Publicly Published October 9, 2020
Last Updated January 22, 2024
Researcher Marcin Węgłowski
Description

The Autoptimize WordPress plugin before 2.7.8 attempts to remove potential malicious files from the extracted archive uploaded via the 'Import Settings' feature, however this is not sufficient to protect against RCE as a race condition can be achieved in between the moment the file is extracted on the disk but not yet removed. It is a bypass of CVE-2020-24948.

References

1 affected software package

Software Type Plugin
Software Slug autoptimize (view on wordpress.org)
Patched? Yes
Affected Version
  • <= 2.7.8
Patched Version
  • 2.7.8
This record contains material that is subject to copyright

Copyright 2012-2026 Defiant Inc.
License: Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy. License Detail.