External risk intelligence

Craft CMS SQL Injection Allows Administrator Privilege Escalation.

CVE advisorySeverity: CRITICAL (CVSS 9.3)

CVE-2026-115934

The vulnerability affects a front-end search function in a CMS. Search functionality is a core, public-facing feature of web applications designed to be reachable by any visitor without authentication. As it is accessible on the public web/API endpoint of the site, it falls under the category of a public-facing service by design.

SQL Injection

Halo Surface Signal: 5 out of 5 — more likely to be public-facing.

External exposure likelihood

Horizon Alert

Summary of the vulnerability and why it matters

This advisory addresses a critical vulnerability in a content management system's search functionality, specifically when using MySQL or MariaDB databases. The flaw allows unauthenticated attackers to inject malicious SQL commands, potentially leading to unauthorized access, data modification, and even administrator privilege escalation. The primary concern is to confirm if your organization's web presence utilizes this specific search feature with the affected database configurations.

  • Attackers can inject commands via website search.
  • It allows full control of user accounts.
  • Confirm relevance and identify exposure.

Attack Path

How an attacker could exploit the issue

An attacker can initiate an SQL injection attack by sending specially crafted input to the front-end search feature of a website using craft.search. This vulnerability, which affects MySQL/MariaDB databases, allows for stacked query execution due to unsanitized data concatenation and emulated prepares. Successful exploitation can lead to unauthorized access to the application's database, potentially allowing an attacker to escalate privileges to administrator level by modifying user roles or resetting passwords.

  • Accessible via front-end search.
  • Triggers via unsanitized input.
  • Leads to database access and privilege escalation.

Live Threat

Current exploitation, exposure, and threat context

An unauthenticated SQL injection vulnerability could allow attackers to execute stacked queries on websites using `craft.search` with MySQL or MariaDB. This could lead to unauthorized read and write access to the application database, potentially enabling privilege escalation to administrator level or the modification of user credentials.

  • Application database data.
  • Unsanitized search parameter input.
  • Unauthorized database access or account takeover.

Operational Fix

Recommended remediation, mitigation, and detection steps

The primary responsibility for addressing this SQL injection vulnerability likely falls to the application owner and potentially the platform team if the affected technology is managed as part of a shared service. The first practical step is to identify all instances of the affected search functionality, confirm its exposure and business criticality, and then coordinate remediation with the responsible team.

  • Application owners should own the fix.
  • Verify all exposed search endpoints.
  • Plan updates during maintenance windows.

Supplementary metadata

Validate whether this threat affects your internet-facing exposure.

Halo Threat Intelligence helps prioritize remediation with Halo Surface Signal and H/A/L/O context. Start exposure validation with a free external attack surface trial.

Frequently asked questions

What is Craft CMS?

Craft CMS is a content management system used to build and manage dynamic websites. It organizes site data into a database and relies on components like craft.search to help visitors find content. Because this system often acts as the backbone for public-facing websites, any flaw in its core search component can impact the entire site's security.

How does this SQL injection work in CVE-2026-115934?

This vulnerability is an instance of CWE-89, or Improper Neutralization of Special Elements used in an SQL Command. It occurs because the software fails to sanitize input sent to the search feature. Because the database connection uses emulated prepared statements, an attacker can append extra commands to a standard search request, effectively tricking the database into running unauthorized, stacked queries.

When does this vulnerability trigger?

The flaw triggers when an unauthenticated user sends a specifically crafted search request to a site using Craft CMS with a MySQL or MariaDB database. It does not affect installations using other database engines like PostgreSQL. Furthermore, the issue is specific to the search function's attribute handling; standard search queries that do not include manipulated attribute parameters will not trigger this behavior.

Do I need to worry if my search is internal?

Halo Surface Signal indicates that this vulnerability resides in a core, public-facing search feature. If your search endpoints are accessible via the internet, the risk is higher because attackers can reach the vulnerable code without any authentication. While internal tools are technically less accessible, any application using the affected Craft CMS configuration should be treated as a priority for review.

What are the first steps to fix this?

The most effective resolution is to update your Craft CMS installation to the patched versions, 4.18.9 or 5.11.2, which fix how search queries are processed. If you cannot patch immediately, you can implement a temporary workaround by configuring your web server or firewall to block incoming front-end requests that contain the strings [attribute] or %5Battribute%5D in the URL query parameters.

References