REDHAT-BUG-2451155: High severity Cockpit project Cockpit vulnerability

Published Mar 25, 2026
·
Updated

vulnerability in Cockpit’s system logs UI code (pkg/systemd/logsJournal.jsx, loadServiceFilters() path). The flaw is caused by building a command from an array, joining it into a single string with only space escaping, and then executing it via /bin/bash -ec. User-controlled parameters from the logs page (e.g., #/system/logs#/?since=...) reach this code path unsanitized and can include shell metacharacters such as command substitution ($(...)). A crafted link can therefore inject arbitrary shell commands into the constructed pipeline (set -o pipefail; ... | grep ... | sort -u) and execute them on the host. The provided PoC demonstrates writing the output of id into /tmp/cockpit-rce-proof, confirming code execution in the target environment.

Affected Software

1 affected component
Cockpit project Cockpit

Event History

Mar 25, 2026
Data Sourced
via Red Hat·10:32 AM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which systems are exposed to this issue?

Systems running Cockpit with the system logs UI and the affected loadServiceFilters() path are exposed when user-controlled logs-page parameters reach that code. The issue executes injected commands on the host running Cockpit.

2

What does an attacker need to trigger command execution?

The attacker needs to supply crafted user-controlled parameters to the Cockpit logs page, such as a since parameter in a logs-page URL. Shell metacharacters, including command substitution syntax, can be used to inject commands into the shell-executed pipeline; the available data does not state whether authentication is required.

3

How can the provided proof of concept be recognized on a host?

The provided PoC writes the output of id to /tmp/cockpit-rce-proof. That file is an indicator of this specific PoC, not proof that no other exploitation occurred if it is absent.

4

Which vendor advisories are referenced for remediation?

The referenced Red Hat advisories are RHSA-2026:21390, RHSA-2026:21395, and RHSA-2026:21394.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203