High severity · published Apr 13, 2026
CVE-2026-32272
Craft Commerce: Blind SQL Injection via hasVariant/hasProduct
8.7
CVSS
0.3%
EPSS
No
On KEV
Description
Craft Commerce is an ecommerce platform for Craft CMS. In versions 5.0.0 through 5.5.4, an SQL injection vulnerability exists where the ProductQuery::hasVariant and VariantQuery::hasProduct properties bypass the input sanitization blocklist added to ElementIndexesController in a prior security fix (GHSA-2453-mppf-46cj). The blocklist only strips top-level Yii2 Query properties such as where and orderBy, but hasVariant and hasProduct pass through untouched and internally call Craft::configure() on a subquery without sanitization, re-introducing SQL injection. Any authenticated control panel user can exploit this via boolean-based blind SQL injection to extract arbitrary database contents, including security keys that enable forging admin sessions for privilege escalation. This issue has been fixed in version 5.6.0.
Exploitation
Is it being used?
Exploit prediction (EPSS)0.3% · higher than 23% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
CO
commerce · craftcms
>= 5.0.0 < 5.6.0 · source: vendor
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2026-32272
CVE.org
https://www.cve.org/CVERecord?id=CVE-2026-32272
github.com
https://github.com/advisories/GHSA-2453-mppf-46cj
github.com
https://github.com/craftcms/commerce/pull/4232
github.com
https://github.com/craftcms/commerce/releases/tag/5.6.0
github.com
https://github.com/craftcms/commerce/security/advisories/GHSA-r54v-qq87-px5r
More from commerce
8.8
CVE-2026-29174
Craft Commerce has a SQL Injection in Commerce Inventory Table Sorting
8.8
CVE-2026-29172
Craft Commerce has a SQL Injection in Commerce Purchasables Table Sorting
7.7
CVE-2026-32271
Craft Commerce: SQL Injection can lead to Remote Code Execution via TotalRevenue Widget
6.9
CVE-2026-55795
Craft Commerce: Coupon Code Brute-Force via Rate Limit Bypass
5.4
CVE-2026-29177
Craft Commerce has Stored XSS in Craft Commerce Order Details Slideout
