CVE-2026-29172

High

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.

SeverityHigh
CVSS8.8
Exploit probability—
ProductCraftcms Craft Commerce
PublishedMar 10, 2026
First seenMar 10, 2026
Weakness typeCWE-89SQL injection

How to fix

Update
  • craftcms craft_commerce4.10.2, 5.5.3 or later
  • craftcms/commerce4.10.2, 5.5.3 or later

Affected products

ProductAffected versionsFixed in
craftcms craft_commerce4.0.0 ≤ v < 4.10.2, 5.0.0 ≤ v < 5.5.34.10.2, 5.5.3
craftcms/commercePackagist4.0.0 ≤ v < 4.10.2, 5.0.0 ≤ v < 5.5.34.10.2, 5.5.3

Check your version

Choose the product and enter the version you run to see whether it falls in the affected range.

In the Intelligence 360 plan

Attack Surface Management

See the assets tied to your domains, the technologies they run and known vulnerabilities in one list.