CVE-2021-32789

High

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.

SeverityHigh
CVSS7.5
Exploit probability—
ProductAutomattic Woocommerce Blocks
PublishedJul 26, 2021
First seenJul 26, 2021
Weakness typeCWE-89SQL injection

How to fix

Update
  • automattic woocommerce_blocks2.5.16, 2.6.2, 2.7.2, 2.8.1, 2.9.1, 3.0.1, 3.1.1, 3.2.1, 3.3.1, 3.4.1, 3.5.1, 3.6.1, 3.7.2, 3.8.1, 3.9.1, 4.0.1, 4.1.1, 4.2.1, 4.3.1, 4.4.3, 4.5.3, 4.6.1, 4.7.1, 4.8.1, 4.9.2, 5.0.1, 5.1.1, 5.2.1, 5.3.2, 5.4.1, 5.5.1 or later

Affected products

ProductAffected versionsFixed in
automattic woocommerce_blocks2.5.0 ≤ v < 2.5.16, 2.6.0 ≤ v < 2.6.2, 2.7.0 ≤ v < 2.7.2, 2.8.0 ≤ v < 2.8.1, 2.9.0 ≤ v < 2.9.1, 3.0.0 ≤ v < 3.0.1, 3.1.0 ≤ v < 3.1.1, 3.2.0 ≤ v < 3.2.1, 3.3.0 ≤ v < 3.3.1, 3.4.0 ≤ v < 3.4.1, 3.5.0 ≤ v < 3.5.1, 3.6.0 ≤ v < 3.6.1, 3.7.0 ≤ v < 3.7.2, 3.8.0 ≤ v < 3.8.1, 3.9.0 ≤ v < 3.9.1, 4.0.0 ≤ v < 4.0.1, 4.1.0 ≤ v < 4.1.1, 4.2.0 ≤ v < 4.2.1, 4.3.0 ≤ v < 4.3.1, 4.4.0 ≤ v < 4.4.3, 4.5.0 ≤ v < 4.5.3, 4.6.0 ≤ v < 4.6.1, 4.7.0 ≤ v < 4.7.1, 4.8.0 ≤ v < 4.8.1, 4.9.0 ≤ v < 4.9.2, 5.0.0 ≤ v < 5.0.1, 5.1.0 ≤ v < 5.1.1, 5.2.0 ≤ v < 5.2.1, 5.3.0 ≤ v < 5.3.2, 5.4.0 ≤ v < 5.4.1, 5.5.0 ≤ v < 5.5.12.5.16, 2.6.2, 2.7.2, 2.8.1, 2.9.1, 3.0.1, 3.1.1, 3.2.1, 3.3.1, 3.4.1, 3.5.1, 3.6.1, 3.7.2, 3.8.1, 3.9.1, 4.0.1, 4.1.1, 4.2.1, 4.3.1, 4.4.3, 4.5.3, 4.6.1, 4.7.1, 4.8.1, 4.9.2, 5.0.1, 5.1.1, 5.2.1, 5.3.2, 5.4.1, 5.5.1

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.