{"id":"CVE-2026-29174","published":"2026-03-10T19:55:54Z","modified":"2026-03-10T20:12:39Z","title":"Craft Commerce has a SQL Injection in Commerce Inventory Table Sorting","vendor":"Craft CMS","product":"commerce","tier":"tail","description":{"text":"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.","provenance":"source","from":"CVE.org"},"cvss":{"score":8.7,"severity":"HIGH","version":"4.0","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","provenance":"source","from":"CVE.org CNA"},"epss":{"score":0.00491,"percentile":0.43141,"provenance":"source"},"cwes":[{"id":"CWE-89","name":"Improper Neutralization of Special Elements used in an SQL Command"}],"references":[{"url":"https://github.com/craftcms/commerce/security/advisories/GHSA-pmgj-gmm4-jh6j","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/craftcms/commerce/commit/094d69df24b925544f337c38e2ec1effcd5395c7","tags":["x_refsource_MISC"]},{"url":"https://github.com/craftcms/commerce/commit/a2ea853935ef03297ea1298bdb0d8c55ec5daf7b","tags":["x_refsource_MISC"]}],"priority":{"score":14.7,"factors":[{"name":"EPSS percentile","points":8.63},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"craft-cms","affectedVersions":[{"vendor":"craftcms","product":"commerce","versions":[">= 5.0.0 < 5.5.3"]}],"ssvc":{"exploitation":"none","automatable":"no","technicalImpact":"total","timestamp":"2026-03-10T20:09:58.081841Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"craftcms/commerce","vulnerableRanges":[">=5.0.0, <5.5.3"],"patched":["5.5.3"],"from":["GHSA-pmgj-gmm4-jh6j"],"provenance":"source"}],"summary":{"text":"Craft Commerce, the ecommerce platform for Craft CMS, contains a SQL injection flaw in the inventory levels table data endpoint, where the sort direction and sort field parameters are concatenated directly into an ORDER BY clause without validation. An authenticated attacker with access to the Commerce Inventory section can exploit this over the network with low complexity and no user interaction to run arbitrary SQL queries, potentially compromising the entire database.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:34:39Z"},"euvd":{"id":"EUVD-2026-10816","exploited":false,"provenance":"source"}}