CVE-2026-115934: craftcms cms · SQL injection
Exploitation: None known · CVSS 9.8 Critical · Unauthenticated · Published 2026-11-09
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.
Enclave's analysis
Craft CMS has an unauthenticated SQL injection on the front end of sites that use craft.search. It only hits MySQL/MariaDB. Stacked queries let an attacker make themselves admin or overwrite password hashes. A public PoC exists, filed under a second CVE ID for what looks like the same flaw. Active exploitation is claimed only by the CNA. Upgrade to 4.18.9 or 5.11.2.
Fix
Upgrade cms to 5.11.2 or 4.18.9; craftcms/cms (Craft CMS 4.x) to 4.18.9; craftcms/cms (Craft CMS 5.x) to 5.11.2.
Affected versions
| Product | Vulnerable | Fixed in |
|---|---|---|
| cms | 5.0.0 before 5.11.2 | 5.11.2 |
| cms | 4.0.0 before 4.18.9 | 4.18.9 |
| craftcms/cms (Craft CMS 4.x) | >=4.0.0 and <4.18.9 | 4.18.9 |
| craftcms/cms (Craft CMS 5.x) | >=5.0.0 and <5.11.2 | 5.11.2 |