SQL Injection Vulnerability in Craft Commerce by Craft CMS
CVE-2026-32272
What is CVE-2026-32272?
Craft Commerce, an ecommerce platform for Craft CMS, is affected by an SQL injection vulnerability found in versions 5.0.0 through 5.5.4. This vulnerability arises in the ProductQuery::hasVariant and VariantQuery::hasProduct properties, which can bypass previously implemented input sanitization in the ElementIndexesController. Unlike other properties stripped from the Yii2 Query blocklist, hasVariant and hasProduct allow an attacker, with authenticated control panel access, to execute boolean-based blind SQL injection attacks. This can lead to unauthorized extraction of sensitive database content, including security keys that may enable session forgery for privilege escalation. The vulnerability has been addressed in version 5.6.0.
Affected Version(s)
commerce >= 5.0.0 < 5.6.0
