PT-2026-25975 · Cockpit · Cockpit
Ffasterss
·
Published
2026-03-17
·
Updated
2026-03-26
·
CVE-2026-31891
CVSS v3.1
7.7
High
| Vector | AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N |
Name of the Vulnerable Software and Affected Versions
Cockpit versions 2.13.4 and earlier
Description
Cockpit is a headless content management system. Instances running version 2.13.4 or earlier with API access enabled are susceptible to a SQL Injection issue in the MongoLite Aggregation Optimizer. The
/api/content/aggregate/{model} API endpoint, when publicly accessible or reachable by untrusted users, presents a risk. An attacker with a valid read-only API key can inject arbitrary SQL through unsanitized field names in aggregation queries. This allows bypassing the state=1 published-content filter to access unpublished or restricted content and extract unauthorized data from the underlying SQLite content database. The toJsonExtractRaw() function in lib/MongoLite/Aggregation/Optimizer.php is the source of the issue.Recommendations
Upgrade to version 2.13.5 or later.
Exploit
Fix
SQL injection
Found an issue in the description? Have something to add? Feel free to write us 👾
Weakness Enumeration
Related Identifiers
Affected Products
Cockpit