RCE in Woocommerce
CVE-2022-50972
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.
Vulnerability class: RCE (Remote Code Execution)
Published · last modified .
CVSS v3 metric
CVSS v3 base score 9.8 (Critical). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.011 (65.3th percentile), scored .
Low probability of exploitation in the next 30 days, but still tracked. 65th percentile — 65.3% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.011 · newest: 0.011 · change: 0.000
Affected products
- Woocommerce — versions 7.1.0
Weakness classification (CWE)
References
- www.exploit-db.com/exploits/51156 (exploit)
- wordpress.org/plugins/woocommerce (product)
- www.vulncheck.com/advisories/woocommerce-remote-code-execution-via-class-wc-met… (third-party-advisory)
Frequently asked questions
- What is CVE-2022-50972?
- CVE-2022-50972 is a critical-severity vulnerability in Woocommerce, classified under Code Injection. CVSS score: 9.8/10. Published 2026-06-20.
- How severe is CVE-2022-50972?
- Critical severity. CVSS v3 base score is 9.8 out of 10.