CVE-2022-50972 Details
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.
A remote code execution vulnerability exists in WooCommerce version 7.1.0. This issue allows attackers to execute arbitrary PHP code by injecting shell commands through the 'product-type' parameter. The vulnerability is triggered by sending requests to the 'class-wc-meta-box-product-images.php' endpoint with unsanitized product-type values, enabling the execution of malicious PHP code by writing it to the web root.
Metrics
CVSS 4.0 Severity and Vector Strings:
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
Volerion
Assessed Jun 20, 2026CISA-ADP
Assessed Jun 22, 2026References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://wordpress.org/plugins/woocommerce | [email protected] | ProductVendor |
| https://www.exploit-db.com/exploits/51156 | [email protected] | Exploit |
| https://www.vulncheck.com/advisories/woocommerce-remote-code-execution-via-class-wc-meta-box-product-images-php | [email protected] | AdvisoryBundleRemedy |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-94 | Improper Control of Generation of Code ('Code Injection') | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| WooCommerce | <= 7.1.0 (semver) |
CPE
Remediation
| |
Change History
4 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 6, 2026 | CVE Translated | [email protected] |
| Sep 29, 2026 | CVE Translated | [email protected] |
| Jun 22, 2026 | CVE Modified | CISA-ADP |
| Jun 20, 2026 | New CVE Received | [email protected] |
Volerion