Back to overview

CVE-2022-50972

CRITICAL
9.8
CVSS 3.1
Description
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.

Metadata

CVE ID
CVE-2022-50972
State
PUBLISHED
Assigner
VulnCheck
Reserved
2026-01-11 13:34 UTC
Published
2026-06-20 13:37 UTC
Last updated
2026-06-20 13:37 UTC
Primary CWE
CWE-94
Improper Control of Generation of Code ('Code Injection')
Vendor / Product
WooCommerce / WooCommerce
Sources
cve.org  ·  NVD

Severity & Metrics

9.8 CRITICAL CVSS 3.1
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Affected products (1)
VendorProductPlatformVersions
WooCommerce WooCommerce 7.1.0
Weakness (CWE)
CWESourceDescription
CWE-94 cna Improper Control of Generation of Code ('Code Injection')
CVSS scores (2)
ScoreSeverityVersionSourceVector
9.8 CRITICAL 3.1 cna CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
9.3 CRITICAL 4.0 cna 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
References (3)
Back to overview