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

Goal: 1000 CNY · Raised: 1336 CNY

100%

CVE-2026-31891— Cockpit CMS has SQL Injection in MongoLite Aggregation Optimizer via toJsonExtractRaw()

Quick assessment

Affected
Cockpit-HQ Cockpit
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.

Cockpit是Cockpit开源的一个交互式服务器管理界面。 Cockpit 2.13.4及之前版本存在SQL注入漏洞,该漏洞源于MongoLite聚合优化器中存在SQL注入漏洞,可能导致攻击者注入任意SQL,绕过已发布内容过滤器并提取未授权数据。

CVSS 7.7 · High EPSS 0.40% · P33

Possible ATT&CK Techniques 1 AI

T1190 · Exploit Public-Facing Application
Get alerts for future matching vulnerabilities Log in to subscribe

I. Basic Information for CVE-2026-31891

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
Cockpit CMS has SQL Injection in MongoLite Aggregation Optimizer via toJsonExtractRaw()
Source: CVE Program / CVE List V5
Vulnerability Description
Cockpit is a headless content management system. Any Cockpit CMS instance running version 2.13.4 or earlier with API access enabled is potentially affected by a a SQL Injection vulnerability in the MongoLite Aggregation Optimizer. Any deployment where the `/api/content/aggregate/{model}` endpoint is publicly accessible or reachable by untrusted users may be vulnerable, and attackers in possession of a valid read-only API key (the lowest privilege level) can exploit this vulnerability — no admin access is required. An attacker can inject arbitrary SQL via unsanitized field names in aggregation queries, bypass the `_state=1` published-content filter to access unpublished or restricted content, and extract unauthorized data from the underlying SQLite content database. This vulnerability has been patched in version 2.13.5. The fix applies the same field-name sanitization introduced in v2.13.3 for `toJsonPath()` to the `toJsonExtractRaw()` method in `lib/MongoLite/Aggregation/Optimizer.php`, closing the injection vector in the Aggregation Optimizer.
Source: CVE Program / CVE List V5
CVSS Information
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N
Source: CVE Program / CVE List V5
Vulnerability Type
SQL命令中使用的特殊元素转义处理不恰当(SQL注入)
Source: CVE Program / CVE List V5
Vulnerability Title
Cockpit SQL注入漏洞
Source: CNNVD (China National Vulnerability Database)
Vulnerability Description
Cockpit是Cockpit开源的一个交互式服务器管理界面。 Cockpit 2.13.4及之前版本存在SQL注入漏洞,该漏洞源于MongoLite聚合优化器中存在SQL注入漏洞,可能导致攻击者注入任意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
Cockpit-HQ Cockpit < 2.13.5 -

II. Public POCs for CVE-2026-31891

# 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-31891

登录查看更多情报信息。

Vendor Advisories for CVE-2026-31891 (1)

Vendor Pages for CVE-2026-31891 (1)

IV. Related Vulnerabilities

V. Comments for CVE-2026-31891

No comments yet


Leave a comment