CVE-2026-29172 PUBLISHED

Craft Commerce has a SQL Injection in Commerce Purchasables Table Sorting

Assigner: GitHub_M
Reserved: 04.03.2026 Published: 10.03.2026 Updated: 11.03.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.

Metrics

CVSS Vector: 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
CVSS Score: 8.7

Product Status

Vendor craftcms
Product commerce
Versions
  • Version >= 4.0.0 < 4.10.2 is affected
  • Version >= 5.0.0 < 5.5.3 is affected

References

Problem Types

  • CWE-89: Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection') CWE