# CVE-2022-50972: WooCommerce 7.1.0 Remote Code Execution via class-wc-meta-box-product-images.php

- Severity: Critical 9.3 (CVSS:4.0, scored by VulnCheck) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 1.14%, higher than 66% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-06-20T13:37:00.161Z
- Modified: 2026-10-06T22:10:00.247Z
- Weaknesses: CWE-94
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact total
- Assigned by: VulnCheck

## 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.

(As written by CVE List.)

## Affected

- WooCommerce WooCommerce: 7.1.0

## Every score

- VulnCheck: CVSS:4.0 9.3 Critical `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`
- VulnCheck: CVSS:3.1 9.8 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://www.exploit-db.com/exploits/51156> (exploit)
- <https://wordpress.org/plugins/woocommerce> (product)
- <https://www.vulncheck.com/advisories/woocommerce-remote-code-execution-via-class-wc-meta-box-product-images-php> (third-party-advisory)

## Sources

- CVE List: [CVE-2022-50972](https://www.cve.org/CVERecord?id=CVE-2022-50972), CVE Terms of Use, modified 2026-07-15
- NVD: [CVE-2022-50972](https://nvd.nist.gov/vuln/detail/CVE-2022-50972), Public domain, modified 2026-10-06

---

Page: https://cve.day/CVE-2022-50972 · Whole record: https://cve.day/CVE-2022-50972.json · Rebuilt by cve.day 2026-11-25T22:58:21.445Z
