Blind SQL injection in Craft CMS getNext and getPrev criteria
Key facts
- Attack vector
- Network
- Privileges required
- Low
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · Low · None
- Fix status
- Fixed
Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-89.
Summary
Craft CMS from 4.0.0 before 4.18.9 and from 5.0.0 before 5.11.2 is affected. The sandbox-exposed getNext() and getPrev() methods pass arbitrary criteria arrays to Craft::configure() without removing SQL-bearing properties such as orderBy and where, which is an SQL injection flaw (CWE-89). An authenticated control panel user with low privileges can supply a crafted elementIds value rendered as a sandboxed template to extract data one conditional answer at a time through a blind SQL oracle under the Craft database account.
Written with Claude Haiku 5.5 from the sources below · 2026-11-06
Description from the CNA
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.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- No
- Technical impact
- Partial
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Upgrade Craft CMS to 4.18.9 for the 4.x line and to 5.11.2 for the 5.x line.
Written with Claude Haiku 5.5 from the sources below · 2026-11-06
- Fix · CNA cms (craftcms) Fixed in 4.18.9
- Fix · CNA cms (craftcms) Fixed in 5.11.2
Fixed in the same release
Records fixed by the same vendor advisory or release, as the CNA lists them.
- Release ·
craftcms cms 5.11.2
4 records Highest priority Priority MEDIUM 2 MEDIUM, 2 LOW
Other records, highest priority first
- TI-2026-85953 SQL injection in Craft CMS GraphQL lets attackers read databasePriority MEDIUM 44
- TI-2026-85950 SQL injection in Craft CMS element search endpointPriority MEDIUM 41
- TI-2026-85952 Privilege escalation in Craft CMS lets users make accounts adminsPriority LOW 37
- Release ·
craftcms cms 4.18.9
3 records Highest priority Priority MEDIUM 2 MEDIUM, 1 LOW
Other records, highest priority first
- TI-2026-85953 SQL injection in Craft CMS GraphQL lets attackers read databasePriority MEDIUM 44
- TI-2026-85950 SQL injection in Craft CMS element search endpointPriority MEDIUM 41
Timeline
- 2026-11-06 Threatist record created from CVE-2026-123489
- 2026-11-06 Alias added: GHSA-w2f7-mc8w-f637
- 2026-11-06 CISA SSVC decision points changed
- 2026-11-06 Priority changed: MEDIUM → LOW
References
More Craft CMS vulnerabilities
- TI-2025-23503 Craft CMS Allows Remote Code Execution KEVCVSS 3.1CRITICAL 10.0
- TI-2024-37138 RCE when PHP `register_argc_argv` config setting is enabled in craftcms/cms KEVCVSS 4.0CRITICAL 9.3
- TI-2025-16994 Potential RCE with a compromised security key in craft/cms KEVCVSS 3.1HIGH 8.1
- TI-2025-24595 Craft CMS stores user-provided content in session files KEVCVSS 4.0MEDIUM 6.9
- TI-2023-22284 Craft CMS Remote Code Execution vulnerability CVSS 3.1CRITICAL 10.0
- TI-2024-25171 Craft CMS up to v3.7.31 was discovered to contain a SQL injection vulnerability via the GraphQL API endpoint. CVSS 3.1CRITICAL 9.8
Sources
- CVE-2026-123489 · CVE Program
- CVE-2026-123489 · NVD
- FIRST EPSS
- GHSA-w2f7-mc8w-f637 · GitHub Advisory Database · CC BY 4.0
This product uses the NVD API but is not endorsed or certified by the NVD. Sources and licences