Cockpit: cockpit: local privilege escalation via insecure symlink handling in public key addition helper (Red Hat Red Hat Enterprise Linux 10)

CVE-2026-91151
HIGH 7.3

At a glance

Source
NVD
EPSS
EPSS 0.32 % · percentile 26 ()
State
PUBLISHED
Published
Updated
Assigner
redhat
Affected products
Red Hat · Red Hat Enterprise Linux 10
Red Hat · Red Hat Enterprise Linux 10.2 Extended Update Support
Red Hat · Red Hat Enterprise Linux 8
Red Hat · Red Hat Enterprise Linux 9
Red Hat · Red Hat Enterprise Linux 9.8 Extended Update Support
Red Hat · Red Hat Enterprise Linux 7
Red Hat · Red Hat OpenShift Dev Spaces
NVD status
Awaiting Analysis

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.

Weaknesses (CWE)

  • CWE-59 — Improper Link Resolution Before File Access

Credits

  • This issue was discovered by Found by AISLE in partnership with Red Hat.

References

Scores

VersionScoreVectorScored by
CVSS 3.1HIGH 7.3CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:Hredhat
CVSS 3.1HIGH 7.3CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:HNVD · secalert@redhat.com (Secondary)

European references

Affected products

ProductAffected versions
Red Hat · Red Hat Enterprise Linux 10
cockpit
unaffected : ≥ 0:366.1.1-1.el10_3 < *
Other versions : affected
Red Hat · Red Hat Enterprise Linux 10.2 Extended Update Support
cockpit
unaffected : ≥ 0:356.4.1-1.el10_2 < *
Other versions : affected
Red Hat · Red Hat Enterprise Linux 8
cockpit
unaffected : ≥ 0:310.10.2-1.el8_10 < *
Other versions : affected
Red Hat · Red Hat Enterprise Linux 9
cockpit
unaffected : ≥ 0:366.1.1-1.el9_9 < *
Other versions : affected
Red Hat · Red Hat Enterprise Linux 9
cockpit
unaffected : ≥ 0:366.1.1-1.el9_9 < *
Other versions : affected
Red Hat · Red Hat Enterprise Linux 9.8 Extended Update Support
cockpit
unaffected : ≥ 0:356.4.1-1.el9_8 < *
Other versions : affected
Red Hat · Red Hat Enterprise Linux 7
cockpit
Other versions : affected
Red Hat · Red Hat OpenShift Dev Spaces
devspaces/udi-base-rhel10
Other versions : affected
Red Hat · Red Hat OpenShift Dev Spaces
devspaces/udi-base-rhel9
Other versions : affected
Red Hat · Red Hat OpenShift Dev Spaces
devspaces/udi-rhel9
Other versions : affected

Sources

SourceLicence
CVE List (CVEProject cvelistV5)CVE Program Terms of Use
EPSS (FIRST.org)FIRST — attribution requested
ENISA EUVDENISA — reproduction authorised, source acknowledged
NVD (NIST) via fkie-cad/nvd-json-data-feedsPublic domain — this product uses data from the NVD API but is not endorsed or certified by the NVD