CVE-2026-25495
Craft CMS Vulnerable to SQL Injection in Element Indexes via `criteria[orderBy]`
Summary
Remediation
Upgrade to the fixed version using your package manager.
composer require "craftcms/cms:^5.8.22"
composer require "craftcms/cms:^4.16.18"
After upgrading, run your dependency scanner again to confirm the vulnerability is resolved.
Affected Packages (2)
| Package | Ecosystem | Affected | Fixed In |
|---|---|---|---|
| craftcms/cms | packagist | 5.0.0, 5.0.0-RC1, 5.0.1, 5.0.2 (+139 more) | 5.8.22 |
| craftcms/cms | packagist | 4.0.0, 4.0.0-RC1, 4.0.0-RC2, 4.0.0-RC3 (+223 more) | 4.16.18 |
Vulnerability Classification
Common Weakness Enumeration (CWE) identifiers for this vulnerability type.
- CWE-89SQL InjectionMITRE
CVSS Score Breakdown
What the CVSS (Common Vulnerability Scoring System) 8.8 score means for each attack dimension.
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
References
- https://github.com/craftcms/cms/security/advisories/GHSA-2453-mppf-46cjWEB
- https://nvd.nist.gov/vuln/detail/CVE-2026-25495ADVISORY
- https://github.com/craftcms/cms/commit/96c60d775c644ff0a0276da52fe29e11d4cd38d2WEB
- https://github.com/craftcms/cmsPACKAGE
- https://github.com/craftcms/cms/releases/tag/4.16.18WEB
- https://github.com/craftcms/cms/releases/tag/5.8.22WEB
Frequently Asked Questions
- What is CVE-2026-25495?
- Craft CMS Vulnerable to SQL Injection in Element Indexes via `criteria[orderBy]` This vulnerability has been assigned a severity rating of HIGH (CVSS score: 8.8/10).
- How do I check if my project is affected by CVE-2026-25495?
- CVE-2026-25495 affects craftcms/cms. Use GeekWala's free vulnerability scanner to check your dependencies against CVE-2026-25495 and 200,000+ other known vulnerabilities.
Severity & Exploitability
High exploitability or significant impact. Prioritize remediation within days.
Also Known As
Related CVEs
- CVE-2024-37843CRITICAL
Craft CMS SQL injection vulnerability via the GraphQL API endpoint
- CVE-2026-28697CRITICAL
Craft CMS Vulnerable to Authenticated RCE via "craft.app.fs.write()" in Twig Templates
- CVE-2026-72780CRITICAL
Craft CMS: Passkey login accepts replayed WebAuthn assertions
- CVE-2019-15929CRITICAL
Craft CMS possibility of brute force attempts
- CVE-2026-31857HIGH
CraftCMS has an RCE vulnerability via relational conditionals in the control panel
- CVE-2026-25497HIGH
Craft CMS: GraphQL Asset Mutation Privilege Escalation
- CVE-2026-31858HIGH
CraftCMS's `ElementSearchController` Affected by Blind SQL Injection
- CVE-2025-68456HIGH
Unauthenticated Craft CMS users can trigger a database backup
Check if you're affected
Scan your dependencies to see if this vulnerability affects your projects.
Scan Your Dependencies