SQL Injection in Craftcms Commerce
CVE-2026-29174
Craft Commerce is an ecommerce platform for Craft CMS. Prior to 5.5.3, Craft Commerce is vulnerable to SQL Injection in the inventory levels table data endpoint. The sort[0][direction] and sort[0][sortField] parameters are concatenated directly into an addOrderBy() clause without any validation or sanitization. An authenticated attacker with access to the Commerce Inventory section can inject arbitrary SQL queries, potentially leading to a full database compromise. This vulnerability is fixed in 5.5.3.
Vulnerability class: SQL Injection
EPSS: 0.004 (35.8th percentile) — read the EPSS interpretation.
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
Affected products
- Craftcms Commerce — versions >= 5.0.0 < 5.5.3
- Craftcms Craft_commerce
Weakness classification (CWE)
References
- security-advisories@github.com (x_refsource_CONFIRM, Exploit, Vendor Advisory)
- security-advisories@github.com (Patch, x_refsource_MISC)
- security-advisories@github.com (Patch, x_refsource_MISC)
Frequently asked questions
- What is CVE-2026-29174?
- CVE-2026-29174 is a high-severity vulnerability in Craftcms Commerce, classified under SQL Injection. CVSS score: 8.8/10. Published 2026-03-10.
- How severe is CVE-2026-29174?
- High severity. CVSS v3 base score is 8.8 out of 10.