# CVE-2026-32272: Craft Commerce: Blind SQL Injection via hasVariant/hasProduct

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.30%, higher than 23% of CVEs (2026-12-01)
- Published: 2026-04-13T20:25:50.420Z
- Modified: 2026-10-26T21:10:00.170Z
- Also known as: GHSA-r54v-qq87-px5r
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## 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.

(As written by CVE List.)

## Affected

- craftcms commerce: >= 5.0.0 < 5.6.0
- craftcms/commerce (Packagist): from 5.0.0 before 5.6.0

## Every score

- GitHub_M: CVSS:4.0 8.7 High `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`
- GitHub: CVSS:4.0 High `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`

## References

- <https://github.com/craftcms/commerce/security/advisories/GHSA-r54v-qq87-px5r> (web)
- <https://github.com/craftcms/commerce/pull/4232> (web)
- <https://github.com/advisories/GHSA-2453-mppf-46cj> (advisory)
- <https://github.com/craftcms/commerce/releases/tag/5.6.0> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-32272> (advisory)
- <https://github.com/craftcms/commerce> (package)

## Sources

- CVE List: [CVE-2026-32272](https://www.cve.org/CVERecord?id=CVE-2026-32272), CVE Terms of Use, modified 2026-04-14
- GitHub Advisory Database: [GHSA-r54v-qq87-px5r](https://github.com/advisories/GHSA-r54v-qq87-px5r), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2026-32272](https://nvd.nist.gov/vuln/detail/CVE-2026-32272), Public domain, modified 2026-10-26

---

Page: https://cve.day/CVE-2026-32272 · Whole record: https://cve.day/CVE-2026-32272.json · Rebuilt by cve.day 2026-11-25T22:59:18.642Z
