Vulnerability Details : 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 category: Sql Injection
Products affected by CVE-2021-32789
- Automattic » Woocommerce Blocks » For WordpressVersions from including (>=) 3.9.0 and before (<) 3.9.1cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*
- Automattic » Woocommerce Blocks » For WordpressVersions from including (>=) 4.9.0 and before (<) 4.9.2cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*
- Automattic » Woocommerce Blocks » For WordpressVersions from including (>=) 5.3.0 and before (<) 5.3.2cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*
- Automattic » Woocommerce Blocks » For WordpressVersions from including (>=) 3.4.0 and before (<) 3.4.1cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*
- Automattic » Woocommerce Blocks » For WordpressVersions from including (>=) 2.7.0 and before (<) 2.7.2cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*
- Automattic » Woocommerce Blocks » For WordpressVersions from including (>=) 4.7.0 and before (<) 4.7.1cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*
- Automattic » Woocommerce Blocks » For WordpressVersions from including (>=) 4.4.0 and before (<) 4.4.3cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*
- Automattic » Woocommerce Blocks » For WordpressVersions from including (>=) 4.0.0 and before (<) 4.0.1cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*
- Automattic » Woocommerce Blocks » For WordpressVersions from including (>=) 4.8.0 and before (<) 4.8.1cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*
- Automattic » Woocommerce Blocks » For WordpressVersions from including (>=) 3.8.0 and before (<) 3.8.1cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*
- Automattic » Woocommerce Blocks » For WordpressVersions from including (>=) 4.5.0 and before (<) 4.5.3cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*
- Automattic » Woocommerce Blocks » For WordpressVersions from including (>=) 4.1.0 and before (<) 4.1.1cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*
- Automattic » Woocommerce Blocks » For WordpressVersions from including (>=) 5.5.0 and before (<) 5.5.1cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*
- Automattic » Woocommerce Blocks » For WordpressVersions from including (>=) 4.2.0 and before (<) 4.2.1cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*
- Automattic » Woocommerce Blocks » For WordpressVersions from including (>=) 5.2.0 and before (<) 5.2.1cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*
- Automattic » Woocommerce Blocks » For WordpressVersions from including (>=) 3.1.0 and before (<) 3.1.1cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*
- Automattic » Woocommerce Blocks » For WordpressVersions from including (>=) 3.0.0 and before (<) 3.0.1cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*
- Automattic » Woocommerce Blocks » For WordpressVersions from including (>=) 2.9.0 and before (<) 2.9.1cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*
- Automattic » Woocommerce Blocks » For WordpressVersions from including (>=) 3.3.0 and before (<) 3.3.1cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*
- Automattic » Woocommerce Blocks » For WordpressVersions from including (>=) 2.5.0 and before (<) 2.5.16cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*
- Automattic » Woocommerce Blocks » For WordpressVersions from including (>=) 2.6.0 and before (<) 2.6.2cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*
- Automattic » Woocommerce Blocks » For WordpressVersions from including (>=) 4.3.0 and before (<) 4.3.1cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*
- Automattic » Woocommerce Blocks » For WordpressVersions from including (>=) 3.5.0 and before (<) 3.5.1cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*
- Automattic » Woocommerce Blocks » For WordpressVersions from including (>=) 3.2.0 and before (<) 3.2.1cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*
- Automattic » Woocommerce Blocks » For WordpressVersions from including (>=) 5.0.0 and before (<) 5.0.1cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*
- Automattic » Woocommerce Blocks » For WordpressVersions from including (>=) 5.1.0 and before (<) 5.1.1cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*
- Automattic » Woocommerce Blocks » For WordpressVersions from including (>=) 3.7.0 and before (<) 3.7.2cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*
- Automattic » Woocommerce Blocks » For WordpressVersions from including (>=) 2.8.0 and before (<) 2.8.1cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*
- Automattic » Woocommerce Blocks » For WordpressVersions from including (>=) 4.6.0 and before (<) 4.6.1cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*
- Automattic » Woocommerce Blocks » For WordpressVersions from including (>=) 3.6.0 and before (<) 3.6.1cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*
- Automattic » Woocommerce Blocks » For WordpressVersions from including (>=) 5.4.0 and before (<) 5.4.1cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*
Exploit prediction scoring system (EPSS) score for CVE-2021-32789
10.50%
Probability of exploitation activity in the next 30 days
EPSS Score History
~ 95 %
Percentile, the proportion of vulnerabilities that are scored at or less
CVSS scores for CVE-2021-32789
Base Score | Base Severity | CVSS Vector | Exploitability Score | Impact Score | Score Source | First Seen |
---|---|---|---|---|---|---|
5.0
|
MEDIUM | AV:N/AC:L/Au:N/C:P/I:N/A:N |
10.0
|
2.9
|
NIST | |
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
3.9
|
3.6
|
NIST | |
7.5
|
HIGH | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N |
3.9
|
3.6
|
GitHub, Inc. |
CWE ids for CVE-2021-32789
-
The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.Assigned by:
- nvd@nist.gov (Primary)
- security-advisories@github.com (Secondary)
References for CVE-2021-32789
-
https://woocommerce.com/posts/critical-vulnerability-detected-july-2021/
Critical Vulnerabilty Detected in WooCommerce - What You Need to KnowVendor Advisory
-
https://github.com/woocommerce/woocommerce-gutenberg-products-block-ghsa-6hq4-w6wv-8wrp/pull/1
Page not found · GitHub · GitHubBroken Link
-
https://wooengineering.wordpress.com/2021/07/14/incident-report-sql-injection-via-store-api/
Private P2Permissions Required
-
https://github.com/woocommerce/woocommerce-gutenberg-products-block/security/advisories/GHSA-6hq4-w6wv-8wrp
Arbitrary SQL (SQL injection) possible via the Store API component. · Advisory · woocommerce/woocommerce-gutenberg-products-block · GitHubPatch;Third Party Advisory
-
https://hackerone.com/reports/1260787
Sign inPermissions Required
Jump to