Vulnerability 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.
CVSS Score
HIGH
Affected Products
| Vendor | Product | Versions |
|---|---|---|
| Craftcms | Craft Commerce | >= 4.0.0, < 4.10.2 |
Related Weaknesses (CWE)
References
- https://github.com/craftcms/commerce/commit/b231b920b73db023e81e5b261b894d73e865Patch
- https://github.com/craftcms/commerce/commit/e4e0f4107cd895d29290523637f077fe2804Patch
- https://github.com/craftcms/commerce/security/advisories/GHSA-j3x5-mghf-xvfwExploitVendor Advisory
- https://github.com/craftcms/commerce/security/advisories/GHSA-j3x5-mghf-xvfwExploitVendor Advisory
FAQ
What is CVE-2026-29172?
CVE-2026-29172 is a vulnerability with a CVSS score of 8.8 (HIGH). 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...
How severe is CVE-2026-29172?
CVE-2026-29172 has been rated HIGH with a CVSS base score of 8.8/10. Review the CVSS metrics above for detailed severity breakdown.
Is there a patch for CVE-2026-29172?
Check the references section above for vendor advisories and patch information. Affected products include: Craftcms Craft Commerce.