SecurityContext

CVE-2022-50972: WooCommerce - Remote Code Execution

  • Cve: CVE-2022-50972
  • Name: WooCommerce - Remote Code Execution
  • 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.
  • Impact: Remote attackers can execute arbitrary PHP code, potentially leading to full server compromise.
  • Remediation: Update to the latest version of WooCommerce.
  • Vulnerability type: command_injection
  • Vulnerability impact: remote_code_execution
  • Requirement type: none
  • Labels source: projectdiscovery
  • Severity: critical
  • Cvss score: 9.8
  • Cvss vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
  • Epss score: 0.01137
  • Epss percentile: 0.67371
  • Assignee: [email protected]
  • Published at: 2026-06-20T14:16:18Z
  • Age in days: 157
  • Modified at: 2026-10-06T22:10:00Z
  • References total: 3
  • Products total: 1
  • Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2022-50972
  • Nvd status: deferred
  • Checked, none or zero: patch available, known exploited entries, nuclei templates, public exploits total, public exploits capped, public exploits, oss, projects total, projects, rejected by nvd
  • Not known: requirements, hackerone

Cwe

IdName
CWE-94Improper Control of Generation of Code

References

Same in every row:

  • Source: nvd
  • Tags:
Url
https://wordpress.org/plugins/woocommerce
https://www.exploit-db.com/exploits/51156
https://www.vulncheck.com/advisories/woocommerce-remote-code-execution-via-class-wc-meta-box-product-images-php

Products

ProductAffectedPlatform boundSourcesUrl
woocommerce:woocommerce= 7.1.0nocna/v1/products/woocommerce/woocommerce

Index

  • Checked, none or zero: repositories, repositories high signal, packages

Exploitation

  • Exploitation seen: yes
  • Remote: yes
  • Checked, none or zero: known exploited, known exploited by, public exploit, public exploit count, initial access, authentication required
  • Not known: known exploited since, vulncheck known exploited since, public exploit first date, nuclei template, initial access since, hackerone reports, exposed hosts