{"id":"CVE-2026-29172","published":"2026-03-10T19:52:32Z","modified":"2026-03-11T14:12:53Z","title":"Craft Commerce has a SQL Injection in Commerce Purchasables Table Sorting","vendor":"Craft CMS","product":"commerce","tier":"tail","description":{"text":"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.","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.00474,"percentile":0.419,"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-j3x5-mghf-xvfw","tags":["x_refsource_CONFIRM"]},{"url":"https://github.com/craftcms/commerce/commit/b231b920b73db023e81e5b261b894d73e865c276","tags":["x_refsource_MISC"]},{"url":"https://github.com/craftcms/commerce/commit/e4e0f4107cd895d29290523637f077fe280407b1","tags":["x_refsource_MISC"]}],"priority":{"score":14.5,"factors":[{"name":"EPSS percentile","points":8.38},{"name":"CVSS severity","points":6.09}]},"vendorSlug":"craft-cms","affectedVersions":[{"vendor":"craftcms","product":"commerce","versions":[">= 4.0.0 < 4.10.2",">= 5.0.0 < 5.5.3"]}],"ssvc":{"exploitation":"poc","automatable":"yes","technicalImpact":"total","timestamp":"2026-03-11T14:12:47.816068Z","from":"CISA ADP","provenance":"source"},"affected":[{"ecosystem":"Packagist","package":"craftcms/commerce","vulnerableRanges":[">=4.0.0, <4.10.2",">=5.0.0, <5.5.3"],"patched":["4.10.2","5.5.3"],"from":["GHSA-j3x5-mghf-xvfw"],"provenance":"source"}],"summary":{"text":"A flaw in the purchasables table sorting endpoint of Craft Commerce, the ecommerce platform for Craft CMS, lets the sort parameter's column name reach the query builder's orderBy() unvalidated, so injected SQL is not escaped. An attacker with network access and low-privilege authenticated credentials, and no user interaction or special configuration required, can inject arbitrary SQL into the ORDER BY clause.","provenance":"ai","model":"claude-haiku-5-5","generatedAt":"2026-11-20T21:36:28Z"},"euvd":{"id":"EUVD-2026-10813","exploited":false,"provenance":"source"}}