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.
Published: 2026-11-09
Score: 9.3 Critical
EPSS: n/a
KEV: No
Impact: Privilege Escalation via Unauthenticated SQL Injection
Action: Immediate Patch
AI Analysis

Impact

The flaw is an unauthenticated SQL injection that occurs in the front‑end search functionality of Craft CMS when the attribute parameter is concatenated directly into a query; because the database driver uses emulated prepared statements, stacked queries are executed, enabling an attacker to read and write application data. The attacker can set the admin flag on user ID 1 or overwrite any account’s password hash, effectively granting full administrative control and bypassing authentication.

Affected Systems

The vulnerability is present in Craft CMS releases earlier than 4.18.9 for the 4.x branch and 5.11.2 for the 5.x branch, regardless of operating system. It only affects sites that use a MySQL or MariaDB backend and require that the craft.search action be accessible from the web; any public site using this search component is potentially vulnerable.

Risk and Exploitability

The CVSS base score of 9.3 reflects a high‑impact, high‑confidentiality, integrity, and availability risk. EPSS data are not available and the vulnerability is not listed in CISA’s KEV catalog, yet the exposed unauthenticated write primitive combined with lack of input filtering makes exploitation highly likely once a front‑end request can be crafted. Attackers can submit a malicious query string to the search endpoint and gain administrator privileges. Based on the description, the likely attack vector is a public HTTP request to that component.

Generated by OpenCVE AI on November 10, 2026 at 00:54 UTC.

Remediation

Vendor Solution

Update to the patched versions (4.18.9 and 5.11.2) to get the fix.


OpenCVE Recommended Actions

  • Apply the vendor‑issued patch by upgrading Craft CMS to version 4.18.9 or 5.11.2, which fixes the SQL injection in the craft.search component.
  • If an immediate upgrade is not possible, block any front‑end request that includes the raw attribute parameter by filtering query strings containing %5Battribute%5D or [attribute] before the request reaches the application.
  • As a supplementary measure, configure PHP PDO to use native prepared statements instead of emulated ones so that stacked statements cannot be executed, or remove the craft.search feature entirely if it can be safely disabled.

Generated by OpenCVE AI on November 10, 2026 at 00:54 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Mon, 09 Nov 2026 23:15:00 +0000

Type Values Removed Values Added
Description An unauthenticated SQL injection in the element search endpoint allows stacked query execution, enabling escalation to an administrator. 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.

Mon, 09 Nov 2026 23:00:00 +0000

Type Values Removed Values Added
Description An unauthenticated SQL injection in the element search endpoint allows stacked query execution, enabling escalation to an administrator.
Title SQL injection leading to privilege escalation
First Time appeared Craftcms
Craftcms cms
Weaknesses CWE-89
CPEs cpe:2.3:a:craftcms:cms:*:*:*:*:*:*:*:*
Vendors & Products Craftcms
Craftcms cms
References
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

cvssV4_0

{'score': 9.3, 'vector': 'CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:A'}


cve-icon MITRE

Status: PUBLISHED

Assigner: Hackrate

Published:

Updated: 2026-11-09T23:06:37.426Z

Reserved: 2026-10-23T21:23:17.389Z

Link: CVE-2026-115934

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-09T23:17:12.470

Modified: 2026-11-09T23:17:12.470

Link: CVE-2026-115934

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-10T01:00:12Z

Weaknesses
  • CWE-89

    Improper Neutralization of Special Elements used in an SQL Command ('SQL Injection')