Read the docs

SQL injection in Craft CMS search enables admin privilege escalation

Priority MEDIUM 49CWE-89Published · Updated

Key facts

Attack vector
Network
Privileges required
None
User interaction
None
Attack complexity
Low
Attack requirements
None
Impact type
SQL injection
Confidentiality · integrity · availability
High · High · High
Fix status
Fixed

Attack profile from CVSS 4.0 · CNA. Fix status from CNA. Impact type from CWE-89.

Summary

Craft CMS from 4.0.0 before 4.18.9 and from 5.0.0 before 5.11.2 is affected. The attribute parameter of craft.search is concatenated into an SQL query without sanitization (CWE-89). An unauthenticated attacker on a front end site that uses craft.search can run injected SQL statements and make an account an administrator, but only on MySQL and MariaDB.

Written with Claude Haiku 5.5 from the sources below · 2026-11-11

Description from the CNA

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.

Why it matters now

Exploitation None reported CISA SSVC · not in CISA KEV
EPSS 0.00484 42nd percentileScored 2026-11-16
Fix Fixed cms (craftcms): 5.11.2, 4.18.9

SSVC decision points

CISA ADP · SSVC 2.0.3

Exploitation
None
Automatable
Yes
Technical impact
Total

The decision (Track, Attend, Act) also depends on your mission and well-being impact; see CISA's SSVC guide.

Affected products

VendorProductAffected versionsFixed inStatusSource
Craft CMScms5.0.0 to before 5.11.2; 4.0.0 to before 4.18.95.11.2, 4.18.9Patch availableCNA
  • cms VendorCraft CMS Affected 5.0.0 to before 5.11.2; 4.0.0 to before 4.18.9 Fixed in 5.11.2, 4.18.9 Patch available CNA

CPE names Threatist (inferred) · 1

Inferred from how NVD named this product before; not given by a source.

CPEVersionsRoleVendor
cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*——Craft CMS
  • cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:* Versions — — ·Craft CMS

Remediation

Update Craft CMS to 4.18.9 for the 4.x branch or 5.11.2 for the 5.x branch. If an update cannot be applied immediately, block front end requests that contain %5Battribute%5D or [attribute] in the query string as a temporary mitigation.

Written with Claude Haiku 5.5 from the sources below · 2026-11-11

  • Fix · CNA cms (craftcms) Fixed in 5.11.2, 4.18.9

Timeline

  1. 2026-11-09 Threatist record created from CVE-2026-115934
  2. 2026-11-10 Alias added: GHSA-grcw-mp3h-6wqj
  3. 2026-11-12 CISA SSVC decision points changed

References

  • TI-2025-23503 Code injection in Craft CMS allows remote code execution KEVCVSS 3.1CRITICAL 10.0
  • TI-2024-37138 Remote code execution in Craft CMS when register_argc_argv is enabled KEVCVSS 4.0CRITICAL 9.3
  • TI-2025-16994 Remote code execution in Craft CMS via a compromised security key KEVCVSS 3.1HIGH 8.1
  • TI-2025-24595 Craft CMS stores user-provided content in session files KEVCVSS 4.0MEDIUM 6.9
  • TI-2023-22284 Craft CMS Remote Code Execution vulnerability CVSS 3.1CRITICAL 10.0
  • TI-2024-25171 Craft CMS up to v3.7.31 was discovered to contain a SQL injection vulnerability via the GraphQL API endpoint. CVSS 3.1CRITICAL 9.8
See all 210 →

Sources