{"id":"CVE-2022-50972","title":"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","summary":"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-pro…","severity":"critical","cvss":9.8,"cvssVector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H","cwe":["CWE-94"],"published":"2026-06-20","updated":"2026-09-29","sourceUpdated":"2026-09-29T09:10:00.157","source":"NVD","sourceUrl":"https://nvd.nist.gov/vuln/detail/CVE-2022-50972","references":[{"url":"https://wordpress.org/plugins/woocommerce","label":"disclosure@vulncheck.com"},{"url":"https://www.exploit-db.com/exploits/51156","label":"disclosure@vulncheck.com"},{"url":"https://www.vulncheck.com/advisories/woocommerce-remote-code-execution-via-class-wc-meta-box-product-images-php","label":"disclosure@vulncheck.com"}],"tags":["nvd"],"epss":0.01137,"epssPercentile":0.65233,"ingestedAt":"2026-09-29T09:30:49.078Z","slug":"CVE-2022-50972","body":"## Overview\n\nWooCommerce 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.\n\n## Remediation\n\nRefer to the linked advisories for vendor-supplied fixes and affected version ranges.","depth":"midnight","depthScore":54,"depthScoreParts":{"impact":53.9,"likelihood":0.2,"exploitation":0,"ransomware":0},"changes":[]}