Drag and Drop File Upload for Contact Form 7 <= 1.1.3 - Unauthenticated Arbitrary File Upload via sanitize_file_name Bypass
The Drag and Drop File Upload for Contact Form 7 plugin for WordPress is vulnerable to arbitrary file upload in versions up to, and including, 1.1.3. This is due to the plugin extracting the file extension before sanitization occurs and allowing the file type parameter to be controlled by the attacker rather than being restricted to administrator-configured values, which when combined with the fact that validation occurs on the unsanitized extension while the file is saved with a sanitized extension, allows special characters like '$' to be stripped during the save process. This makes it possible for unauthenticated attackers to upload arbitrary PHP files and potentially achieve remote code execution, however, an .htaccess file and name randomization is in place which restricts real-world exploitability.
CVE-2026-5364 is a high severity with CVSS 8.1 Remote Code Execution issue affecting the Plugin Drag and Drop File Upload for Contact Form 7. It affects Versions up to 1.1.3 and is fixed in 1.1.4.
CVE-2026-5364 is tracked for the Plugin Drag and Drop File Upload for Contact Form 7 as high severity with CVSS 8.1. The affected range is Versions up to 1.1.3. Update Drag and Drop File Upload for Contact Form 7 to 1.1.4 or newer where that version is compatible with the site.
| Software Type | Plugin |
|---|---|
| Software Slug |
drag-and-drop-file-upload-for-contact-form-7
View on wordpress.org
|
| CVE | CVE-2026-5364 |
| Patched Versions |
1.1.4
|
| Affected Versions |
Versions up to 1.1.3
|
This record contains material that is subject to copyright
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. Read more
License: CVE Usage: MITRE 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 Common Vulnerabilities and Exposures (CVE®). Any copy you make for such purposes is authorized provided that you reproduce MITRE's copyright designation and this license in any such copy. Read more