cve.bz

CVE-2026-91151 Cockpit: cockpit: local privilege escalation via insecure symlink handling in public key addition helper

7.3 highEPSS 0.2%Fix available

High (7.3) in red hat. EPSS 0.2% estimated probability of exploitation activity in the next 30 days.

On this page
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.

Severity

CVSS 3.1

7.3 high
CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
EPSS
0.2% estimated probability of exploitation activity in the next 30 days; 6th percentile. Scored 2026-11-13. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: PoC · Automatable: no · Technical impact: total, assessed 2026-11-13. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
CWE
CWE-59 Improper Link Resolution Before File Access (Link Following)
OWASP Top 10
A01:2025 Broken Access Control
Published
Modified
Assigned by
redhat (CNA)
NVD analysis
Awaiting analysis
Record from
the NVD, synced

Ask an AI about this CVE

Show the promptExplain CVE-2026-91151 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2026-91151?via=ask-ai-copy and https://cve.bz/cve/CVE-2026-91151?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2026-91151 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Badge for a README or a site

CVE-2026-91151

An image that stays current: it is drawn from the data each time it is fetched (a host that proxies images, as GitHub does, may show its copy for a while). Markdown:

[![CVE-2026-91151](https://cve.bz/cve/badge/CVE-2026-91151.svg)](https://cve.bz/cve/CVE-2026-91151)

HTML:

<a href="https://cve.bz/cve/CVE-2026-91151"><img src="https://cve.bz/cve/badge/CVE-2026-91151.svg" alt="CVE-2026-91151"></a>

Affected

  • red hat:red hat enterprise linux 10
  • red hat:red hat enterprise linux 10.2 extended update support
  • red hat:red hat enterprise linux 7
  • 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 openshift dev spaces

Versions

From the CNA's record in the CVE List.

Fixed in

ProductFixed in
Red Hat Enterprise Linux 100:366.1.1-1.el10_3
Red Hat Enterprise Linux 10.2 Extended Update Support0:356.4.1-1.el10_2
Red Hat Enterprise Linux 80:310.10.2-1.el8_10
Red Hat Enterprise Linux 90:366.1.1-1.el9_9
Red Hat Enterprise Linux 9.8 Extended Update Support0:356.4.1-1.el9_8

Fix and patched versions

  • Red Hat Red Hat Enterprise Linux 10: fixed in 0:366.1.1-1.el10_3
  • Red Hat Red Hat Enterprise Linux 10.2 Extended Update Support: fixed in 0:356.4.1-1.el10_2
  • Red Hat Red Hat Enterprise Linux 8: fixed in 0:310.10.2-1.el8_10
  • Red Hat Red Hat Enterprise Linux 9: fixed in 0:366.1.1-1.el9_9
  • Red Hat Red Hat Enterprise Linux 9.8 Extended Update Support: fixed in 0:356.4.1-1.el9_8
  • Debian, Red Hat, Rocky Linux: fixed package versions per release

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian12, 13cockpitno fix listedDEBIAN-CVE-2026-91151
Debian14cockpit372-1DEBIAN-CVE-2026-91151
Ubuntu18.04:LTS, 20.04:LTS, 22.04:LTS and 3 morecockpitno fix listedUBUNTU-CVE-2026-91151
Red Hatenterprise_linux:8::baseoscockpit, cockpit-ws, cockpit-doc and 4 more0:310.10.2-1.el8_10RHSA-2026:99603
Red Hatenterprise_linux:9::appstreamcockpit-storaged, cockpit-packagekit0:366.1.1-1.el9_9RHSA-2026:99602
Red Hatenterprise_linux:9::baseoscockpit, cockpit-ws, cockpit-doc and 5 more0:366.1.1-1.el9_9RHSA-2026:99602
Red Hatenterprise_linux:10.3cockpit, cockpit-ws, cockpit-doc and 7 more0:366.1.1-1.el10_3RHSA-2026:99600
Red Hatenterprise_linux_eus:10.2cockpit, cockpit-ws, cockpit-doc and 7 more0:356.4.1-1.el10_2RHSA-2026:99599
Red Hatrhel_eus:9.8::appstreamcockpit-storaged, cockpit-packagekit0:356.4.1-1.el9_8RHSA-2026:99601
Red Hatrhel_eus:9.8::baseoscockpit, cockpit-ws, cockpit-doc and 5 more0:356.4.1-1.el9_8RHSA-2026:99601
Rocky Linux8cockpit, cockpit-ws, cockpit-doc and 4 more0:310.10.2-1.el8_10RLSA-2026:99603
Rocky Linux9cockpit, cockpit-ws, cockpit-doc and 7 more0:366.1.1-1.el9_9.rocky.0.1RLSA-2026:99602

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; Rocky Linux's errata, BSD-3-Clause. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This Important flaw in Cockpit's `ssh-add-public-key.sh` helper allows a local authenticated user to escalate privileges. By manipulating symlinks within their home directory, an attacker can redirect privileged filesystem operations performed by the helper during the "Add public key" workflow in a privileged Cockpit session. This can lead to arbitrary ownership and mode changes on sensitive files, resulting in integrity, confidentiality, and availability impacts. Exploitation requires user interaction and a privileged execution context, preventing unauthenticated or remote attacks.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10cockpitAffected
Red Hat Enterprise Linux 7cockpitAffected
Red Hat Enterprise Linux 8cockpitAffected
Red Hat Enterprise Linux 9cockpitAffected
Red Hat OpenShift Dev Spacesdevspaces/udi-base-rhel10Affected
Red Hat OpenShift Dev Spacesdevspaces/udi-base-rhel9Affected
Red Hat OpenShift Dev Spacesdevspaces/udi-rhel9Affected

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2026-91151.

Attack patterns (CAPEC)

  • CAPEC-17 Using Malicious Files Likelihood: High · Severity: Very High
  • CAPEC-35 Leverage Executable Code in Non-Executable Files Likelihood: High · Severity: Very High
  • CAPEC-76 Manipulating Web Input to File System Calls Likelihood: High · Severity: Very High
  • CAPEC-132 Symlink Attack Likelihood: Low · Severity: High

The attack patterns MITRE's CAPEC relates to this record's weaknesses, as MITRE names them. Credits.

References

Check your stackJSON