---
schema: 1
kind: vulnerability
title: "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)"
headline: "Craft CMS unauthenticated SQL injection gives admin takeover; CCCS reports exploitation; update to 4.18.9 or 5.11.2"
summary: >
  CVE-2026-123488 is an unauthenticated SQL injection in the front-end search of Craft CMS 4.0.0 to 4.18.8 and 5.0.0 to 5.11.1 on MySQL and MariaDB that gives read and write access to the database, including setting the admin flag or overwriting password hashes. The Canadian Centre for Cyber Security says open source reporting indicates exploitation in the wild and VulnCheck lists it in its own KEV database; no first-hand telemetry or CISA listing was found. Craft fixed it in 4.18.9 and 5.11.2 and offers a query-string block as a workaround.
discovered_at: "2026-11-17T04:44:30Z"
updated_at: null
event_date: "2026-11-06"
run_id: 2026-11-17T0355Z-intel
priority: notable
immediate_action: null
tags: [vulnerabilities, sqli, pre-auth, actively-exploited, patch-available]
regions: [global]
sectors: []
entities: []
techniques: [T1190]
affected_products: ["Craft CMS"]
cves:
  - id: CVE-2026-123488
    cvss: "9.3"
    epss: null
    type: sqli
    vector: zero-click
    auth: pre-auth
    status: [exploited, patch-available]
    affected: "Craft CMS 4.0.0 through 4.18.8 and 5.0.0 through 5.11.1, on MySQL and MariaDB only"
    fixed: "4.18.9 and 5.11.2"
sources:
  - url: "https://www.vulncheck.com/advisories/craft-cms-4.0.0-before-4.18.9-sql-injection-via-element-search-endpoint"
    publisher: "VulnCheck (CNA advisory)"
    date: "2026-11-06"
    role: primary
  - url: "https://github.com/craftcms/cms/security/advisories/GHSA-qcvp-ggx3-97r6"
    publisher: "Craft CMS (GHSA-qcvp-ggx3-97r6)"
    date: "2026-10-22"
    role: primary
  - url: "https://cyber.gc.ca/en/alerts-advisories/craft-cms-security-advisory-av26-1086"
    publisher: "Canadian Centre for Cyber Security (AV26-1086, Update 1)"
    date: "2026-11-12"
    role: corroborating
  - url: "https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-118288"
    publisher: "ENISA EUVD (EUVD-2026-118288)"
    date: "2026-11-06"
    role: corroborating
closed_sources: []
evidence:
  - quote: "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."
    publisher: "VulnCheck (CNA advisory)"
    source_url: "https://www.vulncheck.com/advisories/craft-cms-4.0.0-before-4.18.9-sql-injection-via-element-search-endpoint"
  - quote: "This advisory is in the VulnCheck KEV database"
    publisher: "VulnCheck (CNA advisory)"
    source_url: "https://www.vulncheck.com/advisories/craft-cms-4.0.0-before-4.18.9-sql-injection-via-element-search-endpoint"
  - quote: "Open source reporting indicates that CVE-2026-123488 is exploited in the wild."
    publisher: "Canadian Centre for Cyber Security (AV26-1086, Update 1)"
    source_url: "https://cyber.gc.ca/en/alerts-advisories/craft-cms-security-advisory-av26-1086"
  - quote: "The write primitive was used to set the admin flag on user ID 1 in the users table"
    publisher: "Craft CMS (GHSA-qcvp-ggx3-97r6)"
    source_url: "https://github.com/craftcms/cms/security/advisories/GHSA-qcvp-ggx3-97r6"
verification: multi-source
sourcing_note: >
  Exploitation rests on the Canadian Centre for Cyber Security's statement that open source reporting indicates it, which names no source, and on VulnCheck's own KEV flag; ENISA's record shows no exploitation date, CISA's catalog does not list the flaw, and no first-hand telemetry or victim statement was found. Craft's advisory page carries no CVE id; ENISA's record lists it among the references of CVE-2026-123488, and Craft describes the front-end craft.search path where VulnCheck names the element search endpoint. Craft's own use in Swiss public-sector sites is not established by any source.
confidence: medium
references: []
deep_dive: false
deep_dive_category: null
org_triage: null
classification:
  reliability: A
  credibility: 2
watchlist_hit: false
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."
updates: []
migrated_from: null
---

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](https://www.vulncheck.com/advisories/craft-cms-4.0.0-before-4.18.9-sql-injection-via-element-search-endpoint)). 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](https://github.com/craftcms/cms/security/advisories/GHSA-qcvp-ggx3-97r6)). 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](https://github.com/craftcms/cms/security/advisories/GHSA-qcvp-ggx3-97r6)). ENISA's record for CVE-2026-123488 lists Craft's advisory among its references ([ENISA EUVD, 2026-11-06](https://euvdservices.enisa.europa.eu/api/enisaid?id=EUVD-2026-118288)).

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](https://cyber.gc.ca/en/alerts-advisories/craft-cms-security-advisory-av26-1086)), and VulnCheck's advisory page states that it is in the VulnCheck KEV database ([VulnCheck, 2026-11-06](https://www.vulncheck.com/advisories/craft-cms-4.0.0-before-4.18.9-sql-injection-via-element-search-endpoint)). No first-hand telemetry, victim statement or CISA listing was found.

**Exposure:** Craft CMS 4.0.0 to 4.18.8 and 5.0.0 to 5.11.1 on MySQL or MariaDB whose public pages use craft.search.

**Detection:** web access logs for front-end search requests whose query string carries the bracketed attribute token that Craft's workaround blocks; database audit for changes to the admin column or password hashes in the users table, and new administrator accounts or sessions afterwards. Updating closes the injection but not an administrator flag or hash that was already written.

**Defender takeaway:** update every Craft CMS site to the fixed release now, since the attack needs no account and ends in administrator access, and check the users table on any internet-facing site that ran an older build.
