SQL Injection in Craftcms Cms
CVE-2026-31858
Craft is a content management system (CMS). The ElementSearchController::actionSearch() endpoint is missing the unset() protection that was added to ElementIndexesController in CVE-2026-25495. The exact same SQL injection vulnerability (including criteria[orderBy], the original advisory vector) works on this controller because the fix was never applied to it. Any authenticated control panel user (no admin required) can inject arbitrary SQL via criteria[where], criteria[orderBy], or other query properties, and extract the full database contents via boolean-based blind injection. Users should update to the patched 5.9.9 release to mitigate the issue.
Vulnerability class: SQL Injection
Published · last modified .
CVSS v3 metric
CVSS v3 base score 8.8 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H.
EPSS exploit prediction
EPSS: 0.005 (37.8th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 38th percentile — 37.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.004 · newest: 0.005 · change: +0.001
Affected products
- Craftcms Cms — versions >= 5.0.0-RC1, <= 5.9.8
- Craftcms Craft Cms — versions 5.0.0
Weakness classification (CWE)
References
Frequently asked questions
- What is CVE-2026-31858?
- CVE-2026-31858 is a high-severity vulnerability in Craftcms Cms, classified under SQL Injection. CVSS score: 8.8/10. Published 2026-03-11.
- How severe is CVE-2026-31858?
- High severity. CVSS v3 base score is 8.8 out of 10.