CVE-2021-32789: Arbitrary SQL (SQL injection) possible via the Store API component.
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?calculateattributecounts[][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 Software
Remediation
Event History
Frequently Asked Questions
What is CVE-2021-32789?
CVE-2021-32789 is an SQL injection vulnerability that impacts all WooCommerce sites running the WooCommerce Blocks feature plugin between version 2.5.0 and prior to version 2.5.16.
What is the severity of CVE-2021-32789?
The severity of CVE-2021-32789 is high, with a CVSS score of 7.5.
How does CVE-2021-32789 affect WooCommerce sites?
CVE-2021-32789 allows an attacker to execute malicious SQL queries through a carefully crafted URL, potentially leading to unauthorized access or data manipulation.
How can I fix CVE-2021-32789?
To fix CVE-2021-32789, WooCommerce sites running the affected versions need to update to version 2.5.16 or higher of the WooCommerce Blocks feature plugin.
Where can I find more information about CVE-2021-32789?
More information about CVE-2021-32789 can be found in the references provided: [GitHub Pull Request](https://github.com/woocommerce/woocommerce-gutenberg-products-block-ghsa-6hq4-w6wv-8wrp/pull/1), [GitHub Security Advisory](https://github.com/woocommerce/woocommerce-gutenberg-products-block/security/advisories/GHSA-6hq4-w6wv-8wrp), [HackerOne Report](https://hackerone.com/reports/1260787).