CVE-2026-4802
Description
A flaw was found in Cockpit. This vulnerability allows a remote attacker to achieve arbitrary command execution on the host by exploiting unsanitized user-controlled parameters within crafted links in the system logs user interface (UI). An attacker can inject shell metacharacters and command substitutions into these parameters, leading to the execution of arbitrary shell commands on the affected system. This could result in a complete system compromise.
Predictions
Heuristic predictions, AS-IS, for prioritization only.
Mitigations
Mitigation details
Description cockpit: Cockpit: Arbitrary command execution via crafted links in system logs UI Red Hat statement An Important arbitrary command execution flaw exists in Cockpit's system logs UI. This vulnerability allows a remote attacker to execute arbitrary commands on the host by exploiting unsanitized user-controlled parameters within crafted links. This impacts Red Hat Enterprise Linuxβ¦
Description
cockpit: Cockpit: Arbitrary command execution via crafted links in system logs UI
Red Hat statement
An Important arbitrary command execution flaw exists in Cockpit's system logs UI. This vulnerability allows a remote attacker to execute arbitrary commands on the host by exploiting unsanitized user-controlled parameters within crafted links. This impacts Red Hat Enterprise Linux systems where Cockpit is installed and accessible.
CVSS v3: 8.0 (CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H)
Errata / fixed releases
| Product | Package | Advisory | Released |
|---|---|---|---|
| Red Hat Enterprise Linux 10 | cockpit-0:356.2-1.el10_2 | RHSA-2026:21676 | 2026-05-28T00:00:00Z |
| Red Hat Enterprise Linux 10.0 Extended Update Support | cockpit-0:334.2-1.el10_0 | RHSA-2026:21390 | 2026-05-27T00:00:00Z |
| Red Hat Enterprise Linux 8 | cockpit-0:310.8-1.el8_10 | RHSA-2026:21700 | 2026-05-28T00:00:00Z |
| Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support | cockpit-0:264.3-1.el8_6 | RHSA-2026:21516 | 2026-05-27T00:00:00Z |
| Red Hat Enterprise Linux 8.6 Telecommunications Update Service | cockpit-0:264.3-1.el8_6 | RHSA-2026:21516 | 2026-05-27T00:00:00Z |
| Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions | cockpit-0:264.3-1.el8_6 | RHSA-2026:21516 | 2026-05-27T00:00:00Z |
| Red Hat Enterprise Linux 8.8 Telecommunications Update Service | cockpit-0:286.2-1.el8_8 | RHSA-2026:21515 | 2026-05-27T00:00:00Z |
| Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions | cockpit-0:286.2-1.el8_8 | RHSA-2026:21515 | 2026-05-27T00:00:00Z |
| Red Hat Enterprise Linux 9 | cockpit-0:356.2-1.el9_8 | RHSA-2026:21468 | 2026-05-27T00:00:00Z |
| Red Hat Enterprise Linux 9 | cockpit-0:356.2-1.el9_8 | RHSA-2026:21468 | 2026-05-27T00:00:00Z |
| Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions | cockpit-0:264.3-1.el9_0 | RHSA-2026:21395 | 2026-05-27T00:00:00Z |
| Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions | cockpit-0:286.3-1.el9_2 | RHSA-2026:21394 | 2026-05-27T00:00:00Z |
| Red Hat Enterprise Linux 9.4 Extended Update Support | cockpit-0:311.3-1.el9_4 | RHSA-2026:21647 | 2026-05-28T00:00:00Z |
Package state
| Product | Package | State |
|---|---|---|
| Red Hat Enterprise Linux 7 | cockpit | Not affected |
Apply commands
yum update -y cockpit
# or:
dnf upgrade -y cockpit
Affected
| Vendor | Product | Version |
|---|---|---|
| redhat | Red Hat Enterprise Linux 7 | Not affected |
OS impact
| OS | Version | Status | Fixed in |
|---|---|---|---|
| debian | bookworm | affected | |
| debian | bullseye | affected | |
| debian | forky | affected | |
| debian | trixie | affected | |
| rhel | 9 | fixed | |
| sles | affected | | |
| almalinux | 9 | fixed | cockpit-packagekit-356.2-1.el9_8.noarch.rpm |
| almalinux | 8 | fixed | cockpit-doc-310.8-1.el8_10.noarch.rpm |
| debian | sid | fixed | 362-1 |
References
- https://access.redhat.com/errata/RHSA-2026:21390
- https://access.redhat.com/errata/RHSA-2026:21394
- https://access.redhat.com/security/cve/CVE-2026-4802
- https://bugzilla.redhat.com/show_bug.cgi?id=2451155
- https://github.com/cockpit-project/cockpit/blob/e204cd130/pkg/systemd/logsJournal.jsx#L206-L210
- http://www.openwall.com/lists/oss-security/2026/05/20/19
- https://security-tracker.debian.org/tracker/CVE-2026-4802
- https://www.suse.com/security/cve/CVE-2026-4802.html
- https://access.redhat.com/errata/RHSA-2026:21468
- https://access.redhat.com/errata/RHSA-2026:21515
- https://access.redhat.com/errata/RHSA-2026:21395
- https://access.redhat.com/errata/RHSA-2026:21516
- https://access.redhat.com/errata/RHSA-2026:21647
- https://access.redhat.com/errata/RHSA-2026:21676
- https://access.redhat.com/errata/RHSA-2026:21700
- https://access.redhat.com/errata/RHSA-2026:21392
- https://bugzilla.redhat.com/2451155
- https://errata.almalinux.org/9/ALSA-2026-21468.html
- https://errata.almalinux.org/8/ALSA-2026-21700.html
CWEs
CWE-78
Community-verified mitigations for this CVE will appear above when contributors publish them.
Verify integrity in audit chain (admin only). AS-IS.