CVE-2026-5364
HIGHDrag and Drop File Upload for Contact Form 7 <= 1.1.3 - Unauthenticated Arbitrary File Upload via sanitize_file_name Bypass
Title source: cnaExploitation Summary
EIP tracks 1 public exploit for CVE-2026-5364. PoCs published by xxconi.
AI-analyzed exploit summary The repository contains a functional exploit for CVE-2026-5364, an unauthenticated arbitrary file upload vulnerability in the Drag and Drop File Upload for Contact Form 7 plugin. The exploit bypasses the `sanitize_file_name()` function by appending a `$` character to the file extension, allowing PHP files to be uploaded and executed.
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.
Exploits (1)
The repository contains a functional exploit for CVE-2026-5364, an unauthenticated arbitrary file upload vulnerability in the Drag and Drop File Upload for Contact Form 7 plugin. The exploit bypasses the `sanitize_file_name()` function by appending a `$` character to the file extension, allowing PHP files to be uploaded and executed.
References (10)
Scores
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H