CVE-2026-31858

HIGH EPSS 26.9%
Published Mar 11, 20263mo ago · Modified Mar 17, 20263mo ago
8.7 CVSS 4.0
High
Find Similar
Published Mar 11, 2026 3mo ago
Last Modified Mar 17, 2026 3mo ago

Description

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.

CVSS Details

Base Score
8.7
Exploitability
Impact
Vector string
CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
Attack Vector Network
Attack Complexity Low
Privileges Required Low
User Interaction None
Scope X

Threat Intelligence

EPSS Exploit Probability
26.9% percentile
Exploit & Patch Status
No Known Exploit
Patch Available

Weaknesses 1

CWE-89 SQL Injection Injection

Affected Products 3

VendorProductVersionRange
craftcmscraft_cms*≥5.0.1  –  <5.9.9
craftcmscraft_cms5.0.0any
craftcmscraft_cms5.0.0any

References 2

  • github.com https://github.com/craftcms/cms/commit/e1a3dd669ae31491b86ad996e88a1d30d33d9a42
    Patch
  • github.com https://github.com/craftcms/cms/security/advisories/GHSA-g7j6-fmwx-7vp8
    PatchVendor Advisory

Remediation

  • github.com https://github.com/craftcms/cms/commit/e1a3dd669ae31491b86ad996e88a1d30d33d9a42
    Patch
  • github.com https://github.com/craftcms/cms/security/advisories/GHSA-g7j6-fmwx-7vp8
    PatchVendor Advisory