SQL injection in Craft CMS search enables admin privilege escalation
Key facts
- Attack vector
- Network
- Privileges required
- None
- User interaction
- None
- Attack complexity
- Low
- Attack requirements
- None
- Impact type
- SQL injection
- Confidentiality · integrity · availability
- High · High · High
- 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 attribute parameter of craft.search is concatenated into an SQL query without sanitization (CWE-89). An unauthenticated attacker on a front end site that uses craft.search can run injected SQL statements and make an account an administrator, but only on MySQL and MariaDB.
Written with Claude Haiku 5.5 from the sources below · 2026-11-11
Description from the CNA
An unauthenticated SQL injection can occur on the front end of any site that uses craft.search to perform a search, allowing stacked query execution and enabling escalation to an administrator. Note that this only affects MySQL/MariaDB. Impact * SQL injection — The attribute parameter is concatenated into the query unsanitized, and because PDO runs with emulated prepares, stacked statements execute. This gives unauthenticated read and write access to the application database. * Privilege escalation to administrator — The write primitive was used to set the admin flag on user ID 1 in the users table, confirmed by reading the value back. Craft short-circuits its permission checks on this single column, so no further changes were needed. The same primitive can overwrite any account’s password hash. Update to the patched versions (4.18.9 and 5.11.2) to get the fix. If you cannot update immediately, you can block front-end requests with %5Battribute%5D and [attribute] anywhere in the query string as a temporary mitigation.
Why it matters now
SSVC decision points
CISA ADP · SSVC 2.0.3
- Exploitation
- None
- Automatable
- Yes
- Technical impact
- Total
The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.
Affected products
Remediation
Update Craft CMS to 4.18.9 for the 4.x branch or 5.11.2 for the 5.x branch. If an update cannot be applied immediately, block front end requests that contain %5Battribute%5D or [attribute] in the query string as a temporary mitigation.
Written with Claude Haiku 5.5 from the sources below · 2026-11-11
- Fix · CNA cms (craftcms) Fixed in 5.11.2, 4.18.9
Timeline
- 2026-11-09 Threatist record created from CVE-2026-115934
- 2026-11-10 Alias added: GHSA-grcw-mp3h-6wqj
- 2026-11-12 CISA SSVC decision points changed
References
More Craft CMS vulnerabilities
- TI-2025-23503 Code injection in Craft CMS allows remote code execution KEVCVSS 3.1CRITICAL 10.0
- TI-2024-37138 Remote code execution in Craft CMS when register_argc_argv is enabled KEVCVSS 4.0CRITICAL 9.3
- TI-2025-16994 Remote code execution in Craft CMS via a compromised security key 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-115934 · CVE Program
- CVE-2026-115934 · NVD
- FIRST EPSS
- GHSA-grcw-mp3h-6wqj · 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