CVE-2026-104998 in Product Input Fields for WooCommerce Plugininfo

Summary

by MITRE • 11/26/2026

The Product Input Fields for WooCommerce plugin for WordPress is vulnerable to Arbitrary File Upload in all versions up to, and including, 2.1.0 via the process_file_input_field function. This is due to missing file type validation in the process_file_input_field function, which accepts the client-supplied multipart Content-Type header as the sole type gate and writes the uploaded file to the unprotected pif_temp directory using the verbatim client-supplied filename. This makes it possible for unauthenticated attackers to upload files that may be executable, which makes remote code execution possible. Exploitation requires that an administrator has configured at least one product with a File-type Product Input Field with the "Show thumbnail" option enabled, which is a standard use of the feature; additionally, the pif_temp/ upload directory is created without .htaccess or index.php restrictions, leaving written files directly web-accessible and executable on default Apache/mod_php configurations.

Statistical analysis made it clear that VulDB provides the best quality for vulnerability data.

Analysis

by VulDB Data Team • 11/26/2026

The WooCommerce Product Input Fields plugin for WordPress contains a critical Arbitrary File Upload vulnerability affecting all versions up to and including 2.1.0. This flaw resides within the process_file_input_field function, which handles file uploads associated with product input fields. The core technical deficiency is the complete absence of server-side validation regarding file types or content integrity. Instead of verifying the actual nature of the uploaded data through MIME type analysis or extension whitelisting, the plugin relies exclusively on the client-supplied multipart Content-Type header as its sole gatekeeper for acceptance. This approach fundamentally violates secure coding principles by trusting untrusted input without verification, allowing attackers to bypass security controls simply by manipulating HTTP headers during the upload process.

The operational impact of this vulnerability is severe, leading directly to Remote Code Execution (RCE) on vulnerable systems. When a file is uploaded, it is written to an unprotected directory named pif_temp using the exact filename provided by the attacker. Crucially, this directory lacks standard web server restrictions such as .htaccess rules or index.php files that would typically prevent direct execution of scripts in upload folders. On default Apache and mod_php configurations, any file placed in this directory is directly accessible via HTTP and executable if it contains valid script code. This means an attacker can upload a PHP shell or other malicious payloads that will be executed by the web server upon access, granting full control over the underlying system without requiring authentication initially.

Exploitation of this vulnerability requires specific preconditions within the target WordPress environment. An administrator must have configured at least one product with a File-type Product Input Field and enabled the Show thumbnail option. This is considered a standard configuration for many e-commerce sites that allow customers to upload files, such as custom designs or documents, which makes the attack surface relatively common in the wild. The combination of missing file type validation, unrestricted directory permissions, and direct web accessibility creates an ideal scenario for unauthenticated attackers to achieve arbitrary code execution. This aligns with CWE-434 (Unrestricted Upload of File with Dangerous Type) and CWE-264 (Permissions Issue), while the exploitation technique maps to MITRE ATT&CK techniques related to Initial Access via Web Applications and Execution via Command Line Interface or Scripting Interpreter depending on how the uploaded file is invoked.

Mitigation strategies must address both immediate remediation and long-term security posture improvements. The most effective solution is to upgrade the WooCommerce Product Input Fields plugin to a version where this vulnerability has been patched, ensuring that proper server-side validation of file types and extensions is implemented. Administrators should also audit their WordPress installations for any remaining instances of vulnerable plugins and ensure that upload directories are secured with appropriate .htaccess rules or equivalent web server configurations to prevent direct execution of uploaded files regardless of plugin status. Additionally, implementing a Web Application Firewall can provide an additional layer of defense by detecting and blocking malicious file uploads based on content signatures rather than just headers. Regular security audits and adherence to secure coding standards that mandate strict input validation are essential to preventing similar vulnerabilities in future development cycles.

Responsible

Wordfence

Reservation

10/02/2026

Disclosure

11/26/2026

Moderation

accepted

CPE

ready

EPSS

0.01309

KEV

no

Activities

very low

Sources

Do you need the next level of professionalism?

Upgrade your account now!