CVE-2021-32789: automattic woocommerce_blocks SQL Injection
Vulnerability summary
CVE-2021-32789 is a high (CVSS 8.8) SQL Injection vulnerability in automattic woocommerce_blocks. EPSS estimates a 17.23% chance of exploitation in the next 30 days, higher than 97% of scored vulnerabilities.
Timeline
- 26-07-2021PublishedVulnerability first disclosed.
- 03-08-2024Last modifiedVulnerability information updated.
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.
CVSS metrics
4 scores · 3 sources · 2 versions- CVE.orgCNA7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NDiffers
- NVDNIST7.5HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:NDiffers
EPSS trend
Probability
17.23%
Chance of exploitation in the next 30 days
Percentile
97%
Versus all other CVEs
30-day change
0.00 pp
From 17.23% on 20-09-2026
Known exploited
Compare KEV catalogsNot in any of the 3 tracked catalogs.
Public exploits
0 foundNo public exploits indexed.
Weaknesses
CWE · root causeAffected systems
Automattic1 product
- woocommerce_blocks≥ 2.5.0, < 2.5.16 | ≥ 2.6.0, < 2.6.2 | ≥ 2.7.0, < 2.7.2 | ≥ 2.8.0, < 2.8.1 | ≥ 2.9.0, < 2.9.1 | ≥ 3.0.0, < 3.0.1 | ≥ 3.1.0, < 3.1.1 | ≥ 3.2.0, < 3.2.1 | ≥ 3.3.0, < 3.3.1 | ≥ 3.4.0, < 3.4.1 | ≥ 3.5.0, < 3.5.1 | ≥ 3.6.0, < 3.6.1 | ≥ 3.7.0, < 3.7.2 | ≥ 3.8.0, < 3.8.1 | ≥ 3.9.0, < 3.9.1 | ≥ 4.0.0, < 4.0.1 | ≥ 4.1.0, < 4.1.1 | ≥ 4.2.0, < 4.2.1 | ≥ 4.3.0, < 4.3.1 | ≥ 4.4.0, < 4.4.3 | ≥ 4.5.0, < 4.5.3 | ≥ 4.6.0, < 4.6.1 | ≥ 4.7.0, < 4.7.1 | ≥ 4.8.0, < 4.8.1 | ≥ 4.9.0, < 4.9.2 | ≥ 5.0.0, < 5.0.1 | ≥ 5.1.0, < 5.1.1 | ≥ 5.2.0, < 5.2.1 | ≥ 5.3.0, < 5.3.2 | ≥ 5.4.0, < 5.4.1 | ≥ 5.5.0, < 5.5.1
Woocommerce1 product
- woocommerce-gutenberg-products-block> 2.5.0, < 2.5.16
Wordpress1 product
- woo-gutenberg-products-block≤ 2.5.15 (fixed in 2.5.16) | ≥ 2.6, ≤ 2.6.1 (fixed in 2.5.16) | ≥ 2.7, ≤ 2.7.1 (fixed in 2.5.16) | 2.8 (fixed in 2.5.16) | 2.9 (fixed in 2.5.16) | 3.0 (fixed in 2.5.16) | 3.1 (fixed in 2.5.16) | 3.2 (fixed in 2.5.16) | 3.3 (fixed in 2.5.16) | 3.4 (fixed in 2.5.16) | 3.5 (fixed in 2.5.16) | 3.6 (fixed in 2.5.16) | ≥ 3.7, ≤ 3.7.1 (fixed in 2.5.16) | 3.8 (fixed in 2.5.16) | 3.9 (fixed in 2.5.16) | 4.0 (fixed in 2.5.16) | 4.1 (fixed in 2.5.16) | 4.2 (fixed in 2.5.16) | 4.3 (fixed in 2.5.16) | ≥ 4.4, ≤ 4.4.2 (fixed in 2.5.16) | ≥ 4.5, ≤ 4.5.2 (fixed in 2.5.16) | 4.6 (fixed in 2.5.16) | 4.7 (fixed in 2.5.16) | 4.8 (fixed in 2.5.16) | ≥ 4.9, ≤ 4.9.1 (fixed in 2.5.16) | 5.0 (fixed in 2.5.16) | 5.1 (fixed in 2.5.16) | 5.2 (fixed in 2.5.16) | ≥ 5.3, ≤ 5.3.1 (fixed in 2.5.16) | 5.4 (fixed in 2.5.16) | 5.5 (fixed in 2.5.16)
3 vendors · 3 products
References
6 links- github.com/woocommerce/woocommerce-gutenberg-products-block/security/advisories/GHSA-6hq4-w6wv-8wrpX Refsource CONFIRMPatchThird Party Advisory
- github.com/woocommerce/woocommerce-gutenberg-products-block-ghsa-6hq4-w6wv-8wrp/pull/1X Refsource MISCBroken Link
- wooengineering.wordpress.com/2021/07/14/incident-report-sql-injection-via-store-api/X Refsource MISCPermissions Required