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

Goal: 1000 CNY · Raised: 1000 CNY

100.0%

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

EPSS 0.04% · P11
Get alerts for future matching vulnerabilitiesLog 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: NVD (National Vulnerability Database)
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: NVD (National Vulnerability Database)
CVSS Information
N/A
Source: NVD (National Vulnerability Database)
Vulnerability Type
SQL命令中使用的特殊元素转义处理不恰当(SQL注入)
Source: NVD (National Vulnerability Database)
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

VendorProductAffected VersionsCPESubscribe
craftcmscms >= 5.0.0-RC1, <= 5.9.8 -

II. Public POCs for CVE-2026-31858

#POC DescriptionSource LinkShenlong Link
AI-Generated POCPremium

No public POC found.

Login to generate AI POC

III. Intelligence Information for CVE-2026-31858

登录查看更多情报信息。

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

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

IV. Related Vulnerabilities

V. Comments for CVE-2026-31858

No comments yet


Leave a comment