CVE-2021-32789
Severity CVSS v4.0:
Pending analysis
Type:
CWE-89
SQL Injection
Publication date:
26/07/2021
Last modified:
05/08/2021
Description
woocommerce-gutenberg-products-block is a feature plugin for WooCommerce Gutenberg Blocks. An SQL injection vulnerability impacts all WooCommerce sites running the WooCommerce Blocks feature plugin between version 2.5.0 and prior to version 2.5.16. Via a carefully crafted URL, an exploit can be executed against the `wc/store/products/collection-data?calculate_attribute_counts[][taxonomy]` endpoint that allows the execution of a read only sql query. There are patches for many versions of this package, starting with version 2.5.16. There are no known workarounds aside from upgrading.
Impact
Base Score 3.x
7.50
Severity 3.x
HIGH
Base Score 2.0
5.00
Severity 2.0
MEDIUM
Vulnerable products and versions
| CPE | From | Up to |
|---|---|---|
| cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:* | 2.5.0 (including) | 2.5.16 (excluding) |
| cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:* | 2.6.0 (including) | 2.6.2 (excluding) |
| cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:* | 2.7.0 (including) | 2.7.2 (excluding) |
| cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:* | 2.8.0 (including) | 2.8.1 (excluding) |
| cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:* | 2.9.0 (including) | 2.9.1 (excluding) |
| cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:* | 3.0.0 (including) | 3.0.1 (excluding) |
| cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:* | 3.1.0 (including) | 3.1.1 (excluding) |
| cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:* | 3.2.0 (including) | 3.2.1 (excluding) |
| cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:* | 3.3.0 (including) | 3.3.1 (excluding) |
| cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:* | 3.4.0 (including) | 3.4.1 (excluding) |
| cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:* | 3.5.0 (including) | 3.5.1 (excluding) |
| cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:* | 3.6.0 (including) | 3.6.1 (excluding) |
| cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:* | 3.7.0 (including) | 3.7.2 (excluding) |
| cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:* | 3.8.0 (including) | 3.8.1 (excluding) |
| cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:* | 3.9.0 (including) | 3.9.1 (excluding) |
To consult the complete list of CPE names with products and versions, see this page
References to Advisories, Solutions, and Tools
- https://github.com/woocommerce/woocommerce-gutenberg-products-block-ghsa-6hq4-w6wv-8wrp/pull/1
- https://github.com/woocommerce/woocommerce-gutenberg-products-block/security/advisories/GHSA-6hq4-w6wv-8wrp
- https://hackerone.com/reports/1260787
- https://woocommerce.com/posts/critical-vulnerability-detected-july-2021/
- https://wooengineering.wordpress.com/2021/07/14/incident-report-sql-injection-via-store-api/



