{"id":"CVE-2026-32272","state":"PUBLISHED","title":"Craft Commerce: Blind SQL Injection via hasVariant/hasProduct","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.","publishedAt":"2026-04-13T20:25:50.420Z","updatedAt":"2026-04-14T16:28:47.197Z","severity":{"score":8.7,"label":"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","source":"GitHub_M"},"assigner":"GitHub_M","products":["craftcms commerce"],"affected":[{"vendor":"craftcms","product":"commerce","versions":[{"version":">= 5.0.0 < 5.6.0","status":"affected"}]}],"references":["https://github.com/craftcms/commerce/security/advisories/GHSA-r54v-qq87-px5r","https://github.com/craftcms/commerce/pull/4232","https://github.com/advisories/GHSA-2453-mppf-46cj","https://github.com/craftcms/commerce/releases/tag/5.6.0"],"weaknesses":["CWE-89"],"ingestedAt":"2026-10-29T20:11:40.391Z","source":{"repository":"CVEProject/cvelistV5","path":"cves/2026/32xxx/CVE-2026-32272.json","commit":"556c9d3a8cd17e218bb8e452ba7cd619a384ff47"},"raw":{"dataType":"CVE_RECORD","dataVersion":"5.2","cveMetadata":{"cveId":"CVE-2026-32272","state":"PUBLISHED","datePublished":"2026-04-13T20:25:50.420Z","dateUpdated":"2026-04-14T16:28:47.197Z","assignerShortName":"GitHub_M","assignerOrgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateReserved":"2026-03-11T15:05:48.400Z"},"containers":{"cna":{"title":"Craft Commerce: Blind SQL Injection via hasVariant/hasProduct","descriptions":[{"lang":"en","value":"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."}],"affected":[{"vendor":"craftcms","product":"commerce","versions":[{"version":">= 5.0.0 < 5.6.0","status":"affected"}]}],"references":[{"url":"https://github.com/craftcms/commerce/security/advisories/GHSA-r54v-qq87-px5r","name":"https://github.com/craftcms/commerce/security/advisories/GHSA-r54v-qq87-px5r","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/craftcms/commerce/pull/4232","name":"https://github.com/craftcms/commerce/pull/4232","tags":["x_refsource_MISC"]},{"url":"https://github.com/advisories/GHSA-2453-mppf-46cj","name":"https://github.com/advisories/GHSA-2453-mppf-46cj","tags":["x_refsource_MISC"]},{"url":"https://github.com/craftcms/commerce/releases/tag/5.6.0","name":"https://github.com/craftcms/commerce/releases/tag/5.6.0","tags":["x_refsource_MISC"]}],"metrics":[{"cvssV4_0":{"attackVector":"NETWORK","attackComplexity":"LOW","attackRequirements":"NONE","privilegesRequired":"LOW","userInteraction":"NONE","vulnConfidentialityImpact":"HIGH","vulnIntegrityImpact":"HIGH","vulnAvailabilityImpact":"HIGH","subConfidentialityImpact":"NONE","subIntegrityImpact":"NONE","subAvailabilityImpact":"NONE","baseScore":8.7,"baseSeverity":"HIGH","vectorString":"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","version":"4.0"}}],"problemTypes":[{"descriptions":[{"cweId":"CWE-89","lang":"en","description":"CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')","type":"CWE"}]}],"providerMetadata":{"shortName":"GitHub_M","orgId":"a0819718-46f1-4df5-94e2-005712e83aaa","dateUpdated":"2026-04-13T20:25:50.420Z"},"source":{"advisory":"GHSA-r54v-qq87-px5r","discovery":"UNKNOWN"}},"adp":[{"title":"CISA ADP Vulnrichment","metrics":[{"other":{"type":"ssvc","content":{"timestamp":"2026-04-14T15:28:46.125041Z","id":"CVE-2026-32272","options":[{"Exploitation":"none"},{"Automatable":"no"},{"Technical Impact":"total"}],"role":"CISA Coordinator","version":"2.0.3"}}}],"providerMetadata":{"shortName":"CISA-ADP","orgId":"134c704f-9b21-4f2e-91b3-4a467353bcc0","dateUpdated":"2026-04-14T16:28:47.197Z"}}]}}}