# CVE-2026-29172: Craft Commerce has a SQL Injection in Commerce Purchasables Table Sorting

- Severity: High 8.7 (CVSS:4.0, scored by GitHub_M) `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`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.61%, higher than 43% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-10T18:23:07.000Z
- Modified: 2026-06-17T10:29:42.923Z
- Also known as: GHSA-j3x5-mghf-xvfw
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact total
- Assigned by: GitHub_M

## Description

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.

(As written by CVE List.)

## Affected

- craftcms commerce: >= 4.0.0 < 4.10.2; >= 5.0.0 < 5.5.3
- craftcms/commerce (Packagist): from 4.0.0 before 4.10.2; from 5.0.0 before 5.5.3
- craftcms craft_commerce: from 4.0.0 before 4.10.2; from 5.0.0 before 5.5.3

## Every score

- GitHub_M: CVSS:4.0 8.7 High `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`
- GitHub: CVSS:4.0 High `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`
- NVD: CVSS:3.1 8.8 High `CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H`

## References

- <https://github.com/craftcms/commerce/security/advisories/GHSA-j3x5-mghf-xvfw> (exploit, vendor-advisory, web)
- <https://github.com/craftcms/commerce/commit/b231b920b73db023e81e5b261b894d73e865c276> (patch, web)
- <https://github.com/craftcms/commerce/commit/e4e0f4107cd895d29290523637f077fe280407b1> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-29172> (advisory)
- <https://github.com/craftcms/commerce> (package)

## Sources

- CVE List: [CVE-2026-29172](https://www.cve.org/CVERecord?id=CVE-2026-29172), CVE Terms of Use, modified 2026-03-11
- GitHub Advisory Database: [GHSA-j3x5-mghf-xvfw](https://github.com/advisories/GHSA-j3x5-mghf-xvfw), CC-BY-4.0, modified 2026-03-13
- NVD: [CVE-2026-29172](https://nvd.nist.gov/vuln/detail/CVE-2026-29172), Public domain, modified 2026-06-17

---

Page: https://cve.day/CVE-2026-29172 · Whole record: https://cve.day/CVE-2026-29172.json · Rebuilt by cve.day 2026-11-25T22:59:15.650Z
