CVE-2026-5364 File upload in Drag and Drop File Upload for Contact Form 7
Unauthenticated attackers can upload arbitrary PHP files via a sanitization bypass, potentially achieving remote code execution despite mitigations.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- None listed
What is CVE-2026-5364?
CVE-2026-5364 is a high-severity vulnerability in addonsorg Drag and Drop File Upload for Contact Form 7, published on 24 Apr 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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.
Weakness: CWE-434
Which versions are affected by CVE-2026-5364?
How do I fix CVE-2026-5364?
No fix has been published for CVE-2026-5364 yet. Limit exposure of the affected software until one is available.
Is CVE-2026-5364 being exploited?
There is no known exploitation of CVE-2026-5364 in the wild and no public exploit code.
Public exploit code: 1 proofs of concept on GitHub.
Sources
Also known as GHSA-8q7x-g4f6-63gp.