CVE-2021-32789

Arbitrary SQL (SQL injection) possible via the Store API component.

HIGH
7.5
CVSS Score
Published: July 26, 2021 at 03:30 PM UTC
Updated: June 17, 2026 at 03:53 AM UTC
2 products affected across 2 vendorsWoocommerce BlocksWoocommerce Blocks

Using woocommerce-gutenberg-products-block by woocommerce?

Get instant alerts when new vulnerabilities affect woocommerce-gutenberg-products-block - before attackers find them.

Real-time alertsTrack your software stackFree plan available
Severity
HIGH7.5
Exploit prediction
EPSS 17%

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

Our own answer: ranges merged, affected separated from platform-only, with confidence and review flags.

2.5.0 ≤ v < 2.5.162.6.0 ≤ v < 2.6.22.7.0 ≤ v < 2.7.22.8.0 ≤ v < 2.8.12.9.0 ≤ v < 2.9.13.0.0 ≤ v < 3.0.13.1.0 ≤ v < 3.1.13.2.0 ≤ v < 3.2.13.3.0 ≤ v < 3.3.13.4.0 ≤ v < 3.4.13.5.0 ≤ v < 3.5.13.6.0 ≤ v < 3.6.13.7.0 ≤ v < 3.7.23.8.0 ≤ v < 3.8.13.9.0 ≤ v < 3.9.14.0.0 ≤ v < 4.0.14.1.0 ≤ v < 4.1.14.2.0 ≤ v < 4.2.14.3.0 ≤ v < 4.3.14.4.0 ≤ v < 4.4.34.5.0 ≤ v < 4.5.34.6.0 ≤ v < 4.6.14.7.0 ≤ v < 4.7.14.8.0 ≤ v < 4.8.14.9.0 ≤ v < 4.9.25.0.0 ≤ v < 5.0.15.1.0 ≤ v < 5.1.15.2.0 ≤ v < 5.2.15.3.0 ≤ v < 5.3.25.4.0 ≤ v < 5.4.15.5.0 ≤ v < 5.5.1
Affected range stops below 2.5.16, so it looks safe — our inference, not a vendor statement
Affected range stops below 2.6.2, so it looks safe — our inference, not a vendor statement
Affected range stops below 2.7.2, so it looks safe — our inference, not a vendor statement
Affected range stops below 2.8.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 2.9.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.0.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.1.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.2.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.3.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.4.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.5.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.6.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.7.2, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.8.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 3.9.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.0.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.1.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.2.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.3.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.4.3, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.5.3, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.6.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.7.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.8.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 4.9.2, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.0.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.1.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.2.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.3.2, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.4.1, so it looks safe — our inference, not a vendor statement
Affected range stops below 5.5.1, so it looks safe — our inference, not a vendor statement
v < 2.5.16
Affected range stops below 2.5.16, so it looks safe — our inference, not a vendor statement

Remediation

No guide yet

No remediation guidance has been written for this CVE yet. What the record does show:

CVSS

7.5HIGHGitHub_M
Attack Vector
NETWORK
Complexity
LOW
Privileges
NONE
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
NONE
Availability
NONE
Vector?

Quick Info

StatusMODIFIED
CWE
CWE-89

Get alerted

Stop reading CVE feeds looking for your own stack

Track the products you run and VulnTracker tells you when a new CVE affects them — with what is known about fixing it, and nothing about the rest.

Free plan, no card