Advisory Database
  • Advisories
  • Dependency Scanning
  1. composer
  2. ›
  3. woocommerce/woocommerce
  4. ›
  5. CVE-2021-32790

CVE-2021-32790: SQL Injection

July 26, 2021 (updated August 4, 2021)

Woocommerce is an open source eCommerce plugin for WordPress. An SQL injection vulnerability impacts all WooCommerce sites running the WooCommerce plugin between Malicious actors (already) having admin access, or API keys to the WooCommerce site can exploit vulnerable endpoints of /wp-json/wc/v3/webhooks, /wp-json/wc/v2/webhooks and other webhook listing API. Read-only SQL queries can be executed using this exploit, while data will not be returned, by carefully crafting search parameter information can be disclosed using timing and related attacks. is the earliest version of Woocommerce with a patch for this vulnerability.

References

  • nvd.nist.gov/vuln/detail/CVE-2021-32790
  • woocommerce.com/posts/critical-vulnerability-detected-july-2021/

Code Behaviors & Features

Detect and mitigate CVE-2021-32790 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 3.3.0 before 3.3.6, all versions starting from 3.4.0 before 3.4.8, all versions starting from 3.5.0 before 3.5.9, all versions starting from 3.6.0 before 3.6.6, all versions starting from 3.7.0 before 3.7.2, all versions starting from 3.8.0 before 3.8.2, all versions starting from 3.9.0 before 3.9.4, all versions starting from 4.0.0 before 4.0.2, all versions starting from 4.1.0 before 4.1.2, all versions starting from 4.2.0 before 4.2.3, all versions starting from 4.3.0 before 4.3.4, all versions starting from 5.5.0 before 5.5.1, all versions starting from 5.4.0 before 5.4.2, all versions starting from 5.3.0 before 5.3.1, all versions starting from 5.2.0 before 5.2.3, all versions starting from 4.4.0 before 4.4.2, all versions starting from 4.5.0 before 4.5.3, all versions starting from 4.6.0 before 4.6.3, all versions starting from 4.7.0 before 4.7.2, all versions starting from 4.8.0 before 4.8.1, all versions starting from 4.9.0 before 4.9.3, all versions starting from 5.0.0 before 5.0.1, all versions starting from 5.1.0 before 5.1.1

Fixed versions

  • 3.3.6
  • 3.4.8
  • 3.5.9
  • 3.6.6
  • 3.7.2
  • 3.8.2
  • 3.9.4
  • 4.0.2
  • 4.1.2
  • 4.2.3
  • 4.3.4
  • 4.4.2
  • 4.5.3
  • 4.6.3
  • 4.7.2
  • 4.8.1
  • 4.9.3
  • 5.0.1
  • 5.1.1
  • 5.2.3
  • 5.3.1
  • 5.4.2
  • 5.5.1

Solution

Upgrade to versions 2.6.3, 2.6.3, 2.6.3, 2.6.3, 3.3.6, 3.4.8, 3.5.9, 3.6.6, 3.7.2, 3.8.2, 3.9.4, 4.0.2, 4.1.2, 4.2.3, 4.3.4, 4.4.2, 4.5.3, 4.6.3, 4.7.2, 4.8.1, 4.9.3, 5.0.1, 5.1.1, 5.2.3, 5.3.1, 5.4.2, 5.5.1 or above.

Impact 4.9 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:H/UI:N/S:U/C:H/I:N/A:N

Learn more about CVSS

Source file

packagist/woocommerce/woocommerce/CVE-2021-32790.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Wed, 14 May 2025 12:15:50 +0000.