Bug 2451155 (CVE-2026-4802) - CVE-2026-4802 cockpit: Cockpit: Arbitrary command execution via crafted links in system logs UI
Summary: CVE-2026-4802 cockpit: Cockpit: Arbitrary command execution via crafted links...
Keywords:
Status: NEW
Alias: CVE-2026-4802
Product: Security Response
Classification: Other
Component: vulnerability
Version: unspecified
Hardware: All
OS: Linux
high
high
Target Milestone: ---
Assignee: Product Security DevOps Team
QA Contact:
URL:
Whiteboard:
Depends On: 2480095
Blocks:
TreeView+ depends on / blocked
 
Reported: 2026-03-25 10:32 UTC by OSIDB Bzimport
Modified: 2026-06-10 08:42 UTC (History)
6 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed:
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Product Errata RHSA-2026:21390 0 None None None 2026-05-27 16:34:52 UTC
Red Hat Product Errata RHSA-2026:21392 0 None None None 2026-05-27 17:06:58 UTC
Red Hat Product Errata RHSA-2026:21394 0 None None None 2026-05-27 17:03:01 UTC
Red Hat Product Errata RHSA-2026:21395 0 None None None 2026-05-27 17:01:02 UTC
Red Hat Product Errata RHSA-2026:21468 0 None None None 2026-05-27 22:01:22 UTC
Red Hat Product Errata RHSA-2026:21515 0 None None None 2026-05-27 23:00:28 UTC
Red Hat Product Errata RHSA-2026:21516 0 None None None 2026-05-27 23:02:10 UTC
Red Hat Product Errata RHSA-2026:21647 0 None None None 2026-05-28 04:22:30 UTC
Red Hat Product Errata RHSA-2026:21676 0 None None None 2026-05-28 06:30:19 UTC

Description OSIDB Bzimport 2026-03-25 10:32:45 UTC
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.

Comment 2 errata-xmlrpc 2026-05-27 16:34:51 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10.0 Extended Update Support

Via RHSA-2026:21390 https://access.redhat.com/errata/RHSA-2026:21390

Comment 3 errata-xmlrpc 2026-05-27 17:01:00 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.0 Update Services for SAP Solutions

Via RHSA-2026:21395 https://access.redhat.com/errata/RHSA-2026:21395

Comment 4 errata-xmlrpc 2026-05-27 17:03:00 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.2 Update Services for SAP Solutions

Via RHSA-2026:21394 https://access.redhat.com/errata/RHSA-2026:21394

Comment 5 errata-xmlrpc 2026-05-27 17:06:57 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.6 Extended Update Support

Via RHSA-2026:21392 https://access.redhat.com/errata/RHSA-2026:21392

Comment 6 errata-xmlrpc 2026-05-27 22:01:21 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9

Via RHSA-2026:21468 https://access.redhat.com/errata/RHSA-2026:21468

Comment 7 errata-xmlrpc 2026-05-27 23:00:27 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.8 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.8 Telecommunications Update Service

Via RHSA-2026:21515 https://access.redhat.com/errata/RHSA-2026:21515

Comment 8 errata-xmlrpc 2026-05-27 23:02:09 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Support
  Red Hat Enterprise Linux 8.6 Update Services for SAP Solutions
  Red Hat Enterprise Linux 8.6 Telecommunications Update Service

Via RHSA-2026:21516 https://access.redhat.com/errata/RHSA-2026:21516

Comment 9 errata-xmlrpc 2026-05-28 04:22:29 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 9.4 Extended Update Support

Via RHSA-2026:21647 https://access.redhat.com/errata/RHSA-2026:21647

Comment 10 errata-xmlrpc 2026-05-28 06:30:18 UTC
This issue has been addressed in the following products:

  Red Hat Enterprise Linux 10

Via RHSA-2026:21676 https://access.redhat.com/errata/RHSA-2026:21676


Note You need to log in before you can comment on or make changes to this bug.