Cockpit: cockpit: local privilege escalation via insecure symlink handling in public key addition helper
- State
- Published
- Severity
- 7.3 High
- Published
- Nov 11, 2026
- Updated
- Nov 13, 2026
- Reserved
- Sep 14, 2026
Description
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.
| Product | Versions |
|---|---|
| Red Hat Enterprise Linux 10 Red Hat | 0:366.1.1-1.el10_3 and later Not Affected |
| Red Hat Enterprise Linux 10.2 Extended Update Support Red Hat | 0:356.4.1-1.el10_2 and later Not Affected |
| Red Hat Enterprise Linux 8 Red Hat | 0:310.10.2-1.el8_10 and later Not Affected |
| Red Hat Enterprise Linux 9 Red Hat | 0:366.1.1-1.el9_9 and later Not Affected |
| Red Hat Enterprise Linux 9 Red Hat | 0:366.1.1-1.el9_9 and later Not Affected |
| Red Hat Enterprise Linux 9.8 Extended Update Support Red Hat | 0:356.4.1-1.el9_8 and later Not Affected |
| Red Hat Enterprise Linux 7 Red Hat | |
| Red Hat OpenShift Dev Spaces Red Hat | |
| Red Hat OpenShift Dev Spaces Red Hat | |
| Red Hat OpenShift Dev Spaces Red Hat |
| CVSS | Score | How It's Reached | Source |
|---|---|---|---|
| 3.1 | 7.3 High | redhat |
Weaknesses
- CWE-59 Improper Link Resolution Before File Access
References
- RHSA-2026:99599Vendor Advisory
- RHSA-2026:99600Vendor Advisory
- RHSA-2026:99601Vendor Advisory
- RHSA-2026:99602Vendor Advisory
- RHSA-2026:99603Vendor Advisory
- https://access.redhat.com/security/cve/CVE-2026-91151Vulnerability Database
- RHBZ#2478404Issue Tracker
- https://github.com/cockpit-project/cockpit/commit/4796b28be064a90e32262cec85be7839e6198e23
- https://github.com/cockpit-project/cockpit/releases/tag/372
Every record here comes from the CVE Program's CVE List. © 1999-2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.