CVE-2026-5364 Drag and Drop File Upload for Contact Form 7 <= 1.1.3 - Unauthenticated Arbitrary File Upload via sanitize_file_name Bypass
- Published
- Updated
- Exploit status
- No public exploit known
- CISA SSVC
- No known exploitation · automatable: no · technical impact: total
- Technology
- PHPWordPress
Description
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.
Upgrade path
2 packages: 2 fixed.
| Package | Affected | Fixed in | Status |
|---|---|---|---|
| addonsorg Drag and Drop File Upload for Contact Form 7 | <= 1.1.3 | after 1.1.3 | Fixed |
| wordpress drag-and-drop-file-upload-for-contact-form-7(WordPress) | < 1.1.4 | 1.1.4 | Fixed |
Affected products
| Product | Affected versions | Fixed in |
|---|---|---|
| wordpress drag-and-drop-file-upload-for-contact-form-7(WordPress) | < 1.1.4 | 1.1.4 |
| addonsorg Drag and Drop File Upload for Contact Form 7 | <= 1.1.3 | No fix listed |