p PatchFirst

CVE-2026-31891

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

Diese Seite enthält Fakten aus öffentlichen Sicherheitsquellen. Lesen Sie vor dem Aktualisieren die Originalmeldung.

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.

CVSS 7.7 · Hoch · EPSS 0,4% · Korrektur verfügbar

Veröffentlicht
Aktualisiert

Technologie-Stack: system · php

Betroffene Produkte und Versionen

  • cockpit

    Softwareversionen
    • < 2.13.5: Betroffen

    Keine Korrektur veröffentlicht

  • cockpit-hq/cockpit Packagist

    Softwareversionen
    • 2.0.0
    • 2.0.1
    • 2.0.2
    • 2.1.0
    • 2.1.1
    • 2.1.2
    • 2.10.0
    • 2.10.1
    • 2.10.2
    • 2.10.3
    • 2.11.0
    • 2.11.1
    • 2.11.2
    • 2.11.3
    • 2.11.4
    • 2.12.0
    • 2.12.1
    • 2.13.0
    • 2.13.1
    • 2.13.2
    • 2.13.3
    • 2.13.4
    • 2.2.0
    • 2.2.1
    • 2.2.2
    • 2.3.0
    • 2.3.1
    • 2.3.2
    • 2.3.3
    • 2.3.4
    • 2.3.5
    • 2.3.6
    • 2.3.7
    • 2.3.8
    • 2.3.9
    • 2.4.0
    • 2.4.1
    • 2.5.0
    • 2.5.1
    • 2.5.2
    • 2.6.0
    • 2.6.1
    • 2.6.2
    • 2.6.3
    • 2.7.0
    • 2.7.1
    • 2.7.2
    • 2.8.0
    • 2.8.1
    • 2.8.2
    • 2.8.3
    • 2.8.4
    • 2.8.5
    • 2.8.6
    • 2.9.0
    • 2.9.1
    • 2.9.2
    • 2.9.3
    • 2.9.4
    Betroffene Versionsbereiche
    • ECOSYSTEM: < 2.13.5

    Auf 2.13.5 aktualisieren

  • cockpit Ubuntu:18.04:LTS

    Softwareversionen
    • 151-1
    • 156-1
    • 157-1
    • 158-1
    • 160-1
    • 161-1
    • 162-1
    • 163-1
    • 164-1
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

  • cockpit Ubuntu:20.04:LTS

    Softwareversionen
    • 202.1-1
    • 204-1
    • 206-1
    • 207-1
    • 208-1
    • 210-1
    • 211-1
    • 212-1
    • 213-1
    • 214.1-1
    • 215-1
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

  • cockpit Ubuntu:22.04:LTS

    Softwareversionen
    • 252-1
    • 256-1
    • 257-1
    • 258-1
    • 259-1
    • 260-1
    • 261-1
    • 262-1
    • 263-1
    • 264-1
    • 264-1ubuntu0.22.04.1
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

  • cockpit Ubuntu:24.04:LTS

    Softwareversionen
    • 300.1-1
    • 303-1
    • 304-1
    • 305-1
    • 306-1
    • 307-1
    • 308-1
    • 309-1
    • 310.1-1
    • 311-1
    • 312-1build2
    • 314-1
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

  • cockpit Ubuntu:25.10

    Softwareversionen
    • 333-1
    • 337-1
    • 339-1
    • 342-1
    • 343-1
    • 345-1
    • 346-1
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

  • cockpit Ubuntu:26.10

    Softwareversionen
    • 360-1
    • 362-1
    • 365-1
    • 367-1
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

  • cockpit Ubuntu:26.04:LTS

    Softwareversionen
    • 346-1
    • 348-1
    • 350-1
    • 352-1
    • 353.1-1
    • 354-1
    • 355-1
    • 356-1
    • 360-1
    Betroffene Versionsbereiche
    • ECOSYSTEM: (−∞, +∞)

    Keine Korrektur veröffentlicht

Originalquellen

Prüfen Sie Ihren Server →