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: 7.1 [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]
CVE-ID: CVE-2026-31858
CWE-ID: CWE-89
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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.


Affected software

Craft CMS

How to mitigate CVE-2026-31858

Install security update from vendor's website.

Craft CMS - update to 5.9.9

External References

Related Security Bulletins