CVE-2026-31858HIGH 8.8EPSS p26.7%

CVE-2026-31858CVE-2026-31858

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.

Scoring

CVSS 3.18.8 (HIGH)
VectorCVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
EPSS0.35% probability of exploitation · percentile 26.7% · 2026-06-18T12:00:27Z
Published2026-03-11
Last modified2026-03-17

Underlying weaknesses· 1

CWE-89

References

  1. https://github.com/craftcms/cms/commit/e1a3dd669ae31491b86ad996e88a1d30d33d9a42
  2. https://github.com/craftcms/cms/security/advisories/GHSA-g7j6-fmwx-7vp8

1

TypeTargetConfidenceTier
WeaknessImproper Neutralization of Special Elements used in an SQL Command ('SQL Injection')cwe-890%live

Related by meaning· 6

Nearest entities by semantic similarity across the cs-graph corpus.

CVE
CVE-2026-25495
CVE
CVE-2026-31857
CVE
CVE-2026-29174
CVE
CVE-2026-29172
CVE
CVE-2026-28783
CVE
CVE-2025-68456
Sourced from NVD + FIRST.org EPSS. Curated for EU compliance use cases by Adam Lundqvist, Founder at SQUR.