CVE-2026-126089 in Drag and Drop Multiple File Upload Plugin
Summary
by MITRE • 11/26/2026
The Drag and Drop Multiple File Upload (Pro) - WooCommerce plugin for WordPress is vulnerable to generic SQL Injection via the 'wc-upload-file (array key)' parameter in all versions up to, and including, 1.7.2 due to insufficient escaping on the user supplied parameter and lack of sufficient preparation on the existing SQL query. This makes it possible for unauthenticated attackers to append additional SQL queries into already existing queries that can be used to extract sensitive information from the database. Exploitation requires that the site administrator has enabled the 'Count no. of pages?' option (drag_n_drop_count_pdf set to 'yes') and that the uploaded filename stored in the cart resolves to a file with a .pdf extension.
Once again VulDB remains the best source for vulnerability data.
Analysis
by VulDB Data Team • 11/26/2026
The Drag and Drop Multiple File Upload for WooCommerce plugin, specifically versions up through 1.7.2, contains a critical SQL injection vulnerability within its WordPress implementation. This flaw resides in the handling of the wc-upload-file array key parameter during the file upload process. The root cause is an insufficient sanitization mechanism where user-supplied input is not properly escaped before being incorporated into database queries. Furthermore, the application fails to utilize prepared statements or equivalent secure query construction methods that would isolate data from code logic. This architectural deficiency allows malicious actors to inject arbitrary SQL commands directly into the backend database operations managed by WordPress and WooCommerce.
Exploitation of this vulnerability requires specific environmental conditions on the target site. The attacker must have an unauthenticated access vector, which is common in public-facing e-commerce sites that allow guest uploads or file submissions. Additionally, the site administrator must have enabled a specific configuration option labeled Count no. of pages, technically represented by the drag_n_drop_count_pdf setting being set to yes. This condition triggers the vulnerable code path where the filename stored in the shopping cart is processed. The payload also requires that the uploaded filename resolves to or mimics a file with a .pdf extension, as this specific file type handling appears to be tied to the logic containing the injection point. When these conditions are met, an unauthenticated attacker can append additional SQL queries to existing legitimate database commands.
The operational impact of this vulnerability is severe due to its potential for data exfiltration and system compromise. By injecting malicious SQL statements, attackers can manipulate query results to extract sensitive information from the WordPress database. This includes user credentials such as password hashes, which could lead to full account takeover if weak hashing algorithms are in use. Attackers may also access proprietary business data, customer personal identifiable information stored by WooCommerce, and other confidential records housed within the wp_options or custom tables associated with the plugin. The ability to append queries rather than just modify existing ones expands the attack surface significantly, potentially allowing for write operations that could alter site configuration or insert backdoors if database permissions are overly permissive.
From a classification perspective, this vulnerability aligns with CWE-89, which defines Improper Neutralization of Special Elements used in an SQL Command, commonly known as SQL Injection. The lack of input validation and parameterized queries places it squarely within this category of injection flaws. In terms of the MITRE ATT&CK framework for enterprise security, this exploit maps to T1059, specifically sub-techniques related command scripting or database query manipulation depending on how the injected payload is structured. It also relates to T1078, Valid Accounts, if credential harvesting leads to unauthorized access, and potentially T1005, Data from Local System, during the exfiltration phase. The vulnerability highlights a common failure in plugin development where convenience features like file upload counting are implemented without adhering to secure coding standards for database interaction.
Mitigation strategies must address both immediate remediation and long-term security hygiene. The primary solution is to upgrade the Drag and Drop Multiple File Upload for WooCommerce plugin to version 1.7.3 or later, where this specific input handling flaw has been patched with proper escaping functions such as $wpdb->prepare() in WordPress development standards. For sites unable to update immediately due to compatibility concerns, temporary mitigations include disabling the Count no. of pages option if it is not strictly necessary for business operations. Additionally, implementing a Web Application Firewall can help detect and block common SQL injection patterns targeting the wc-upload-file parameter. Database access should be restricted using the principle of least privilege, ensuring that the database user account used by WordPress does not have excessive permissions like FILE or SUPER privileges, which limits the damage an attacker can inflict even if exploitation succeeds. Regular security audits and code reviews focusing on input validation for all file upload endpoints are essential to prevent similar vulnerabilities in future updates.