CVE-2022-50972 PUBLISHED

WooCommerce 7.1.0 Remote Code Execution via class-wc-meta-box-product-images.php

Assigner: VulnCheck
Reserved: 11.01.2026 Published: 20.06.2026 Updated: 20.06.2026

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.

Metrics

CVSS 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
CVSS Score: 9.3

Product Status

Vendor WooCommerce
Product WooCommerce
Versions Default: unaffected
  • Version 7.1.0 is affected

Credits

  • Milad Karimi finder

References

Problem Types

  • Improper Control of Generation of Code ('Code Injection') CWE