CVE-2022-50972CWE-94code-injection

CVE-2022-50972

Critical · published June 20, 2026

CVSS v3.1
9.8
EPSS
1%
Percentile
66.3
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v3.1
9.8 · CRITICAL
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
CVSS v4.0
Not supplied
EPSS
0.01137 · 66.3th percentile
Weakness
CWE-94 · Improper Control of Generation of Code ('Code Injection')
Published
2026-06-20T18:16Z
References (3)
EPSS history
Timeline
  • 20 JUN 13:37Z
    WooCommerce 7.1.0 Remote Code Execution via class-wc-meta-box-product-images.php
    cvelistv5