Description
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. Remote attackers can read and write the database, setting the admin flag or overwriting password hashes in the users table to gain administrator access.
Published: 2026-11-06
Score: 9.3 Critical
EPSS: n/a
KEV: No
Impact: Privilege Escalation
Action: Immediate Patch
AI Analysis

Impact

The vulnerability is an unauthenticated SQL injection in the element search endpoint of Craft CMS. An attacker can craft the attribute parameter to inject SQL, enabling reading or modifying database content. The flaw allows an attacker to set the admin flag or overwrite password hashes in the users table, effectively turning a non‑administrator into an administrator. This is a classic SQL injection weakness (CWE‑89). The likely attack vector is sending a crafted HTTP request to the vulnerable endpoint with a specially formatted attribute parameter, and based on the description it is inferred that the exploit requires no prior authentication.

Affected Systems

Affected are Craft CMS releases from version 4.0.0 through 4.18.8 and from 5.0.0 through 5.11.1. The vulnerability is fixed in Craft CMS 4.18.9 and 5.11.2.

Risk and Exploitability

The CVSS base score of 9.3 indicates critical severity. EPSS score is not available, but the flaw is unauthenticated, allowing remote attackers to exploit it without credentials. It is not listed in the CISA KEV catalog. An attacker can directly interact with the vulnerable endpoint, inject SQL, read or write database values, and elevate privileges to administrator, making the likelihood of real‑world exploitation high.

Generated by OpenCVE AI on November 6, 2026 at 16:45 UTC.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade to Craft CMS 4.18.9 or newer, or 5.11.2 or newer, to eliminate the unsanitized SQL injection.
  • If an upgrade cannot be performed immediately, enforce authentication on the element search endpoint so only logged‑in users can invoke it, effectively blocking unauthenticated exploitation.
  • Apply network segmentation or firewall rules to restrict direct Internet access to the CMS deployment, limiting the ability of unauthenticated attackers to reach the vulnerable endpoint.

Generated by OpenCVE AI on November 6, 2026 at 16:45 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 06 Nov 2026 15:15:00 +0000

Type Values Removed Values Added
Description 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. Remote attackers can read and write the database, setting the admin flag or overwriting password hashes in the users table to gain administrator access.
Title Craft CMS 4.0.0 before 4.18.9 SQL Injection via Element Search Endpoint
First Time appeared Craftcms
Craftcms craft Cms
Weaknesses CWE-89
CPEs cpe:2.3:a:craftcms:craft_cms:*:*:*:*:*:*:*:*
Vendors & Products Craftcms
Craftcms craft 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'}


Subscriptions

Craftcms Craft Cms
cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-11-06T15:00:50.084Z

Reserved: 2026-11-06T00:44:37.658Z

Link: CVE-2026-123488

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Received

Published: 2026-11-06T15:17:18.133

Modified: 2026-11-06T15:17:18.133

Link: CVE-2026-123488

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-11-06T17:00:10Z

Weaknesses
  • CWE-89

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