CVE-2026-32272
HIGH 8.7CVSS 4.0Craft Commerce hasVariant/hasProduct Blind SQL Injection
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.
- Published
- 13 Apr 2026
- Last modified
- 26 Oct 2026
- Assigned by
- security-advisories@github.com
- NVD status
- Deferred
- Weakness
- CWE-89
- Also known as
- GHSA-r54v-qq87-px5r
- Sources
- NVDJSONOSV GHSA-r54v-qq87-px5rJSON
Scores
| Source | Scored by | Version | Score | Vector / decision |
|---|---|---|---|---|
| NVD | security-advisories@github.com (Secondary) | CVSS 4.0 | HIGH 8.7 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X |
| OSV | GitHub | CVSS 4.0 | CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N |
Affected
| Source | Vendor / ecosystem | Product / package | Affected versions | Fixed in |
|---|---|---|---|---|
| OSV | Packagist | craftcms/commerce | >= 5.0.0, < 5.6.0 | 5.6.0 |
References
- https://github.com/advisories/GHSA-2453-mppf-46cj · ADVISORY
- https://github.com/craftcms/commerce/pull/4232 · WEB
- https://github.com/craftcms/commerce/releases/tag/5.6.0 · WEB
- https://github.com/craftcms/commerce/security/advisories/GHSA-r54v-qq87-px5r · WEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-32272 · ADVISORY
- https://github.com/craftcms/commerce · PACKAGE
History
- 25 Nov 2026 21:02 UTC · NVD: first stored (published 13 Apr 2026)
- 25 Nov 2026 20:15 UTC · OSV: first stored (published 14 Apr 2026)