Red Hat Enterprise Linux 10
Cockpit: cockpit: arbitrary command execution via crafted links in system logs ui
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
Fixed in 0:356.2-1.el10_2
Fixed in 0:334.2-1.el10_0
Fixed in 0:310.8-1.el8_10
Fixed in 0:264.3-1.el8_6
Fixed in 0:264.3-1.el8_6
Fixed in 0:264.3-1.el8_6
Fixed in 0:286.2-1.el8_8
Fixed in 0:286.2-1.el8_8
Fixed in 0:356.2-1.el9_8
Fixed in 0:356.2-1.el9_8
Fixed in 0:264.3-1.el9_0
Fixed in 0:286.3-1.el9_2
Fixed in 0:311.3-1.el9_4
Fixed in 0:334.3-1.el9_6
Mitigation
Upgrade Red Hat Enterprise Linux 10 to 0:356.2-1.el10_2 or later.
Upgrade Red Hat Enterprise Linux 10.0 Extended Update Support to 0:334.2-1.el10_0 or later.
Upgrade Red Hat Enterprise Linux 8 to 0:310.8-1.el8_10 or later.
Upgrade Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support to 0:264.3-1.el8_6 or later.
Upgrade Red Hat Enterprise Linux 8.6 Telecommunications Update Service to 0:264.3-1.el8_6 or later.
Upgrade Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions to 0:264.3-1.el8_6 or later.
Upgrade Red Hat Enterprise Linux 8.8 Telecommunications Update Service to 0:286.2-1.el8_8 or later.
Upgrade Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions to 0:286.2-1.el8_8 or later.
Upgrade Red Hat Enterprise Linux 9 to 0:356.2-1.el9_8 or later.
Upgrade Red Hat Enterprise Linux 9 to 0:356.2-1.el9_8 or later.
Upgrade Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions to 0:264.3-1.el9_0 or later.
Upgrade Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions to 0:286.3-1.el9_2 or later.
Upgrade Red Hat Enterprise Linux 9.4 Extended Update Support to 0:311.3-1.el9_4 or later.
Upgrade Red Hat Enterprise Linux 9.6 Extended Update Support to 0:334.3-1.el9_6 or later.
Workaround
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
References
- Vendor advisory access.redhat.com/errata/RHSA-2026:21390
- Vendor advisory access.redhat.com/errata/RHSA-2026:21392
- Vendor advisory access.redhat.com/errata/RHSA-2026:21394
5 more
- Vendor advisory access.redhat.com/errata/RHSA-2026:21395
- Vendor advisory access.redhat.com/errata/RHSA-2026:21468
- Vendor advisory access.redhat.com/errata/RHSA-2026:21515
- Vendor advisory access.redhat.com/errata/RHSA-2026:21516
- Vendor advisory access.redhat.com/errata/RHSA-2026:21647
Timeline
Days relative to CVE publicationFirst public PoC 8 h after publication; not in CISA KEV. First PoC: hakaioffsec/CVE-2026-4802 (created 11 May 2026, found by us: backfilled).
PoC repositories
Found on GitHub.1 PoCs
PoCs 1
| Repository | Created | Stars | Assessment |
|---|---|---|---|
| hakaioffsec/CVE-2026-4802 | 11 May 2026 +8 h | 4 | PoC |
Only PoCs count toward the first-PoC date and the characteristics below. Do not run PoC code from unknown sources.
PoC characteristics
What to hunt for in your logs · from 1 PoC repoGET /cockpit/login
- Key headers
Authorization: Basic {var}- Ports
- 8080, 9090
- Seen in
- 1 repo: hakaioffsec/CVE-2026-4802
- Evidence
- hakaioffsec/CVE-2026-4802/poc.py:32
Regex
Generated from PoC characteristics; not yet reviewed. Matches the request path and query.
(?i)^/cockpit/login(?:[?#].*)?$
Suricata
Template generated from PoC characteristics. Review before deploying.
alert http any any -> $HOME_NET [8080,9090] (msg:"GG PoC-Monitor CVE-2026-4802 Red Hat Red Hat Enterprise Linux 10 exploit attempt"; flow:established,to_server; http.method; content:"GET"; http.uri; content:"/cockpit/login"; http.header; content:"Authorization: Basic "; nocase; reference:url,poc.griffinguard.io/cve/CVE-2026-4802; classtype:web-application-attack; sid:9832307; rev:1;)
Sigma
Template generated from PoC characteristics. Review before deploying.
title: Red Hat Red Hat Enterprise Linux 10 exploit attempt (CVE-2026-4802)
id: gg-pocmon-cve-2026-4802-9832307
status: experimental
description: Request pattern taken from public PoCs for CVE-2026-4802. Generated, not reviewed.
references:
- https://poc.griffinguard.io/cve/CVE-2026-4802
logsource:
category: webserver
detection:
selection:
cs-method: GET
cs-uri-stem|contains|all:
- '/cockpit/login'
condition: selection
falsepositives:
- Authorized vulnerability scanning
level: high
tags:
- attack.initial_access
- attack.t1190
- cve.2026.4802