CVE-2026-123488, Craft CMS 4.0.0 to 4.18.8 and 5.0.0 to 5.11.1: an unauthenticated SQL injection in front-end search lets a visitor become an administrator on MySQL and MariaDB; the Canadian Cyber Centre reports exploitation in the wild and 4.18.9 and 5.11.2 fix it (CVSS 4.0 9.3)
Craft CMS unauthenticated SQL injection gives admin takeover; CCCS reports exploitation; update to 4.18.9 or 5.11.2
Defender actions
- Update every Craft CMS 4 site to 4.18.9 and every Craft CMS 5 site to 5.11.2 now, and where that waits block front-end requests whose query string contains [attribute] or its encoded form %5Battribute%5D; on each MySQL or MariaDB site that was internet-facing on an older build, check the users table for an admin flag or password hash nobody changed and for administrator accounts you did not create, because the flaw writes to the database and updating does not undo it.
Analysis
Craft CMS 4.0.0 before 4.18.9 and 5.0.0 before 5.11.2 contain an unauthenticated SQL injection in front-end search: the attribute parameter is concatenated into the query unsanitized and emulated PDO prepares allow stacked statements, so a remote attacker can read and write the database, setting the admin flag or overwriting password hashes in the users table to gain administrator access (CVSS 4.0 9.3) (VulnCheck, 2026-11-06). Craft's own advisory, published on 2026-10-22 as critical, places the flaw on the front end of any site that uses craft.search, says it affects only MySQL and MariaDB, and says the write primitive was used to set the admin flag on user ID 1 (Craft CMS, 2026-10-22). The fixed releases are 4.18.9 and 5.11.2, and Craft's temporary workaround is to block front-end requests that carry the bracketed attribute token, plain or encoded, in the query string (Craft CMS, 2026-10-22). ENISA's record for CVE-2026-123488 lists Craft's advisory among its references (ENISA EUVD, 2026-11-06).
On exploitation, the Canadian Centre for Cyber Security's update of 2026-11-12 says open source reporting indicates the flaw is exploited in the wild (CCCS, 2026-11-12), and VulnCheck's advisory page states that it is in the VulnCheck KEV database (VulnCheck, 2026-11-06). No first-hand telemetry, victim statement or CISA listing was found.
Cited evidence
Craft CMS 4.0.0 before 4.18.9 and 5.0.0 before 5.11.2 contains an unauthenticated SQL injection vulnerability in the element search endpoint because the attribute parameter is concatenated into the query unsanitized and emulated PDO prepares allow stacked statements.
This advisory is in the VulnCheck KEV database
Open source reporting indicates that CVE-2026-123488 is exploited in the wild.
The write primitive was used to set the admin flag on user ID 1 in the users table
Sources4
AI-generated · no human review · this permalink is the shareable record for the finding · verify operationally critical claims against the linked primary source.