Skip to main content
← All vulnerabilities
CVE-2026-29172GHSA-J3X5-MGHF-XVFW

Craft Commerce has a SQL Injection in Commerce Purchasables Table Sorting

Published
Last modified
published
Not listed in CISA KEV
Fix
Fixed in 4.10.2, 5.5.3
None on Exploit-DB, Metasploit or GitHub
  • Exploitation: poc
  • Automatable: yes
  • Technical impact: total

Summary

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.

Timeline

  1. CVE published
  2. CISA SSVC assessment

    Exploitation: poc · Automatable: yes · Technical impact: total

  3. Record last updated

Affected versions

  • craftcms commerce

    >= 4.0.0 < 4.10.2, >= 5.0.0 < 5.5.3

  • craftcms/commercePackagist

    From 4.0.0 · fixed in 4.10.2

  • craftcms/commercePackagist

    From 5.0.0 · fixed in 5.5.3

References 3

GitHub · craftcms/commerce