# CVE-2026-29174: Craft Commerce has a SQL Injection in Commerce Inventory 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.49%, higher than 43% of CVEs (2026-12-01)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-03-10T18:23:25.000Z
- Modified: 2026-06-17T10:29:43.167Z
- Also known as: GHSA-pmgj-gmm4-jh6j
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

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

(As written by CVE List.)

## Affected

- craftcms commerce: >= 5.0.0 < 5.5.3
- craftcms/commerce (Packagist): from 5.0.0 before 5.5.3
- craftcms craft_commerce: 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-pmgj-gmm4-jh6j> (exploit, vendor-advisory, web)
- <https://github.com/craftcms/commerce/commit/094d69df24b925544f337c38e2ec1effcd5395c7> (patch, web)
- <https://github.com/craftcms/commerce/commit/a2ea853935ef03297ea1298bdb0d8c55ec5daf7b> (patch, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-29174> (advisory)
- <https://github.com/craftcms/commerce> (package)

## Sources

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

---

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