CVE-2026-29172Craft Commerce has a SQL Injection in Commerce Purchasables Table Sorting
Description
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.
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
| Vendor | Product | Versions | |
|---|---|---|---|
| craftcms | commerce | >= 4.0.0 < 4.10.2, >= 5.0.0 < 5.5.3 | |
| craftcms | craft commerce | 4.0.0 – < 4.10.2 |
References and patches
CPE matches (NVD) (2)
cpe:2.3:a:craftcms:craft_commerce:*:*:*:*:*:craft_cms:*:*≥ 4.0.0 < 4.10.2cpe:2.3:a:craftcms:craft_commerce:*:*:*:*:*:craft_cms:*:*≥ 5.0.0 < 5.5.3