Vulnerability · Published Mar 10, 2026 · Assigned by GitHub_M

CVE-2026-29172Craft Commerce has a SQL Injection in Commerce Purchasables Table Sorting

High 8.7

In plain English

A high-severity SQL injection in commerce from craftcms. Proof-of-concept exploit code is public. The chance it is exploited in the next 30 days is estimated at 0.5% (higher than 41% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 4.0)8.7High
Exploit odds (30 days)0.5%top 58.8% of all CVEs
Exploited in the wildNo reportsCISA SSVC: poc
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
Packagistcraftcms/commerce4.10.2GHSA-j3x5-mghf-xvfw
Packagistcraftcms/commerce5.5.3GHSA-j3x5-mghf-xvfw

Affected products (as reported)

VendorProductVersions
craftcms commerce >= 4.0.0 < 4.10.2>= 5.0.0 < 5.5.3

Weakness: CWE-89 · 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

References