Vulnerabilities · 2021 · Automattic
CVE-2021-32789
Automattic Woocommerce Blocks vulnerability
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 products
Woocommerce Blocks. The exact versions are in the references.
What to do now
- Check your exposureFind out whether Automattic Woocommerce Blocks runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- woocommerce.com/posts/critical-vulnerability-detected-july-2021/ · Vendor Advisory
- github.com/woocommerce/woocommerce-gutenberg-products-block/security/advisories/GHSA-6hq4- · Patch
- github.com/woocommerce/woocommerce-gutenberg-products-block-ghsa-6hq4-w6wv-8wrp/pull/1
- hackerone.com/reports/1260787
- wooengineering.wordpress.com/2021/07/14/incident-report-sql-injection-via-store-api/
- nvd.nist.gov/vuln/detail/CVE-2021-32789
- cve.org/CVERecord?id=CVE-2021-32789
More vulnerabilities in Automattic products
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.