Craft CMS 4.0.0 before 4.18.9 Blind SQL Injection via getNext/getPrev Criteria
- State
- Published
- Severity
- 7.1 High
- Published
- Nov 6, 2026
- Updated
- Nov 6, 2026
- Reserved
- Nov 6, 2026
Description
Craft CMS 4.0.0 before 4.18.9 and 5.0.0 before 5.11.2 contains a blind SQL injection vulnerability because the sandbox-exposed getNext() and getPrev() methods pass arbitrary criteria arrays to Craft::configure() without removing SQL-bearing properties such as orderBy and where. Authenticated control panel users can supply a crafted elementIds value, rendered as a sandboxed template, to obtain a conditional SQL oracle under the Craft database account.
| Product | Versions |
|---|---|
| cms craftcms | 4.0.0 to before 4.18.9 Affected4.18.9 Not Affected |
| cms craftcms | 5.0.0 to before 5.11.2 Affected5.11.2 Not Affected |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 4.0 | 7.1 High | VulnCheck | |
| 3.1 | 7.1 High | VulnCheck |
Weaknesses
- CWE-89 Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')
References
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.