# CVE-2026-25495: Craft has a SQL Injection in Element Indexes via criteria[orderBy]

- 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.65%, higher than 46% of CVEs (2026-11-30)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-02-09T19:42:57.778Z
- Modified: 2026-07-08T07:27:37.160Z
- Also known as: GHSA-2453-mppf-46cj
- Related: CVE-2026-32272
- Weaknesses: CWE-89
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact total
- Assigned by: GitHub_M

## Description

Craft is a platform for creating digital experiences. In Craft versions 4.0.0-RC1 through 4.16.17 and 5.0.0-RC1 through 5.8.21, the element-indexes/get-elements endpoint is vulnerable to SQL Injection via the criteria[orderBy] parameter (JSON body). The application fails to sanitize this input before using it in the database query. An attacker with Control Panel access can inject arbitrary SQL into the ORDER BY clause by omitting viewState[order] (or setting both to the same payload). This issue is patched in versions 4.16.18 and 5.8.22.

(As written by CVE List.)

## Affected

- craftcms cms: >= 5.0.0-RC1, < 5.8.22; >= 4.0.0-RC1, < 4.16.18
- craftcms/cms (Packagist): from 5.0.0-RC1 before 5.8.22; from 4.0.0-RC1 before 4.16.18
- craftcms craft_cms: from >4.0.0 before 4.16.18; from >5.0.0 before 5.8.22; 4.0.0; 5.0.0

## 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/cms/security/advisories/GHSA-2453-mppf-46cj> (exploit, patch, vendor-advisory, web)
- <https://github.com/craftcms/cms/commit/96c60d775c644ff0a0276da52fe29e11d4cd38d2> (patch, web)
- <https://github.com/craftcms/cms/releases/tag/5.8.22> (release-notes, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2026-25495> (advisory)
- <https://github.com/craftcms/cms> (package)
- <https://github.com/craftcms/cms/releases/tag/4.16.18> (web)

## Sources

- CVE List: [CVE-2026-25495](https://www.cve.org/CVERecord?id=CVE-2026-25495), CVE Terms of Use, modified 2026-02-10
- GitHub Advisory Database: [GHSA-2453-mppf-46cj](https://github.com/advisories/GHSA-2453-mppf-46cj), CC-BY-4.0, modified 2026-07-08
- NVD: [CVE-2026-25495](https://nvd.nist.gov/vuln/detail/CVE-2026-25495), Public domain, modified 2026-06-17

---

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