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
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)
| Vendor | Product | Platform | Versions |
|---|---|---|---|
| WooCommerce | WooCommerce | — | 7.1.0 |
Weakness (CWE)
| CWE | Source | Description |
|---|---|---|
| CWE-94 | cna | Improper Control of Generation of Code ('Code Injection') |
CVSS scores (2)
| Score | Severity | Version | Source | Vector |
|---|---|---|---|---|
| 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)
- ExploitDB-51156 https://www.exploit-db.com/exploits/51156
- Official Product Homepage https://wordpress.org/plugins/woocommerce
- VulnCheck Advisory: WooCommerce 7.1.0 Remote Code Execution via class-wc-meta-box-product-images.php https://www.vulncheck.com/advisories/woocommerce-remote-code-execution-via-class-wc-meta-box-product-images-php