[ CVE-2026-115934 · Published 9 Nov 2026 ]
Vulnerability in craftcms cms
[ Why it matters ]Priority signals
- Critical severity: CVSS 9.8
[ Description ]Official description
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.
[ Fixes ]How to fix it
Fixed versions
- craftcms cms: upgrade to 5.11.2 or laterEarlier versions are listed as affected
- craftcms cms: upgrade to 4.18.9 or laterEarlier versions are listed as affected
From the affected-version ranges in the CVE record. Check the vendor's advisory for the exact release for your platform or branch.
Vendor advisories and patches
- Vendor advisorygithub.com
- Release notesgithub.com
Until you can patch: our advice
- Block SQL injection at the edge. Put a web application firewall rule in front of the application to block SQL injection, and make sure its database account has only the rights it needs.
- Keep it off the internet. It can be attacked over the network without an account. Until you have patched, make sure the affected service is not reachable from the internet: close the port, or put it behind a VPN or a firewall allow-list.