CVE-2022-50972: WooCommerce remote code execution in product-type parameter

CVE-2022-50972 · Severity: critical · CVSS 9.8 · Published 2026-06-20

WooCommerce, a popular e-commerce platform for WordPress, contains a critical security flaw that allows unauthorized individuals to run malicious code on a website's server. By exploiting this vulnerability, an attacker could take complete control of an online store, potentially stealing customer data, modifying website content, or disrupting business operations. This issue specifically affects version 7.1.0 and requires immediate attention to prevent site compromise.

Technologies: Automattic WooCommerce. Vendors: Automattic.

Quick answers

Is CVE-2022-50972 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2022-50972 being exploited in the wild.
How severe is CVE-2022-50972?
Critical severity, with a CVSS score of 9.8, published 20 June 2026.
Which products and versions are affected?
Automattic WooCommerce 7.1.0.
Is there a fix for CVE-2022-50972?
No fixed version is recorded yet. Check the vendor's advisory in the references below. If you run it, Junglewise drafts a mitigation that fits your setup and applies it once you approve, with senior security engineers behind it.
How is CVE-2022-50972 attacked?
It is attacked over the network, in a network appliance.
Am I affected by CVE-2022-50972?
Check whether you run Automattic WooCommerce at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

A remote code execution (RCE) vulnerability exists in WooCommerce 7.1.0 due to improper sanitization of the 'product-type' parameter in the class-wc-meta-box-product-images.php component. An unauthenticated attacker can exploit this by sending a specially crafted HTTP request containing shell commands or PHP code within the affected parameter. The vulnerability stems from the application using unsanitized input to dynamically instantiate classes or execute system-level commands, allowing the attacker to write malicious PHP files directly to the web root. Successful exploitation results in full system compromise under the privileges of the web server user. While the advisory focuses on version 7.1.0, users should verify their installation and apply any available security patches from the vendor.

Affected products

  • Automattic WooCommerce 7.1.0

Timeline

  • 2022-12-07: other: Vulnerability discovered/reported by researcher
  • 2023-03-31: disclosed: Exploit code published on Exploit-DB
  • 2026-06-20: advisory: CVE published and NVD record created

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.