CVE-2026-32272: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in craftcms commerce
An SQL injection vulnerability (CWE-89) exists in Craft Commerce versions 5. 0. 0 through 5. 5. 4. The issue arises because the hasVariant and hasProduct properties bypass input sanitization, allowing authenticated control panel users to perform boolean-based blind SQL injection. This can lead to extraction of arbitrary database contents, including security keys that could be used to forge admin sessions and escalate privileges. The vulnerability was fixed in version 5. 6. 0.
AI Analysis
Technical Summary
Craft Commerce, an ecommerce platform for Craft CMS, contains an SQL injection vulnerability in versions 5.0.0 through 5.5.4. The vulnerability occurs because the input sanitization blocklist implemented in ElementIndexesController only filters top-level Yii2 Query properties like where and orderBy, but does not sanitize the hasVariant and hasProduct properties. These properties internally call Craft::configure() on a subquery without proper sanitization, reintroducing the SQL injection risk. Authenticated control panel users can exploit this vulnerability via boolean-based blind SQL injection to extract sensitive database information, including security keys that enable forging admin sessions and privilege escalation. The issue is resolved in version 5.6.0.
Potential Impact
An attacker with authenticated control panel access can exploit this vulnerability to perform boolean-based blind SQL injection, allowing extraction of arbitrary database contents. This includes sensitive security keys that could be used to forge admin sessions, leading to privilege escalation and potentially full control over the application.
Mitigation Recommendations
This vulnerability has been fixed in Craft Commerce version 5.6.0. Users should upgrade to version 5.6.0 or later to remediate this issue. Patch status is not explicitly stated in the vendor advisory, but the fix is included in version 5.6.0. Until upgraded, restrict authenticated control panel access to trusted users only.
CVE-2026-32272: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in craftcms commerce
Description
An SQL injection vulnerability (CWE-89) exists in Craft Commerce versions 5. 0. 0 through 5. 5. 4. The issue arises because the hasVariant and hasProduct properties bypass input sanitization, allowing authenticated control panel users to perform boolean-based blind SQL injection. This can lead to extraction of arbitrary database contents, including security keys that could be used to forge admin sessions and escalate privileges. The vulnerability was fixed in version 5. 6. 0.
CVSS v4.0
Score 8.7high
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
Craft Commerce, an ecommerce platform for Craft CMS, contains an SQL injection vulnerability in versions 5.0.0 through 5.5.4. The vulnerability occurs because the input sanitization blocklist implemented in ElementIndexesController only filters top-level Yii2 Query properties like where and orderBy, but does not sanitize the hasVariant and hasProduct properties. These properties internally call Craft::configure() on a subquery without proper sanitization, reintroducing the SQL injection risk. Authenticated control panel users can exploit this vulnerability via boolean-based blind SQL injection to extract sensitive database information, including security keys that enable forging admin sessions and privilege escalation. The issue is resolved in version 5.6.0.
Potential Impact
An attacker with authenticated control panel access can exploit this vulnerability to perform boolean-based blind SQL injection, allowing extraction of arbitrary database contents. This includes sensitive security keys that could be used to forge admin sessions, leading to privilege escalation and potentially full control over the application.
Mitigation Recommendations
This vulnerability has been fixed in Craft Commerce version 5.6.0. Users should upgrade to version 5.6.0 or later to remediate this issue. Patch status is not explicitly stated in the vendor advisory, but the fix is included in version 5.6.0. Until upgraded, restrict authenticated control panel access to trusted users only.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- GitHub_M
- Date Reserved
- 2026-03-11T15:05:48.400Z
- Cvss Version
- 4.0
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 69dd563d82d89c981f59ffd8
Added to database: 4/13/2026, 8:46:53 PM
Last enriched: 4/21/2026, 6:15:02 AM
Last updated: 6/3/2026, 1:58:03 AM
Views: 83
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.