CVE-2026-29172CWE-89

Craft Commerce has a SQL Injection in Commerce Purchasables Table Sorting

High · published March 10, 2026

CVSS v4.0
8.7
EPSS
1%
Percentile
44.8
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
8.7 · HIGH
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
EPSS
0.00543 · 44.8th percentile
Weakness
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Published
2026-03-10T19:52Z
EPSS history
Timeline
  • 10 MAR 19:52Z
    Craft Commerce has a SQL Injection in Commerce Purchasables Table Sorting
    cvelistv5