Get a Demo

Let's Patch It!

Book a short call with one our specialists, we'll walk you through how Endor Patches work, and ask you a few questions about your environment (like your primary programming languages and repository management). We'll also send you an email right after you fill out the form, feel free to reply with any questions you have in advance!

CVE

CVE-2026-25495

Craft has a SQL Injection in Element Indexes via criteria[orderBy]
Back to all
CVE

CVE-2026-25495

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

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.

Package Versions Affected

Package Version
patch Availability
No items found.

Automatically patch vulnerabilities without upgrading

Fix Without Upgrading
Detect compatible fix
Apply safe remediation
Fix with a single pull request

CVSS Version

Severity
Base Score
CVSS Version
Score Vector
C
H
U
8.7
-
4.0
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/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
C
H
U
0
-
C
H
U
-

Related Resources

No items found.

References

https://github.com/CVEProject/cvelistV5/tree/main/cves/2026/25xxx/CVE-2026-25495.json, https://github.com/craftcms/cms/commit/96c60d775c644ff0a0276da52fe29e11d4cd38d2, https://github.com/craftcms/cms/releases/tag/5.8.22, https://github.com/craftcms/cms/security/advisories/GHSA-2453-mppf-46cj, https://nvd.nist.gov/vuln/detail/CVE-2026-25495

Severity

0

CVSS Score
0
10

Basic Information

Ecosystem
Base CVSS
0
EPSS Probability
0.00011%
EPSS Percentile
0.01412%
Introduced Version
04755d93f86d07cc183db47db8a0eee106892e30,daac7c1da2f701f2e9ddee1da1457ce61660b581
Fix Available
8e23a7a14d50f169c10a487348c993384d479e06,fc466946af3dd7928f5fd0e26099b9dc0eb2ce72

Fix Critical Vulnerabilities Instantly

Secure your app without upgrading.
Fix Without Upgrading