NetSight
high7.3

CVE-2026-91151

Cockpit: cockpit: local privilege escalation via insecure symlink handling in public key addition helper

Impact

A flaw was found in Cockpit. A local authenticated user with control over a target account's home directory can exploit a privileged symlink dereference vulnerability in the `ssh-add-public-key.sh` helper. When this helper runs with elevated privileges, it can be tricked into following attacker-controlled symlinks within the `.ssh` or `authorized_keys` paths. This allows the attacker to arbitrarily change file ownership and modes, potentially leading to local privilege escalation and impacting the integrity, confidentiality, and availability of the system.

An attacker can exploit this with local access to the system, with a regular user account, but a user has to do something, such as open a file or a link. If it succeeds: high risk of data being read, high risk of data or systems being changed, high risk of outages.

Affected products · Red Hat

ProductAffected versions
Red Hat Enterprise Linux 10
Version patch: 0:366.1.1-1.el10_3
Red Hat Enterprise Linux 10.2 Extended Update Support
Version patch: 0:356.4.1-1.el10_2
Red Hat Enterprise Linux 7
All versions
Red Hat Enterprise Linux 8
Version patch: 0:310.10.2-1.el8_10
Red Hat Enterprise Linux 9
Version patch: 0:366.1.1-1.el9_9
Red Hat Enterprise Linux 9.8 Extended Update Support
Version patch: 0:356.4.1-1.el9_8
Red Hat OpenShift Dev Spaces
All versions

Weakness classification

References