Skip to main content
Press slash or control plus K to focus the search. Use the arrow keys to navigate results and press enter to open a threat.
Reconnecting to live updates…

CVE-2026-32272: CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') in craftcms commerce

0
High
VulnerabilityCVE-2026-32272cvecve-2026-32272cwe-89
Published: Mon Apr 13 2026 (04/13/2026, 20:25:50 UTC)
Source: CVE Database V5
Vendor/Project: craftcms
Product: commerce

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.

AI-Powered Analysis

Machine-generated threat intelligence

AILast updated: 04/13/2026, 21:01:48 UTC

Technical Analysis

Craft Commerce versions 5.0.0 to 5.5.4 contain an SQL injection vulnerability due to insufficient sanitization of the hasVariant and hasProduct properties in ProductQuery and VariantQuery classes. These properties bypass the input sanitization blocklist implemented in ElementIndexesController, which only filters top-level Yii2 Query properties like where and orderBy. Internally, hasVariant and hasProduct invoke Craft::configure() on subqueries without proper sanitization, reintroducing SQL injection risks. Authenticated control panel users can exploit this vulnerability via boolean-based blind SQL injection to extract sensitive database information, including security keys that could be used to forge admin sessions and escalate privileges. The vulnerability is addressed in Craft Commerce version 5.6.0.

Potential Impact

An authenticated control panel user can exploit this vulnerability to perform boolean-based blind SQL injection, allowing extraction of arbitrary database contents. This includes sensitive security keys that could enable forging of admin sessions, leading to privilege escalation within the system. The vulnerability poses a high risk to the confidentiality and integrity of the affected system's data.

Mitigation Recommendations

This vulnerability is fixed in Craft Commerce version 5.6.0. Users should upgrade to version 5.6.0 or later to remediate the issue. Patch status is not explicitly stated beyond the fix in 5.6.0, so verify with the vendor advisory for the latest remediation guidance.

Pro Console: star threats, build custom feeds, automate alerts via Slack, email & webhooks.Upgrade to Pro

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/13/2026, 9:01:48 PM

Last updated: 4/15/2026, 1:16:30 PM

Views: 13

Community Reviews

0 reviews

Crowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.

Sort by
Loading community insights…

Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.

Actions

PRO

Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.

Please log in to the Console to use AI analysis features.

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

Breach by OffSeqOFFSEQFRIENDS — 25% OFF

Check if your credentials are on the dark web

Instant breach scanning across billions of leaked records. Free tier available.

Scan now
OffSeq TrainingCredly Certified

Lead Pen Test Professional

Technical5-day eLearningPECB Accredited
View courses