Cockpit < 2.13.5 SQLi (GHSA-7x5c-vfhj-9628)

high Nessus Plugin ID 303195

Synopsis

A content management application running on the remote host is affected by a SQL injection vulnerability.

Description

The version of Cockpit CMS running on the remote web server is prior to 2.13.5. It is, therefore, affected by a SQL injection vulnerability in the MongoLite Aggregation Optimizer.

- An unsanitized field name in the toJsonExtractRaw() method in lib/MongoLite/Aggregation/Optimizer.php allows an attacker with a valid read-only API key to inject arbitrary SQL via the /api/content/aggregate/{model} endpoint. Successful exploitation may bypass the published-content filter and extract unauthorized data from the underlying SQLite content database. (CVE-2026-31891)

Note that Nessus has not tested for this issue but has instead relied only on the application's self-reported version number.

Solution

Upgrade to Cockpit version 2.13.5 or later.

See Also

http://www.nessus.org/u?38fac4bb

Plugin Details

Severity: High

ID: 303195

File Name: cockpit_2_13_5.nasl

Version: 1.1

Type: remote

Family: CGI abuses

Published: 3/20/2026

Updated: 3/20/2026

Supported Sensors: Nessus

Risk Information

VPR

Risk Factor: Medium

Score: 4.4

CVSS v2

Risk Factor: Medium

Base Score: 6.8

Vector: CVSS2#AV:N/AC:L/Au:S/C:C/I:N/A:N

CVSS Score Source: CVE-2026-31891

CVSS v3

Risk Factor: High

Base Score: 7.7

Vector: CVSS:3.0/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N

Vulnerability Information

CPE: cpe:/a:agentejo:cockpit

Required KB Items: installed_sw/Cockpit

Patch Publication Date: 3/17/2026

Vulnerability Publication Date: 3/17/2026

Reference Information

CVE: CVE-2026-31891

IAVA: 2026-A-0254