Cockpit: cockpit: arbitrary command execution via crafted links in system logs ui
Summary
| CVE | CVE-2026-4802 |
|---|---|
| State | PUBLISHED |
| Assigner | redhat |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2026-05-11 14:16:31 UTC |
| Updated | 2026-05-28 16:16:30 UTC |
| 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. |
Risk And Classification
Primary CVSS: v3.1 8 HIGH from [email protected]
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
EPSS: 0.002750000 probability, percentile 0.511580000 (date 2026-06-02)
Problem Types: CWE-78 | CWE-78 Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.1 | [email protected] | Secondary | 8 | HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |
| 3.1 | CNA | CVSS | 8 | HIGH | CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H |
CVSS v3.1 Breakdown
CVSS:3.1/AV:N/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| access.redhat.com/errata/RHSA-2026:21392 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2026:21515 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2026:21647 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2026:21516 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2026:21390 | [email protected] | access.redhat.com | |
| bugzilla.redhat.com/show_bug.cgi | [email protected] | bugzilla.redhat.com | |
| access.redhat.com/errata/RHSA-2026:21468 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2026:21676 | [email protected] | access.redhat.com | |
| github.com/cockpit-project/cockpit/blob/e204cd130/pkg/systemd/logsJourna... | [email protected] | github.com | |
| www.openwall.com/lists/oss-security/2026/05/20/19 | af854a3a-2127-422b-91ae-364da2661108 | www.openwall.com | |
| access.redhat.com/errata/RHSA-2026:21395 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2026:21700 | [email protected] | access.redhat.com | |
| access.redhat.com/errata/RHSA-2026:21394 | [email protected] | access.redhat.com | |
| access.redhat.com/security/cve/CVE-2026-4802 | [email protected] | access.redhat.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
Vendor Comments And Credit
Discovery Credit
CNA: Red Hat would like to thank Gabriel Rodrigues (HAKAI) for reporting this issue. (en)
Additional Advisory Data
| Source | Time | Event |
|---|---|---|
| CNA | 2026-03-25T10:32:01.264Z | Reported to Red Hat. |
| CNA | 2026-05-11T12:34:26.148Z | Made public. |
Workarounds
CNA: Mitigation for this issue is either not available or the currently available options don't meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base or stability. Operational risk reduction until fixes are available: restrict access to Cockpit to trusted networks/users only, and avoid opening untrusted crafted Cockpit URLs