Skip to main content

PHP CVE-2026-5718

| EUVDEUVD-2026-23459 HIGH
Unrestricted Upload of File with Dangerous Type (CWE-434)
2026-04-17 Wordfence GHSA-xj7v-jqv6-v48w
8.1
CVSS 3.1 · NVD
Share

Severity by source

NVD PRIMARY
8.1 HIGH
AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H

Primary rating from NVD · only source for this CVE.

CVSS VectorNVD

Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

Lifecycle Timeline

5
Re-analysis Queued
Apr 22, 2026 - 20:37 vuln.today
cvss_changed
Analysis Generated
Apr 17, 2026 - 18:44 vuln.today
EUVD ID Assigned
Apr 17, 2026 - 18:15 euvd
EUVD-2026-23459
Analysis Generated
Apr 17, 2026 - 18:15 vuln.today
CVE Published
Apr 17, 2026 - 17:25 nvd
HIGH 8.1

DescriptionCVE.org

The Drag and Drop Multiple File Upload for Contact Form 7 plugin for WordPress is vulnerable to arbitrary file upload in versions up to, and including, 1.3.9.6. This is due to insufficient file type validation that occurs when custom blacklist types are configured, which replaces the default dangerous extension denylist instead of merging with it, and the wpcf7_antiscript_file_name() sanitization function being bypassed for filenames containing non-ASCII characters. This makes it possible for unauthenticated attackers to upload arbitrary files, such as PHP files, to the server, which can be leveraged to achieve remote code execution.

AnalysisAI

Remote code execution in Drag and Drop Multiple File Upload for Contact Form 7 plugin (WordPress) versions ≤1.3.9.6 allows unauthenticated attackers to upload PHP webshells via dual file validation weaknesses. The plugin's custom blacklist configuration overwrites default protections instead of merging, and non-ASCII filenames bypass the wpcf7_antiscript_file_name() sanitizer. CVSS 8.1 with High attack complexity (AV:N/AC:H/PR:N/UI:N). Wordfence reported; patch released in changeset 3508522. No KEV listing or confirmed public exploitation, but proof-of-concept feasible given detailed vulnerable code references (lines 62, 883, 970, 987).

Technical ContextAI

This vulnerability stems from CWE-434 (Unrestricted Upload of File with Dangerous Type) in a WordPress Contact Form 7 extension plugin. The plugin implements file upload handling with two critical flaws: (1) When administrators configure custom file type blacklists, the plugin replaces the default dangerous extension denylist (e.g., .php, .phtml, .php5) rather than merging additions, leaving critical extensions unprotected. (2) The wpcf7_antiscript_file_name() function designed to sanitize filenames fails when processing non-ASCII characters, allowing attackers to craft filenames like 'shell.phÞ' or using Unicode homoglyphs to evade detection. The affected CPE (cpe:2.3:a:glenwpcoder:drag_and_drop_multiple_file_upload_for_contact_form_7) identifies the specific product. Vulnerable code sections at lines 62 (blacklist logic), 883-970 (filename handling), and 987 (upload execution) confirm the dual-path bypass mechanism. This is a classic defense-in-depth failure where two independent security controls both fail under specific conditions.

RemediationAI

Upgrade immediately to version 1.3.9.7 or later, which addresses both the blacklist merging logic and non-ASCII filename sanitization issues per WordPress plugin repository changeset 3508522 (https://plugins.trac.wordpress.org/changeset/3508522/drag-and-drop-multiple-file-upload-contact-form-7). The patch merges custom blacklists with default dangerous extensions and strengthens wpcf7_antiscript_file_name() to handle Unicode characters. If immediate patching is not feasible, implement these temporary controls: (1) Remove all custom file type blacklist configurations to restore default protections - accept the trade-off of potentially blocking legitimate file types users previously uploaded; (2) Configure web server rules to block execution of .php, .phtml, .php5, .php7 files in the wp-content/uploads directory (for Apache, use 'php_flag engine off' in .htaccess; for Nginx, remove php location blocks for uploads path) - note this may break legitimate upload processing scripts if poorly configured; (3) Deploy file integrity monitoring on wp-content/uploads to detect unexpected PHP files; (4) Review existing uploads for suspicious PHP files created since plugin installation. Each workaround has limitations and should not replace upgrading.

More in PHP

View all
CVE-2019-11043 CRITICAL POC
9.8 Oct 28

In PHP versions 7.1.x below 7.1.33, 7.2.x below 7.2.24 and 7.3.x below 7.3.11 in certain configurations of FPM setup it

CVE-2012-1823 CRITICAL POC
9.8 May 11

sapi/cgi/cgi_main.c in PHP before 5.3.12 and 5.4.x before 5.4.2, when configured as a CGI script (aka php-cgi), does not

CVE-2016-1555 CRITICAL POC
9.8 Apr 21

(1) boardData102.php, (2) boardData103.php, (3) boardDataJP.php, (4) boardDataNA.php, and (5) boardDataWW.php in Netgear

CVE-2018-11138 CRITICAL POC
9.8 May 31

The '/common/download_agent_installer.php' script in the Quest KACE System Management Appliance 8.0.318 is accessible by

CVE-2024-11680 CRITICAL POC
9.8 Nov 26

ProjectSend versions prior to r1720 are affected by an improper authentication vulnerability. Rated critical severity (C

CVE-2025-49113 CRITICAL POC
9.9 Jun 02

Roundcube Webmail contains a critical PHP object deserialization vulnerability (CVE-2025-49113, CVSS 9.9) that allows au

CVE-2017-9841 CRITICAL POC
9.8 Jun 27

Util/PHP/eval-stdin.php in PHPUnit before 4.8.28 and 5.x before 5.6.3 allows remote attackers to execute arbitrary PHP c

CVE-2025-0108 HIGH POC
8.8 Feb 12

Palo Alto Networks PAN-OS management web interface contains an authentication bypass allowing unauthenticated attackers

CVE-2021-25298 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2021-25296 HIGH POC
8.8 Feb 15

Nagios XI version xi-5.7.5 is affected by OS command injection. Rated high severity (CVSS 8.8), this vulnerability is re

CVE-2013-4983 CRITICAL POC
10.0 Sep 10

The get_referers function in /opt/ws/bin/sblistpack in Sophos Web Appliance before 3.7.9.1 and 3.8 before 3.8.1.1 allows

CVE-2023-6553 CRITICAL POC
9.8 Dec 15

The Backup Migration plugin for WordPress is vulnerable to Remote Code Execution in all versions up to, and including, 1

Share

CVE-2026-5718 vulnerability details – vuln.today

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy