CVE-2026-29174 Craft Commerce has a SQL Injection in Commerce Inventory Table Sorting

High 8.7 Published Updated

An authenticated attacker can inject SQL via inventory sorting parameters, potentially compromising the database.

Exploited in the wild
Not known
Login needed
Any signed-in user
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-29174?

CVE-2026-29174 is a high-severity SQL injection vulnerability in craftcms commerce, published on 10 Mar 2026. Any signed-in user can exploit it over the network, with no action from the victim.

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

Weakness: CWE-89

Which versions are affected by CVE-2026-29174?

2 open source packages ship an affected version, including craftcms/commerce. It affects 1 product.

PackageAffectedFixed in
craftcms/commerce PackagistFrom 5.0.05.5.3
craftcms/commerce PackagistFrom 5.0.05.5.3

Products include Craftcms Craft Commerce.

How do I fix CVE-2026-29174?

Upgrade craftcms/commerce to 5.5.3 or later.

Use parameterised queries everywhere and never build SQL by joining strings. Upgrade affected software first; a web application firewall only buys time. More about SQL injection.

Is CVE-2026-29174 being exploited?

There is no known exploitation of CVE-2026-29174 in the wild and no public exploit code.

Sources

Also known as GHSA-pmgj-gmm4-jh6j.

Is CVE-2026-29174 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free