SQL Injection in Automattic Woocommerce Blocks
CVE-2021-32789
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.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N.
EPSS exploit prediction
EPSS 0.172, 97.1th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Automattic Woocommerce Blocks
- Woocommerce Woocommerce-Gutenberg-Products-Block — versions > 2.5.0, < 2.5.16
Weakness classification (CWE)
Public exploits and proof-of-concept code
3 public repositories with exploit or proof-of-concept code for this CVE:
- and0x00/CVE-2021-32789 (1 star, last pushed 2023-02-17): 💣 Wordpress WooCommerce users dump exploit.
- DonVorrin/CVE-2021-32789 (last pushed 2024-02-08): Authenticated Blind SQL Injection. Wordpress woocommerce plugin versions >= 2.5.0
- andnorack/CVE-2021-32789
Also mentioned in 6 other repositories (20142995/nuclei-templates, 20142995/sectool, ARPSyndicate/cvemon, …). These reference the CVE in a list, notes or a scanner and are not exploit code for it.
References
- github.com/woocommerce/woocommerce-gutenberg-products-block/security/advisories… (Patch, Third Party Advisory)
- github.com/woocommerce/woocommerce-gutenberg-products-block-ghsa-6hq4-w6wv-8wrp… (Broken Link)
- hackerone.com/reports/1260787 (Permissions Required)
- woocommerce.com/posts/critical-vulnerability-detected-july-2021/ (Vendor Advisory)
- wooengineering.wordpress.com/2021/07/14/incident-report-sql-injection-via-store… (Permissions Required)
This CVE has public exploit evidence. See the latest CVEs with public exploits.