Product Input Fields for WooCommerce <= 2.1.0 - Unauthenticated Arbitrary File Upload via File-type Product Input Field

High 8.1 CWE-434Fixed in 2.2.0
ID
WPSEC-2026-3850
Plugin
Product Input Fields for WooCommerce (product-input-fields-for-woocommerce)
Affected
from 2.0.0 before 2.2.0
Remediation
Update to 2.2.0 or later.
CVSS 3.1
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:H/A:H
Weakness
CWE-434
Usage
Plugin Low · Affected versions Low among sites WPSec scans, 2026-11-25
Attack surface
Product Input Fields for WooCommerce on WPSec AttackSurface
Fix released
Published

Description

The Product Input Fields for WooCommerce plugin for WordPress is vulnerable to arbitrary file uploads via File-type Product Input Fields in all versions up to, and including, 2.1.0. This is due to the cart thumbnail preview deciding whether an upload is an image only from the client-supplied MIME type, then copying the file into the publicly accessible wp-content/uploads/pif_temp directory under the client-supplied filename. This makes it possible for unauthenticated attackers to upload arbitrary files, such as PHP scripts, to a web-accessible location on the affected site's server, which may make remote code execution possible. Exploitation requires a product with a file input field that has thumbnail display enabled and whose accepted file types setting does not restrict the uploaded extension.

References

Published by WPSec. Provided as is, without warranty. Corrections: contact us.

This advisory as JSON, OSV or Markdown · All advisories: JSON, OSV, RSS

License: CC BY 4.0