Goal Reached Thanks to every supporter — we hit 100%!

Goal: 1000 CNY · Raised: 1359 CNY

100%

CVE-2026-31858— CraftCMS's `ElementSearchController` Affected by Blind SQL Injection

Quick assessment

Affected
craftcms cms
Exploitation
No confirmed in-the-wild exploitation; assess based on exposure
Recommended action
Check the vendor advisory and references for a fixed version. If immediate upgrade is impossible, restrict exposure and increase monitoring.

Craft CMS是Craft CMS开源的一套内容管理系统(CMS)。 Craft CMS 5.9.9之前版本存在SQL注入漏洞,该漏洞源于ElementSearchController::actionSearch端点缺少输入清理,可能导致SQL注入攻击。

AI Predicted 8.1 Difficulty: Easy EPSS 0.47% · P38
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-31858

Vulnerability Information

Have questions about the vulnerability? See if Shenlong's analysis helps!
View Shenlong Deep Dive ↗

Although we use advanced large model technology, its output may still contain inaccurate or outdated information.Shenlong tries to ensure data accuracy, but please verify and judge based on the actual situation.

Vulnerability Title
CraftCMS's `ElementSearchController` Affected by Blind SQL Injection
Source: CVE Program / CVE List V5
Vulnerability 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.
Source: CVE Program / CVE List V5
CVSS Information
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
Source: CVE Program / CVE List V5
Vulnerability Type
SQL命令中使用的特殊元素转义处理不恰当(SQL注入)
Source: CVE Program / CVE List V5
Vulnerability Title
Craft CMS SQL注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Craft CMS是Craft CMS开源的一套内容管理系统(CMS)。 Craft CMS 5.9.9之前版本存在SQL注入漏洞,该漏洞源于ElementSearchController::actionSearch端点缺少输入清理,可能导致SQL注入攻击。
Source: CNNVD (China National Vulnerability Database)
CVSS Information
N/A
Source: CNNVD (China National Vulnerability Database)
Vulnerability Type
N/A
Source: CNNVD (China National Vulnerability Database)

Affected Products

Vendor Product Affected Versions CPE Subscribe
craftcms cms >= 5.0.0-RC1, <= 5.9.8 -

II. Public POCs for CVE-2026-31858

# POC Description Source Link Shenlong Link
AI-Generated POC Premium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-31858

请登录查看更多情报信息。

Patches & Fixes for CVE-2026-31858 (1)

Vendor Advisories for CVE-2026-31858 (1)

Same Patch Batch · craftcms · 2026-03-11 · 4 CVEs total

CVE-2026-31857 CraftCMS has an RCE vulnerability via relational conditionals in the control panel
CVE-2026-31859 Craft has Reflective XSS via incomplete return URL sanitization
CVE-2026-31867 Craft Commerce has a Potential IDOR in Commerce carts

IV. Related Vulnerabilities

V. Comments for CVE-2026-31858

No comments yet


Leave a comment