{"id":"CVE-2021-32789","published":"2021-07-26T15:30:12Z","modified":"2024-08-03T23:33:56Z","title":"Arbitrary SQL (SQL injection) possible via the Store API component.","vendor":"woocommerce","product":"woocommerce-gutenberg-products-block","tier":"core","eol":null,"affectedVersions":[{"vendor":"woocommerce","product":"woocommerce-gutenberg-products-block","versions":["> 2.5.0, < 2.5.16"]}],"description":{"text":"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.","provenance":"source","from":"CVE.org"},"summary":{"text":"The woocommerce-gutenberg-products-block feature plugin for WooCommerce Blocks, in versions from 2.5.0 up to but not including 2.5.16, contains an SQL injection flaw in the Store API's collection-data endpoint (wc/store/products/collection-data, via the calculate_attribute_counts parameter). An unauthenticated remote attacker who can reach the site can craft a URL to run a read-only SQL query through this endpoint, with no user interaction required.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-21T14:55:43Z"},"cvss":{"score":7.5,"severity":"HIGH","version":"3.1","vector":"CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:N/A:N","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.17227,"percentile":0.97169,"date":"2026-11-21","provenance":"source"},"kev":null,"vulncheckKev":{"dateAdded":"2021-07-23","exploitedFirstSeen":"2021-07-23","ransomware":false,"evidence":[{"url":"https://woo.com/posts/critical-vulnerability-detected-july-2021/, https://threatpost.com/zero-day-attacks-woocommerce-databases/167846/","date":"2021-07-23"},{"url":"https://unit42.paloaltonetworks.com/network-attacks-trends-august-october-2021/","date":"2021-12-21"}],"evidenceTotal":2,"provenance":"source"},"exploited":true,"otx":{"pulseCount":0,"pulses":[],"provenance":"machine"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/woocommerce/woocommerce-gutenberg-products-block/security/advisories/GHSA-6hq4-w6wv-8wrp","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/woocommerce/woocommerce-gutenberg-products-block-ghsa-6hq4-w6wv-8wrp/pull/1","tags":["x_refsource_MISC"]},{"url":"https://hackerone.com/reports/1260787","tags":["x_refsource_MISC"]},{"url":"https://woocommerce.com/posts/critical-vulnerability-detected-july-2021/","tags":["x_refsource_MISC"]},{"url":"https://wooengineering.wordpress.com/2021/07/14/incident-report-sql-injection-via-store-api/","tags":["x_refsource_MISC"]}],"techniques":[],"reports":[],"affected":[],"advisories":[],"euvd":{"id":"EUVD-2021-19552","url":"https://euvd.enisa.europa.eu/vulnerability/EUVD-2021-19552","exploited":false,"exploitedSince":null,"provenance":"source"},"exploits":[],"exploitSources":{"pocGithub":{"count":2,"skipped":0,"earliest":"2023-02-17","earliestUrl":"https://github.com/and0x00/CVE-2021-32789","repos":[{"name":"and0x00/CVE-2021-32789","url":"https://github.com/and0x00/CVE-2021-32789","stars":1,"created":"2023-02-17"},{"name":"DonVorrin/CVE-2021-32789","url":"https://github.com/DonVorrin/CVE-2021-32789","stars":0,"created":"2024-02-08"}]},"nuclei":[{"id":"CVE-2021-32789","name":"WooCommerce Blocks 2.5 to 5.5 - Unauthenticated SQL Injection","severity":"high","path":"http/cves/2021/CVE-2021-32789.yaml","url":"https://github.com/projectdiscovery/nuclei-templates/blob/main/http/cves/2021/CVE-2021-32789.yaml"}],"first":{"date":"2023-02-17","source":"PoC-in-GitHub","url":"https://github.com/and0x00/CVE-2021-32789"},"provenance":"source"},"exploitRefs":[],"flow":[],"timeline":[{"date":"2021-07-23","kind":"exploited-reported","label":"Exploitation first reported (VulnCheck KEV evidence)","url":"https://woo.com/posts/critical-vulnerability-detected-july-2021/, https://threatpost.com/zero-day-attacks-woocommerce-databases/167846/","provenance":"source"},{"date":"2021-07-26","kind":"published","label":"Published (CVE.org)","url":"https://www.cve.org/CVERecord?id=CVE-2021-32789","provenance":"source"},{"date":"2023-02-17","kind":"exploit-public","label":"First public exploit: PoC-in-GitHub","url":"https://github.com/and0x00/CVE-2021-32789","provenance":"source"}],"speed":{"daysToPublicExploit":571,"firstExploitFrom":"PoC-in-GitHub","daysToKev":null},"priority":{"score":64.7,"factors":[{"name":"In a KEV catalog","points":35.0,"detail":"listed in VulnCheck KEV"},{"name":"Recent KEV listing","points":0.0,"detail":"added 1947 days ago"},{"name":"Known ransomware use","points":0.0,"detail":"not known"},{"name":"EPSS percentile","points":19.43,"detail":"percentile 0.9717"},{"name":"Named in threat reports","points":0.0,"detail":"0 reports"},{"name":"Public exploit code","points":5.0,"detail":"2 PoC-in-GitHub repos; 1 nuclei template"},{"name":"Mentioned in OTX pulses","points":0.0,"detail":"0 pulses"},{"name":"CVSS severity","points":5.25,"detail":"base score 7.5"},{"name":"End-of-life product","points":0.0,"detail":"supported or unknown"}]}}