CVE-2021-32789

Source
https://cve.org/CVERecord?id=CVE-2021-32789
Import Source
https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-32789.json
JSON Data
https://api.osv.dev/v1/vulns/CVE-2021-32789
Aliases
  • GHSA-6hq4-w6wv-8wrp
Published
2021-07-26T16:15:07Z
Modified
2026-08-27T03:56:00Z
Severity
  • 7.5 (High) CVSS_V3 - CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N CVSS Calculator
Summary
[none]
Details

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.

Database specific
{
    "unresolved_ranges": [
        {
            "cpes": [
                "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*"
            ],
            "extracted_events": [
                {
                    "introduced": "2.6.0"
                },
                {
                    "fixed": "2.6.2"
                },
                {
                    "introduced": "2.8.0"
                },
                {
                    "fixed": "2.8.1"
                },
                {
                    "introduced": "2.9.0"
                },
                {
                    "fixed": "2.9.1"
                },
                {
                    "introduced": "3.0.0"
                },
                {
                    "fixed": "3.0.1"
                },
                {
                    "introduced": "3.2.0"
                },
                {
                    "fixed": "3.2.1"
                },
                {
                    "introduced": "3.3.0"
                },
                {
                    "fixed": "3.3.1"
                },
                {
                    "introduced": "3.5.0"
                },
                {
                    "fixed": "3.5.1"
                },
                {
                    "introduced": "3.7.0"
                },
                {
                    "fixed": "3.7.2"
                },
                {
                    "introduced": "3.9.0"
                },
                {
                    "fixed": "3.9.1"
                },
                {
                    "introduced": "4.1.0"
                },
                {
                    "fixed": "4.1.1"
                },
                {
                    "introduced": "4.2.0"
                },
                {
                    "fixed": "4.2.1"
                },
                {
                    "introduced": "4.3.0"
                },
                {
                    "fixed": "4.3.1"
                },
                {
                    "introduced": "4.5.0"
                },
                {
                    "fixed": "4.5.3"
                },
                {
                    "introduced": "4.6.0"
                },
                {
                    "fixed": "4.6.1"
                },
                {
                    "introduced": "4.8.0"
                },
                {
                    "fixed": "4.8.1"
                },
                {
                    "introduced": "5.0.0"
                },
                {
                    "fixed": "5.0.1"
                },
                {
                    "introduced": "5.2.0"
                },
                {
                    "fixed": "5.2.1"
                },
                {
                    "introduced": "5.4.0"
                },
                {
                    "fixed": "5.4.1"
                }
            ],
            "source": "CPE_RANGE",
            "vendor_product": "automattic:woocommerce_blocks"
        }
    ]
}
References

Affected packages

Git / github.com/woocommerce/woocommerce-blocks

Affected ranges

Type
GIT
Repo
https://github.com/woocommerce/woocommerce-blocks
Events
Database specific
Show details
{
    "cpe": "cpe:2.3:a:automattic:woocommerce_blocks:*:*:*:*:*:wordpress:*:*",
    "extracted_events": [
        {
            "introduced": "2.5.0"
        },
        {
            "fixed": "2.5.16"
        },
        {
            "introduced": "2.7.0"
        },
        {
            "fixed": "2.7.2"
        },
        {
            "introduced": "3.1.0"
        },
        {
            "fixed": "3.1.1"
        },
        {
            "introduced": "3.4.0"
        },
        {
            "fixed": "3.4.1"
        },
        {
            "introduced": "3.6.0"
        },
        {
            "fixed": "3.6.1"
        },
        {
            "introduced": "3.8.0"
        },
        {
            "fixed": "3.8.1"
        },
        {
            "introduced": "4.0.0"
        },
        {
            "fixed": "4.0.1"
        },
        {
            "introduced": "4.4.0"
        },
        {
            "fixed": "4.4.3"
        },
        {
            "introduced": "4.7.0"
        },
        {
            "fixed": "4.7.1"
        },
        {
            "introduced": "4.9.0"
        },
        {
            "fixed": "4.9.2"
        },
        {
            "introduced": "5.1.0"
        },
        {
            "fixed": "5.1.1"
        },
        {
            "introduced": "5.3.0"
        },
        {
            "fixed": "5.3.2"
        },
        {
            "introduced": "5.5.0"
        },
        {
            "fixed": "5.5.1"
        }
    ],
    "source": "CPE_RANGE"
}

Affected versions

v3.*
v3.1.0
v3.1.0-dev
v3.4.0
v3.4.0-dev
v3.6.0
v3.6.0-dev
v3.8.0-dev
v4.*
v4.0.0
v4.0.0-dev
v4.7.0-dev
v4.9.0-dev
v4.9.1
v4.9.1-dev
v5.*
v5.1.0
v5.1.0-dev
v5.3.0-dev
v5.3.1-dev
v5.5.0-dev

Database specific

source
"https://storage.googleapis.com/cve-osv-conversion/osv-output/CVE-2021-32789.json"