{"id":"CVE-2026-32272","published":"2026-04-13T20:25:50Z","modified":"2026-04-14T16:28:47Z","title":"Craft Commerce: Blind SQL Injection via hasVariant/hasProduct","vendor":"Craft CMS","product":"commerce","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","vector":"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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00304,"percentile":0.23127,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/craftcms/commerce/security/advisories/GHSA-r54v-qq87-px5r","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/craftcms/commerce/pull/4232","tags":["x_refsource_MISC"]},{"url":"https://github.com/advisories/GHSA-2453-mppf-46cj","tags":["x_refsource_MISC"]},{"url":"https://github.com/craftcms/commerce/releases/tag/5.6.0","tags":["x_refsource_MISC"]}],"priority":{"score":10.7,"factors":[{"name":"EPSS percentile","points":4.63},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"craft-cms","affectedVersions":[{"vendor":"craftcms","product":"commerce","versions":[">= 5.0.0 < 5.6.0"]}],"affected":[{"ecosystem":"Packagist","package":"craftcms/commerce","vulnerableRanges":[">=5.0.0, <5.6.0"],"patched":["5.6.0"],"from":["GHSA-r54v-qq87-px5r"],"provenance":"source"}],"euvd":{"id":"EUVD-2026-22077","exploited":false,"provenance":"source"},"lineage":{"familyId":"fam-craft-cms-cms-cve-2026-25495","parents":[{"from":"CVE-2026-25495","to":"CVE-2026-32272","relation":"related","confidence":"high","kind":"lineage","evidence":[{"kind":"osv-related","provenance":"source","id":"GHSA-2453-mppf-46cj","via":"related"},{"kind":"osv-related","provenance":"source","id":"GHSA-r54v-qq87-px5r","via":"reference","url":"https://github.com/advisories/GHSA-2453-mppf-46cj"}]}],"packageHistory":[{"cve":"CVE-2026-32271","published":"2026-04-13","fixed":"5.5.5","kev":false,"link":{"from":"CVE-2026-32271","to":"CVE-2026-32272","relation":"successor","confidence":"low","kind":"sequence","orderedBy":"description","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:craftcms/commerce","fromFixed":"5.5.5","toFixed":"5.6.0","daysApart":0}]}},{"cve":"CVE-2026-31867","published":"2026-03-11","fixed":"5.6.0","kev":false},{"cve":"CVE-2026-32270","published":"2026-04-13","fixed":"5.6.0","kev":false},{"cve":"CVE-2026-32272","published":"2026-04-13","fixed":"5.6.0","kev":false},{"cve":"CVE-2026-55795","published":"2026-09-14","fixed":"5.6.5","kev":false,"link":{"from":"CVE-2026-32272","to":"CVE-2026-55795","relation":"successor","confidence":"low","kind":"sequence","evidence":[{"kind":"version-step","provenance":"source","package":"Packagist:craftcms/commerce","fromFixed":"5.6.0","toFixed":"5.6.5","daysApart":154}]}}],"package":"Packagist:craftcms/commerce"}}