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.
Problem types
Improper Neutralization of Special Elements used in an OS Command ('OS Command Injection')
Product status
Timeline
| 2026-03-25: | Reported to Red Hat. |
| 2026-05-11: | Made public. |
Credits
Red Hat would like to thank Gabriel Rodrigues (HAKAI) for reporting this issue.
References
access.redhat.com/security/cve/CVE-2026-4802
bugzilla.redhat.com/show_bug.cgi?id=2451155 (RHBZ#2451155)
github.com/...pit/blob/e204cd130/pkg/systemd/logsJournal.jsx