CVE-2021-32790 Blind SQL Injection possible via Authenticated Web-hook Search API Endpoint

Medium 4.9 Published Updated

Authenticated attackers with admin access or API keys can exploit blind SQL injection in WooCommerce webhook search endpoints to disclose sensitive data via timing attacks.

Exploited in the wild
Not known
Login needed
An administrator
Attackable
Over the internet
Victim action needed
Not needed
Fix
None listed

What is CVE-2021-32790?

CVE-2021-32790 is a medium-severity SQL injection vulnerability in woocommerce, published on 26 Jul 2021. An attacker needs administrator access to exploit it, with no action from the victim.

Official description

Woocommerce is an open source eCommerce plugin for WordPress. An SQL injection vulnerability impacts all WooCommerce sites running the WooCommerce plugin between version 3.3.0 and 3.3.6. 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. Version 3.3.6 is the earliest version of Woocommerce with a patch for this vulnerability. There are no known workarounds other than upgrading.

Weakness: CWE-89

Which versions are affected by CVE-2021-32790?

It affects 1 product.

Products include Woocommerce Woocommerce.

How do I fix CVE-2021-32790?

No fix has been published for CVE-2021-32790 yet. Limit exposure of the affected software until one is available.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2021-32790 being exploited?

There is no known exploitation of CVE-2021-32790 in the wild and no public exploit code.

Sources

Also known as GHSA-7vx5-x39w-q24g.

Is CVE-2021-32790 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free