CVE-2026-29172
March 10, 2026
Craft Commerce is an ecommerce platform for Craft CMS. Prior to 4.10.2 and 5.5.3, Craft Commerce is vulnerable to SQL Injection in the purchasables table endpoint. The sort parameter is split by | and the first part (column name) is passed directly as an array key to orderBy() without whitelist validation. Yii2's query builder does NOT escape array keys, allowing an authenticated attacker to inject arbitrary SQL into the ORDER BY clause. This vulnerability is fixed in 4.10.2 and 5.5.3.
Affected Packages
https://github.com/craftcms/commerce.git (GITHUB):
Affected version(s) >=4.0.0 <4.10.2Fix Suggestion:
Update to version 4.10.2https://github.com/craftcms/commerce.git (GITHUB):
Affected version(s) >=5.0.0 <5.5.3Fix Suggestion:
Update to version 5.5.3craftcms/commerce (PHP):
Affected version(s) >=5.0.0 <5.5.3Fix Suggestion:
Update to version 5.5.3craftcms/commerce (PHP):
Affected version(s) >=4.0.0 <4.10.2Fix Suggestion:
Update to version 4.10.2Related Resources (5)
Do you need more information?
Contact UsCVSS v4
Base Score:
8.7
Attack Vector
NETWORK
Attack Complexity
LOW
Attack Requirements
NONE
Privileges Required
LOW
User Interaction
NONE
Vulnerable System Confidentiality
HIGH
Vulnerable System Integrity
HIGH
Vulnerable System Availability
HIGH
Subsequent System Confidentiality
NONE
Subsequent System Integrity
NONE
Subsequent System Availability
NONE
CVSS v3
Base Score:
8.8
Attack Vector
NETWORK
Attack Complexity
LOW
Privileges Required
LOW
User Interaction
NONE
Scope
UNCHANGED
Confidentiality
HIGH
Integrity
HIGH
Availability
HIGH
Weakness Type (CWE)
Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
EPSS
Base Score:
0.03