CVE-2026-29174
Received Received - Intake
SQL Injection in Craft Commerce Inventory Leads to Database Compromise

Publication date: 2026-03-10

Last updated on: 2026-03-11

Assigner: GitHub, Inc.

Description
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.
CVSS Scores
EPSS Scores
Probability:
Percentile:
Meta Information
Published
2026-03-10
Last Modified
2026-03-11
Generated
2026-06-16
AI Q&A
2026-03-10
EPSS Evaluated
2026-06-15
NVD
EUVD
Affected Vendors & Products
Showing 1 associated CPE
Vendor Product Version / Range
craftcms craft_commerce From 5.0.0 (inc) to 5.5.3 (exc)
Helpful Resources
Exploitability
CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-89 The product constructs all or part of an SQL command using externally-influenced input from an upstream component, but it does not neutralize or incorrectly neutralizes special elements that could modify the intended SQL command when it is sent to a downstream component. Without sufficient removal or quoting of SQL syntax in user-controllable inputs, the generated SQL query can cause those inputs to be interpreted as SQL instead of ordinary user data.
Attack-Flow Graph
AI Quick Actions
Instant insights powered by AI
Executive Summary

This vulnerability affects Craft Commerce, an ecommerce platform for Craft CMS, in versions prior to 5.5.3. It is a SQL Injection vulnerability in the inventory levels table data endpoint. Specifically, the parameters sort[0][direction] and sort[0][sortField] are used directly in a database query's addOrderBy() clause without any validation or sanitization. An authenticated attacker with access to the Commerce Inventory section can exploit this to inject arbitrary SQL queries.

This can potentially lead to a full compromise of the database.

Impact Analysis

If exploited, this vulnerability can allow an attacker to execute arbitrary SQL commands on the database. This could lead to unauthorized access, modification, or deletion of sensitive data stored in the database.

Ultimately, it can result in a full database compromise, which may disrupt business operations, cause data loss, and expose confidential information.

Compliance Impact

I don't know

Detection Guidance

I don't know

Mitigation Strategies

To mitigate this vulnerability, you should upgrade Craft Commerce to version 5.5.3 or later, where the SQL Injection issue in the inventory levels table data endpoint has been fixed.

Additionally, ensure that only authenticated users with proper permissions can access the Commerce Inventory section to reduce the risk of exploitation.

Chat Assistant
Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-29174. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70
EPSS Chart