CVE-2026-91151
Cockpit: cockpit: local privilege escalation via insecure symlink handling in public key addition helper
What happened?
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.
Affected software and versions
| Software | Version information | Fixed version |
|---|---|---|
| cockpitRed Hat | unaffected: 0:366.1.1-1.el10_3 to < * | See vendor advisory |
| cockpitRed Hat | unaffected: 0:356.4.1-1.el10_2 to < * | See vendor advisory |
| cockpitRed Hat | unaffected: 0:310.10.2-1.el8_10 to < * | See vendor advisory |
| cockpitRed Hat | unaffected: 0:366.1.1-1.el9_9 to < * | See vendor advisory |
| cockpitRed Hat | unaffected: 0:366.1.1-1.el9_9 to < * | See vendor advisory |
| cockpitRed Hat | unaffected: 0:356.4.1-1.el9_8 to < * | See vendor advisory |
| cockpitRed Hat | Default status: affected | See vendor advisory |
| devspaces/udi-base-rhel10Red Hat | Default status: affected | See vendor advisory |
| devspaces/udi-base-rhel9Red Hat | Default status: affected | See vendor advisory |
| devspaces/udi-rhel9Red Hat | Default status: affected | See vendor advisory |
Version information comes from the source record and can include unaffected products and exceptions. Distribution packages may contain backported fixes: an older upstream version alone does not prove a server is affected.
Is it being exploited?
This CVE was not listed in the CISA catalogue at our last retrieval. This does not establish that exploitation is absent.
How to respond
- Confirm the product, installed package version, and any configuration requirements in the vendor advisory.
- Follow the vendor’s remediation or workaround guidance in the references below. Structured fixed-version data is unavailable here; the publisher’s description may include a fix or workaround.
- Restart affected services if required, then verify the running version. Known exploitation may warrant investigation as well as patching.
Sources and remediation references
- https://www.cve.org/CVERecord?id=CVE-2026-91151
- https://access.redhat.com/errata/RHSA-2026:99599
- https://access.redhat.com/errata/RHSA-2026:99600
- https://access.redhat.com/errata/RHSA-2026:99601
- https://access.redhat.com/errata/RHSA-2026:99602
- https://access.redhat.com/errata/RHSA-2026:99603
- https://access.redhat.com/security/cve/CVE-2026-91151
- https://bugzilla.redhat.com/show_bug.cgi?id=2478404
- https://github.com/cockpit-project/cockpit/commit/4796b28be064a90e32262cec85be7839e6198e23
- https://github.com/cockpit-project/cockpit/releases/tag/372