CVE-2022-50972: Vulnerability in WooCommerce

Critical. WooCommerce 7.1.0 contains a remote code execution vulnerability that allows attackers to execute arbitrary PHP code by injecting shell commands through the product-type parameter. Attackers can send requests to the class-wc-meta-box-product-images.php endpoint with unsanitized product-type values to write malicious PHP files to the web root.

CWE-94

Exploitation
None confirmed
Severity
9.3 of 10
Attack likelihood
Unknown
Fix
None recorded
Patch deadline
No deadline set

Details

Vector
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Weakness
CWE-94
Published
20 Jun 2026
Last change
6 Oct 2026

Affected products

Affected versions and the first fixed release

  • WooCommerce Version 7.1.0. No fixed version recorded

Advisories

Vendor and security advisories

Exploit code

Public exploits and proofs of concept, handle with care

Related