7.5high
Arbitrary SQL (SQL injection) possible via the Store API component.
- Severity
- 7.5high CVSS:3.1 by GitHub_M
- Exploit likelihood
- 17.2% (higher than 98% of CVEs)
- Published
- Last changed
- Assigned by
- GitHub_M
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| woocommerce woocommerce-gutenberg-products-block | > 2.5.0, < 2.5.16 | CVE List |
| automattic woocommerce_blocks | from 2.5.0 before 2.5.16, from 2.6.0 before 2.6.2, from 2.7.0 before 2.7.2, from 2.8.0 before 2.8.1, from 2.9.0 before 2.9.1, from 3.0.0 before 3.0.1, from 3.1.0 before 3.1.1, from 3.2.0 before 3.2.1 and 23 more | NVD |
All scores
| GitHub_M | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
| NVD | 5.0medium CVSS:2.0 | AV:N/AC:L/Au:N/C:P/I:N/A:N |
Classification
What each source says
CVE List
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.
NVD (es)
woocommerce-gutenberg-products-block es un plugin de características para WooCommerce Gutenberg Blocks. Una vulnerabilidad de inyección SQL afecta a todos los sitios de WooCommerce que ejecutan el plugin de características WooCommerce Blocks entre la versión 2.5.0 y anterior a versión 2.5.16. Por medio de una URL cuidadosamente diseñada, se puede ejecutar una explotación contra el endpoint "wc/store/products/collection-data?calculate_attribute_counts[][taxonomy]" que permite la ejecución de una consulta sql de sólo lectura. Se presentan parches para muchas versiones de este paquete, a partir de la versión 2.5.16. No se conocen soluciones aparte de la actualización
References
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2021-32789 changed 2024-08-03 | CVE Terms of Use |
| NVD | CVE-2021-32789 changed 2026-06-17 | Public domain |