CVE-2026-38992

Cockpit CMS Arbitrary Code Execution via MongoLite $func Operator

Published Apr 29, 2026 CVSS 3.1 · 9.8 Critical EPSS < 1% KEV · Not listed
Description
Cockpit v2.13.5 and earlier is vulnerable to arbitrary code execution via the filter parameter within multiple endpoints. This vulnerability allows an attacker to run system commands on the underlying infrastructure via the MongoLite $func operator.

Analysis

AI-generated

Technical impact

A flaw in Cockpit CMS versions before 2.14.0 permits an attacker to inject code through the filter parameter of several endpoints. The injected value is evaluated by the MongoLite database using the $func operator, which can invoke arbitrary system commands. This vulnerability leads directly to uncontrolled code execution on the underlying host, exposing the full confidentiality, integrity, and availability of the server. The weakness aligns with command and code injection issues such as CWE‑94.

Affected Systems

The security issue affects Cockpit CMS releases 2.13.5 and earlier. Any installation running those versions exposes the vulnerable endpoints. The official advisory lists the affected release as 2.13.5 and the new release 2.14.0 that includes the fix.

Risk and Exploitability

With a CVSS score of 9.8 and an EPSS score of < 1%, the vulnerability is rated as critical, but the low exploitation probability indicates that active exploitation is currently rare. However, because the flaw allows arbitrary command execution and is exposed over network endpoints, it remains a high‑risk issue for any organization that runs affected versions. The lack of KEV listing does not reduce the urgency, as the flaw is clearly exploitable regardless of current exploit availability.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade Cockpit CMS to version 2.14.0 or later, which contains the fix for the MongoLite filter parameter processing.
  • If an immediate upgrade is not possible, restrict network access to the affected endpoints, ensuring only trusted internal hosts can reach them.
  • As a temporary measure, ensure that the application runs with the least privilege necessary and consider disabling the $func operator if it is not required for your configuration.

Generated by OpenCVE AI on May 2, 2026 at 00:36 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-fm6c-rhcf-7439 Cockpit is vulnerable to arbitrary code execution
History
Type Values Removed Values Added
Title Cockpit CMS Arbitrary Code Execution via MongoLite $func Operator
Type Values Removed Values Added
Title Arbitrary Code Execution in Cockpit CMS via Filter Parameter
Weaknesses CWE-78
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 9.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Title Arbitrary Code Execution in Cockpit CMS via Filter Parameter
Weaknesses CWE-78
CWE-94
Type Values Removed Values Added
First Time appeared Cockpit-hq
Cockpit-hq cockpit
Vendors & Products Cockpit-hq
Cockpit-hq cockpit
Type Values Removed Values Added
Description Cockpit v2.13.5 and earlier is vulnerable to arbitrary code execution via the filter parameter within multiple endpoints. This vulnerability allows an attacker to run system commands on the underlying infrastructure via the MongoLite $func operator.
References
Weaknesses
  • CWE-94

    Improper Control of Generation of Code ('Code Injection')

Sources

Status
PUBLISHED
Assigner
mitre
Published
Updated
Apr 30, 2026, 3:22 PM
Reserved
Apr 6, 2026, 12:00 AM
Status
Deferred
Published
Apr 29, 2026, 3:16 PM
Modified
Jun 17, 2026, 10:41 AM