WooCommerce 7.1.0 contains a remote code execution vulnerability allowing attackers to inject arbitrary PHP code via the product-type parameter.
Description
WooCommerce 7.1.0 contains a remote code execution vulnerability allowing attackers to inject arbitrary PHP code via the product-type parameter.
AI Analyst Comment
Remediation
Update HP code by to the latest version. Check vendor security advisory for specific patch details. Monitor for exploitation attempts and review access logs.
---METADATA---
VENDOR: WooCommerce
PRODUCT: WooCommerce
AFFECTED_VERSIONS: 7.1.0
---END_METADATA---
Description Summary:
WooCommerce 7.1.0 contains a remote code execution vulnerability allowing attackers to inject arbitrary PHP code via the product-type parameter.
Executive Summary:
A critical remote code execution vulnerability in WooCommerce 7.1.0 allows unauthorized attackers to inject and execute arbitrary PHP code on the web server.
Vulnerability Details
CVE-ID: CVE-2022-50972
Affected Software: WooCommerce WooCommerce
Affected Versions: 7.1.0
Vulnerability: The vulnerability exists in the class-wc-meta-box-product-images.php endpoint, which fails to properly sanitize the product-type parameter. An unauthenticated attacker can exploit this to write malicious PHP files to the server's web root, resulting in full remote code execution.
Business Impact
The CVSS score of 9.8 highlights the extreme risk of this vulnerability. Successful exploitation permits attackers to gain full control over the web server, facilitating the theft of customer databases, installation of webshells, and potential pivoting into the broader corporate network.
Remediation Plan
Immediate Action: Update the WooCommerce plugin to a patched version beyond 7.1.0 immediately.
Proactive Monitoring: Audit the web root and plugin directories for newly created or unauthorized .php files that may have been injected via this vector.
Compensating Controls: Implement file integrity monitoring (FIM) and configure WAF rules to block requests containing suspicious input within the product-type parameter.
Exploitation Status
Public Exploit Available: Unknown
Analyst Notes: As of Jun 20, 2026, there is no public information indicating active exploitation of this vulnerability. However, due to the nature of the flaw, the potential for exploitation is high.
Analyst Recommendation
This vulnerability represents a direct path to server compromise and must be addressed with the highest urgency. Administrators should apply the latest security updates provided by WooCommerce and ensure that web directory permissions are restricted to prevent unauthorized file creation.