CVE-2026-104998: Product Input Fields for WooCommerce <= 2.1.0 - Unauthenticated Arbitrary File Upload via Cart File Upload Field
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 processfileinputfield function. This is due to missing file type validation in the processfileinputfield function, which accepts the client-supplied multipart Content-Type header as the sole type gate and writes the uploaded file to the unprotected piftemp 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 piftemp/ upload directory is created without .htaccess or index.php restrictions, leaving written files directly web-accessible and executable on default Apache/modphp configurations.
Affected Software
Event History
Frequently Asked Questions
Which sites are exposed to unauthenticated exploitation?
Sites running Product Input Fields for WooCommerce version 2.1.0 or earlier are exposed if an administrator has configured at least one product with a File-type Product Input Field and enabled the "Show thumbnail" option. This is described as a standard use of the feature.
What does an attacker need to exploit this issue?
No authentication, privileges, or user interaction are required. The attacker needs access to the affected site's product/cart file-upload functionality and can supply a multipart Content-Type header and filename for the uploaded file.
Are files uploaded through the vulnerable path reachable by web requests?
Yes. Uploaded files are written to the pif_temp directory, which is created without .htaccess or index.php restrictions; on default Apache/mod_php configurations, files written there are directly web-accessible and may be executable.