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

Read the record on cve.org

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.

ProductVersions
cms craftcms4.0.0 to before 4.18.9 Affected4.18.9 Not Affected
cms craftcms5.0.0 to before 5.11.2 Affected5.11.2 Not Affected

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.

© 2026 NVIDIA, the NVIDIA logo, and NVIDIA Inception are trademarks and/or registered trademarks of NVIDIA Corporation in the U.S. and other countries.