WooCommerce Blocks < 5.5 - Authenticated Blind SQL Injection

Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
CVE CVE-2021-32789
CVSS High (8.8)
Publicly Published July 3, 2021
Last Updated January 22, 2024
Researcher Josh (jl-dos)
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.

References

1 affected software package

Software Type Plugin
Software Slug woo-gutenberg-products-block (view on wordpress.org)
Patched? Yes
Affected Version
  • <= 2.5.15
  • 2.6 - 2.6.1
  • 2.7 - 2.7.1
  • 2.8 - 2.8
  • 2.9 - 2.9
  • 3.0 - 3.0
  • 3.1 - 3.1
  • 3.2 - 3.2
  • 3.3 - 3.3
  • 3.4 - 3.4
  • 3.5 - 3.5
  • 3.6 - 3.6
  • 3.7 - 3.7.1
  • 3.8 - 3.8
  • 3.9 - 3.9
  • 4.0 - 4.0
  • 4.1 - 4.1
  • 4.2 - 4.2
  • 4.3 - 4.3
  • 4.4 - 4.4.2
  • 4.5 - 4.5.2
  • 4.6 - 4.6
  • 4.7 - 4.7
  • 4.8 - 4.8
  • 4.9 - 4.9.1
  • 5.0 - 5.0
  • 5.1 - 5.1
  • 5.2 - 5.2
  • 5.3 - 5.3.1
  • 5.4 - 5.4
  • 5.5 - 5.5
Patched Version
  • 2.5.16
  • 2.6.2
  • 2.7.2
  • 2.8.1
  • 2.9.1
  • 3.0.1
  • 3.1.1
  • 3.2.1
  • 3.3.1
  • 3.4.1
  • 3.5.1
  • 3.6.1
  • 3.7.2
  • 3.8.1
  • 3.9.1
  • 4.0.1
  • 4.1.1
  • 4.2.1
  • 4.3.1
  • 4.4.3
  • 4.5.3
  • 4.6.1
  • 4.7.1
  • 4.8.1
  • 4.9.2
  • 5.0.1
  • 5.1.1
  • 5.2.1
  • 5.3.2
  • 5.4.1
  • 5.5.1
This record contains material that is subject to copyright

Copyright 2012-2026 Defiant Inc.
License: Defiant hereby grants you a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare derivative works of, publicly display, publicly perform, sublicense, and distribute this software vulnerability information. Any copy of the software vulnerability information you make for such purposes is authorized provided that you include a hyperlink to this vulnerability record and reproduce Defiant's copyright designation and this license in any such copy. License Detail.