SQL injection in Craft CMS - CVE-2026-31858

 

SQL injection in Craft CMS - CVE-2026-31858

Published: June 16, 2026


Vulnerability identifier: #VU134658
CSH Severity: Low
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Clear
CVE-ID: CVE-2026-31858
CWE-ID: CWE-89
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: Pixel & Tonic, Inc.
Affected software:
Craft CMS

Detailed vulnerability description

The vulnerability allows a remote user to disclose sensitive information.

The vulnerability exists due to SQL injection in the ElementSearchController::actionSearch() endpoint when handling crafted query properties. A remote user can inject arbitrary SQL via criteria[where], criteria[orderBy], or other query properties to disclose sensitive information.

The issue is exploitable through boolean-based blind injection, and no administrative privileges are required.


How to mitigate CVE-2026-31858

Install security update from vendor's website.

Sources