Skip to main content
CVE-2026-31891VulnerabilityPublished Updated

Any Cockpit CMS instance running version 2.13.4 or earlier with API access enabled is potentially affected by a a SQL

Affects cockpitSource GCVE Database

0
Compare
Authoritative record:CVE-2026-31891· High 7.7

Not known to be exploited · CVSS 7.7 High · fixed in 2.13.5 : patch cockpit soon.

Data as of 9 Nov 2026, 14:20 UTC

CVSS 3.1 base score
7.7High
How severe the flaw is on the 0–10 CVSS scale.
Patch
Available – fixed in 2.13.5
CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:C/C:H/I:N/A:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 18 Mar 2026

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponized: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 9 Nov 2026.

What to do

Affected software

ProductAffectedFixed in
Ubuntu 26.10cockpitpkg:deb/ubuntu/cockpit?arch=source&distro=stonkingOther threatsAffected
  • 360-1 – 367-1
4 affected builds
Fixed in–
Ubuntu 25.10cockpitpkg:deb/ubuntu/cockpit?arch=source&distro=questingOther threatsAffected
  • 333-1 – 346-1
7 affected builds
Fixed in–
Ubuntu 20.04 LTScockpitpkg:deb/ubuntu/cockpit?arch=source&distro=focalOther threatsAffected
  • 202.1-1 – 215-1
11 affected builds
Fixed in–
Ubuntu 18.04 LTScockpitpkg:deb/ubuntu/cockpit?arch=source&distro=bionicOther threatsAffected
  • 151-1 – 164-1
9 affected builds
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

Upgrade Cockpit CMS to version 2.13.5 or later, where the vulnerability is fixed by applying proper field-name sanitization in the MongoLite Aggregation Optimizer. Ensure that the /api/content/aggregate/{model} endpoint is not publicly accessible or reachable by untrusted users if upgrading is not immediately possible. No other specific mitigations are described.

Description

Cockpit CMS versions 2.13.4 and earlier with API access enabled are vulnerable to a SQL Injection flaw in the MongoLite Aggregation Optimizer. Attackers with a valid read-only API key can exploit this vulnerability via the /api/content/aggregate/{model} endpoint to inject arbitrary SQL through unsanitized field names. This allows bypassing content publication filters and unauthorized extraction of data from the SQLite content database. The vulnerability is fixed in version 2.13.5 by applying field-name sanitization to the affected method.

References

Community reviews

Loading reviews…