CVE-2026-25495CWE-89

Craft has a SQL Injection in Element Indexes via criteria[orderBy]

High · published February 9, 2026

CVSS v4.0
8.7
EPSS
1%
Percentile
48.4
In the wild
Unconfirmed
What it is

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.

The record
Technical detail
CVSS v4.0
8.7 · HIGH
Vector
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
EPSS
0.00607 · 48.4th percentile
Weakness
CWE-89 · Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
Published
2026-02-09T19:42Z
EPSS history
Timeline
  • 09 FEB 19:42Z
    Craft has a SQL Injection in Element Indexes via criteria[orderBy]
    cvelistv5