Images Optimize and Upload CF7 <= 2.1.4 - Missing Authorization to Arbitrary File Deletion

Missing Authorization
CVE CVE-2022-4101
CVSS Critical (9.1)
Publicly Published December 21, 2022
Last Updated June 2, 2025
Researcher cydave
Description

The Images Optimize and Upload CF7 plugin for WordPress is vulnerable to authorization bypass due to a missing capability check on the yr_api_delete AJAX action available to unprivileged users in versions up to, and including, 2.1.4. This makes it possible for unauthenticated attackers to delete arbitrary files. This could be used to delete the wp-config.php file that would make complete site takeover relatively simple for an attacker.

References

1 affected software package

Software Type Plugin
Software Slug images-optimize-and-upload-cf7 (view on wordpress.org)
Patched? Yes
Affected Version
  • <= 2.1.4
Patched Version
  • 2.2.1
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.