Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate to control panel
-
DeliverySubmit crafted ProductQuery with SQLi payload in hasVariant parameter
-
ExploitExecute boolean-based blind injection queries
-
ExecutionExtract security keys from database
-
PersistForge admin session token
-
ImpactEscalate to full administrative privileges
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A05:2025 - Injection
ASVS 5.0
V1 - Encoding and Sanitization Parameterized queries, prepared statements
MITRE ATT&CK
2 techniques across 2 tactics: Initial Access, Persistence The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | Requires authenticated access to the Craft Commerce control panel with permissions to execute ProductQuery or VariantQuery operations through the ElementIndexesController. Specifically affects installations running Craft Commerce versions 5.0.0 through 5.5.4 where authenticated users can interact with product or variant listing interfaces that process hasVariant or hasProduct query parameters. |
| Impact | Real-world risk assessment requires balancing multiple signals. The CVSS 4.0 score of 8.7 reflects high severity due to network attack vector (AV:N), low complexity (AC:L), and high confidentiality/integrity/availability impact (VC:H/VI:H/VA:H). However, exploitation requires authenticated control panel access (PR:L), significantly reducing the attack surface compared to unauthenticated vulnerabilities. The EPSS score of 0.03% (8th percentile) indicates very low probability of exploitation in the wild based on current threat intelligence. No CISA KEV listing and no public exploit identified at time of analysis further suggest this is not being actively targeted. The SSVC framework assessment: exploitation status is 'none public', automatable is 'no' (requires authenticated session and iterative blind SQLi), technical impact is 'total' (privilege escalation to admin). This positions the vulnerability as a real architectural flaw requiring remediation, but not an imminent mass-exploitation threat. Priority should be medium-high for organizations running Craft Commerce with multiple control panel users, especially where insider threat or account compromise is a concern. The privilege escalation path from authenticated user to admin via security key theft makes this more dangerous than a simple data leak SQLi. |
| Exploit ScenarioDerived | An authenticated attacker with control panel access crafts malicious ProductQuery or VariantQuery requests containing SQL injection payloads in the hasVariant or hasProduct parameters. Using boolean-based blind SQL injection techniques, the attacker iteratively extracts database contents including Craft CMS security keys. With these keys, the attacker forges an administrative session token, logs in as an admin, and gains full control over the Craft Commerce installation including customer data, orders, and site configuration. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Apr 15, 2026
SQL injection in Craft Commerce 5.0.0-5.5.4 allows authenticated control panel users to extract arbitrary database contents via ProductQuery::hasVariant and VariantQuery::hasProduct parameters that bypass prior sanitization fixes. Attackers can retrieve security keys to forge admin sessions and escalate privileges. Fixed in version 5.6.0. EPSS 0.03% (8th percentile) indicates low observed exploitation probability; no public exploit identified at time of analysis.
RemediationAI
Upgrade Craft Commerce to version 5.6.0 or later, which contains the complete fix for this SQL injection bypass. The patch is available from the official release at https://github.com/craftcms/commerce/releases/tag/5.6.0 and documented in pull request https://github.com/craftcms/commerce/pull/4232. No workarounds are documented; upgrading is the primary remediation path. Organizations should audit control panel user permissions and review database access logs for suspicious query patterns during the exposure window. Consider rotating security keys and reviewing admin session activity if unauthorized database access is suspected.
Affected VersionsENISA
Affected Packages
Source: OSV (Open Source Vulnerabilities)
Affects your stack
Affects 2 packages in composer, euvd
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
Craft Commerce is an e-commerce plugin for the Craft CMS content management system. This vulnerability (CWE-89: SQL Injection) exists in the ElementIndexesController's query handling logic. A prior security fix (GHSA-2453-mppf-46cj) implemented a blocklist to strip dangerous Yii2 Query properties like 'where' and 'orderBy' from user input. However, the ProductQuery::hasVariant and VariantQuery::hasProduct properties were not included in this blocklist. These properties internally invoke Yii2's Craft::configure() method on a subquery object without input sanitization, allowing attackers to inject arbitrary SQL through these nested query parameters. The vulnerability affects the CPE cpe:2.3:a:craftcms:commerce:*:*:*:*:*:*:*:* across versions 5.0.0 through 5.5.4. The exploit technique is boolean-based blind SQL injection, which allows iterative extraction of database contents through conditional true/false responses without direct data output.
Know when Commerce gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
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
Primary rating from GitHub Advisory · only source for this CVE.
CVSS VectorGitHub Advisory
Lifecycle Timeline
2DescriptionGitHub Advisory
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.
Executive ViewAI
Craft Commerce versions 5.0.0 through 5.5.4 contain a SQL injection vulnerability that allows authenticated control panel users to extract sensitive database contents, including security keys used to forge administrator sessions. This affects organizations using vulnerable Craft Commerce installations and requires immediate patching to prevent privilege escalation and unauthorized administrative access.
Vendor-released patch: Craft Commerce 5.6.0. Until patching is complete, restrict control panel access to trusted IP ranges and disable control panel accounts for inactive users to minimize exposure to authenticated attack vectors.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
SQL injection exploits the way applications construct database queries by mixing user input directly into SQL statements.
Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.
Privilege escalation in Adobe Commerce and Magento Open Source (including Adobe Commerce B2B) lets a remote attacker gai
Adobe Commerce versions 2.4.7, 2.4.6-p5, 2.4.5-p7, 2.4.4-p8 and earlier are affected by an Improper Restriction of XML E
SAP Commerce, versions - 1808, 1811, 1905, 2005, 2011, Backoffice application allows certain authorized users to create
SAP Commerce Cloud, versions - 1808,1811,1905,2005,2011, enables certain users with required privileges to edit drools r
Adobe Commerce versions 2.4.7-p2, 2.4.6-p7, 2.4.5-p9, 2.4.4-p10 and earlier are affected by an Improper Authentication v
Adobe Commerce versions 2.4.7, 2.4.6-p5, 2.4.5-p7, 2.4.4-p8 and earlier are affected by an Improper Access Control vulne
Adobe Commerce versions 2.4.3-p2 (and earlier), 2.3.7-p3 (and earlier) and 2.4.4 (and earlier) are affected by an Improp
If configured to use an Oracle database and if a query is created using the flexible search java api with a parameterize
SAP Commerce, versions - 6.7, 1808, 1811, 1905, and SAP Commerce (Data Hub), versions - 6.7, 1808, 1811, 1905, allows an
Adobe Commerce versions 2.4.6-p3, 2.4.5-p5, 2.4.4-p6 and earlier are affected by a stored Cross-Site Scripting (XSS) vul
Stored cross-site scripting in Adobe Commerce, Magento Open Source, and Adobe Commerce B2B lets a remote attacker persis
Stored cross-site scripting in Adobe Commerce, Magento Open Source, and Adobe Commerce B2B (versions through the August
EUVD-2026-22077
GHSA-r54v-qq87-px5r
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB