CVE-2026-25495: Craft - SQL Injection
- Cve: CVE-2026-25495
- Name: Craft - SQL Injection
- 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.
- Impact: Attackers with Control Panel access can execute arbitrary SQL commands, potentially compromising the database integrity and confidentiality.
- Remediation: Upgrade to versions 4.16.18 or 5.8.22 or later.
- Vulnerability type: sql_injection
- Vulnerability impact: sql_injection
- Requirement type: logged_in
- Requirements: Attacker needs Control Panel access
- Labels source: projectdiscovery
- Severity: high
- Cvss score: 8.8
- Cvss vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
- Epss score: 0.00557
- Epss percentile: 0.47316
- Assignee: [email protected]
- Published at: 2026-02-09T20:15:58Z
- Age in days: 288
- Modified at: 2026-06-17T10:24:44Z
- Patch available: yes
- Public exploits total: 1
- References total: 3
- Products total: 1
- Oss: yes
- Projects total: 1
- Advisory url: https://nvd.nist.gov/vuln/detail/CVE-2026-25495
- Nvd status: analyzed
- Checked, none or zero: known exploited entries, nuclei templates, public exploits capped, rejected by nvd
- Not known: hackerone
Cwe
| Id | Name |
|---|---|
| CWE-89 | Improper Neutralization of Special Elements used in an SQL Command |
Public exploits
| Url | Source | Added date |
|---|---|---|
| https://github.com/craftcms/cms/security/advisories/GHSA-2453-mppf-46cj | nvd | 2026-02-09 |
References
Same in every row:
- Source: nvd
| Url | Tags |
|---|---|
| https://github.com/craftcms/cms/commit/96c60d775c644ff0a0276da52fe29e11d4cd38d2 | Patch |
| https://github.com/craftcms/cms/security/advisories/GHSA-2453-mppf-46cj | Exploit, Patch, Vendor Advisory |
| https://github.com/craftcms/cms/releases/tag/5.8.22 | Release Notes |
Products
| Product | Affected | Platform bound | Sources | Url |
|---|---|---|---|---|
| craftcms:craft_cms | > 5.0.0, < 5.8.22; = 5.0.0; = 5.0.0 rc1; > 4.0.0, < 4.16.18; = 4.0.0; = 4.0.0 rc1; = 4.0.0 rc2; = 4.0.0 rc3 | no | nvd | /v1/products/craftcms/craft_cms |
Projects
| Repository | Link kinds | Indexed | Url |
|---|---|---|---|
| craftcms/cms | commit, package, releases, security_advisory | yes | /v1/repositories/craftcms/cms |
Index
- Checked, none or zero: repositories, repositories high signal, packages
Exploitation
- Public exploit: yes
- Public exploit count: 1
- Public exploit first date: 2026-02-09
- Remote: yes
- Authentication required: yes
- Exposed hosts: 34344
- Checked, none or zero: known exploited, known exploited by, exploitation seen, initial access
- Not known: known exploited since, vulncheck known exploited since, nuclei template, initial access since, hackerone reports