CVE-2026-25495
High · 8.8CVSS
8.8
EPSS
0.6%
Published
Feb 9, 2026
CISA due date
—
The record
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.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|---|---|---|
| Packagist | craftcms/cms | 4.0.0-RC1 | 4.16.18 |
| Packagist | craftcms/cms | 5.0.0-RC1 | 5.8.22 |
Related vulnerabilities
- GHSA-2453-mppf-46cj Craft CMS Vulnerable to SQL Injection in Element Indexes via `criteria[orderBy]` Same vulnerability
- GHSA-234q-vvw3-mrfq Craft CMS has unauthenticated activation email trigger with potential user enumeration Also affects craftcms/cms
- CVE-2026-29069 Craft is a content management system (CMS). Also affects craftcms/cms
- CVE-2026-28696 Craft is a content management system (CMS). Also affects craftcms/cms
- CVE-2026-28781 Craft is a content management system (CMS). Also affects craftcms/cms
- CVE-2026-28784 Craft is a content management system (CMS). Also affects craftcms/cms
- CVE-2026-28782 Craft is a content management system (CMS). Also affects craftcms/cms
- CVE-2026-28783 Craft is a content management system (CMS). Also affects craftcms/cms