Cockpit symlink deref privilege escalation (ssh-add-public-key.sh)
CVE-2026-91151 Published on November 11, 2026
Cockpit: cockpit: local privilege escalation via insecure symlink handling in public key addition helper
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.
Vulnerability Analysis
CVE-2026-91151 can be exploited with local system access, requires user interaction and a small amount of user privileges. This vulnerability is considered to have a low attack complexity. Public availability of a proof of concept (POC) exploit exists for CVE-2026-91151. The potential impact of an exploit of this vulnerability is considered to be very high.
Timeline
Reported to Red Hat.
Made public. 176 days later.
CVE Published 1 day later.
Weakness Type
What is an insecure temporary file Vulnerability?
The software attempts to access a file based on the filename, but it does not properly prevent that filename from identifying a link or shortcut that resolves to an unintended resource.
CVE-2026-91151 has been classified to as an insecure temporary file vulnerability or weakness.
Products Associated with CVE-2026-91151
Want to know whenever a new CVE is published for Red Hat products? stack.watch will email you.
Affected Versions
Red Hat Enterprise Linux 10:- Version 0:366.1.1-1.el10_3 and below * is unaffected.
- Version 0:356.4.1-1.el10_2 and below * is unaffected.
- Version 0:310.10.2-1.el8_10 and below * is unaffected.
- Version 0:366.1.1-1.el9_9 and below * is unaffected.
- Version 0:366.1.1-1.el9_9 and below * is unaffected.
- Version 0:356.4.1-1.el9_8 and below * is unaffected.
Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.