CVE-2026-115934SQL injection leading to privilege escalation
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.
What to do
None of the Linux distributions or Windows releases we track list an affected package for this CVE. Check the vendor-reported products below.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
What the vendor says
As published in the CVE record by Hackrate, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- craftcms cms: affected: 5.0.0 to before 5.11.2, 4.0.0 to before 4.18.9; fixed in
5.11.2,4.18.9
Solution: Update to the patched versions (4.18.9 and 5.11.2) to get the fix.
Vendor advisories:
- https://www.hckrt.com/hacktivity/HCKRT-Y64NY8 (mitigation)
- https://github.com/craftcms/cms/releases/tag/5.11.2 (release-notes)
References
- https://www.hckrt.com/hacktivity/HCKRT-Y64NY8
- https://github.com/craftcms/cms/releases/tag/5.11.2
- https://github.com/craftcms/cms
- https://github.com/craftcms/cms/security/advisories/GHSA-qcvp-ggx3-97r6
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.