Red Hat Enterprise Linux 10
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.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
Fixed in 0:366.1.1-1.el10_3
Fixed in 0:356.4.1-1.el10_2
Fixed in 0:310.10.2-1.el8_10
Fixed in 0:366.1.1-1.el9_9
Fixed in 0:366.1.1-1.el9_9
Fixed in 0:356.4.1-1.el9_8
Mitigation
Upgrade Red Hat Enterprise Linux 10 to 0:366.1.1-1.el10_3 or later.
Upgrade Red Hat Enterprise Linux 10.2 Extended Update Support to 0:356.4.1-1.el10_2 or later.
Upgrade Red Hat Enterprise Linux 8 to 0:310.10.2-1.el8_10 or later.
Upgrade Red Hat Enterprise Linux 9 to 0:366.1.1-1.el9_9 or later.
Upgrade Red Hat Enterprise Linux 9 to 0:366.1.1-1.el9_9 or later.
Upgrade Red Hat Enterprise Linux 9.8 Extended Update Support to 0:356.4.1-1.el9_8 or later.
References
- Vendor advisory access.redhat.com/errata/RHSA-2026:99599
- Vendor advisory access.redhat.com/errata/RHSA-2026:99600
- Vendor advisory access.redhat.com/errata/RHSA-2026:99601
4 more
- Vendor advisory access.redhat.com/errata/RHSA-2026:99602
- Vendor advisory access.redhat.com/errata/RHSA-2026:99603
- Patch github.com/cockpit-project/cockpit/commit/4796…
- Release notes github.com/cockpit-project/cockpit/releases/ta…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.