CVE-2026-123488

Craft CMS 4.0.0 before 4.18.9 SQL Injection via Element Search Endpoint

Published Nov 6, 2026 CVSS 4.0 · 9.3 Critical EPSS 2.3% KEV · Not listed
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.

Analysis

AI-generated

Technical 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 2%, indicating a low but non‑zero exploitation probability; 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.

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 15, 2026 at 09:03 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Craftcms cms
Vendors & Products Craftcms cms
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'}

Weaknesses
  • CWE-89

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

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Nov 9, 2026, 10:45 PM
Reserved
Nov 6, 2026, 12:44 AM
Status
Awaiting Analysis
Published
Nov 6, 2026, 3:17 PM
Modified
Nov 9, 2026, 11:17 PM