Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessAuthenticate as local low-privileged user
-
DeliveryPlant symlink in controlled .ssh/authorized_keys path
-
ExploitAdmin triggers privileged ssh-add-public-key helper
-
Executionchown dereferences attacker symlink
-
PersistOwnership/mode of target file changed
-
ImpactEscalate to root privileges
Vulnerability Assessment
| Weakness |
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V5 - File Handling Symlink resolution safety
|
| Exploitation Conditions | Exploitation requires: (1) a local authenticated account whose home directory is attacker-controlled, so the attacker can place a malicious symlink at the |
| Impact | This is a locally-exploitable privilege escalation (CWE-59 symlink dereference) in Cockpit's ssh-add-public-key.sh helper, rated CVSS 7.3 (CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H). The signals are internally consistent: AV:L confirms local-only access, PR:L confirms an authenticated low-privileged user is needed, and UI:R reflects that a separate privileged action (an administrator adding an SSH key via Cockpit, invoking the helper with elevated privileges) must occur for the attacker-planted symlink to be dereferenced. C:H/I:H/A:H aligns with arbitrary chown/chmod of attacker-chosen files leading to root-level compromise. There is no EPSS score in the input, no CISA KEV listing, and no exploit code among the references (only the Red Hat advisory, Bugzilla, the fix commit, and the release tag), so there is no public exploit identified at time of analysis. The vuln.today decision label is this_week, not act_now/emergency - appropriate for a high-impact but local, interaction-gated, no-known-exploitation flaw. Net: a genuine privilege-escalation issue worth patching promptly in managed RHEL fleets, but not an internet-facing or mass-exploitable emergency; the attacker must already have a local account and depends on an administrator triggering the privileged key-add operation. |
| Exploit ScenarioDerived | A local authenticated user who owns their home directory replaces the |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Nov 11, 2026
Local privilege escalation in Cockpit's SSH key management helper (ssh-add-public-key.sh) lets a user who controls a target account's home directory plant a symlink at the .ssh directory or authorized_keys path so that a privileged chown follows the link and rewrites ownership and mode bits on attacker-chosen files. The flaw is rated CVSS 7.3 (CVSS:3.1/AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H): the attacker needs a local low-privilege account (PR:L) and must wait for an administrator to run Cockpit's privileged SSH-key-add workflow (UI:R), so the escalation cannot be completed unaided. Affected Cockpit builds ship in Red Hat Enterprise Linux 7, 8, 9 and 10 and in Red Hat OpenShift Dev Spaces; there is no CISA KEV entry and no public exploit identified at time of analysis, and Red Hat rates the issue for remediation this week. Fixed in Cockpit 372, which replaces chown with chown --no-dereference and runs the helper through runuser -u <user> -- /bin/sh -c when the superuser bridge is available.
RemediationAI
Upgrade Cockpit to 372 or later, which contains commit 4796b28be064a90e32262cec85be7839e6198e23 (https://github.com/cockpit-project/cockpit/commit/4796b28be064a90e32262cec85be7839e6198e23, release at https://github.com/cockpit-project/cockpit/releases/tag/372); on Red Hat Enterprise Linux 7, 8, 9 and 10 and on OpenShift Dev Spaces, apply the cockpit package updates referenced in the Red Hat advisory https://access.redhat.com/security/cve/CVE-2026-91151 and the Bugzilla record https://bugzilla.redhat.com/show_bug.cgi?id=2478404. The patch changes the helper to use chown --no-dereference and to spawn it through runuser -u <user_name> -- /bin/sh -c when the superuser bridge is available, so the script no longer runs as root against user-controlled paths. Until patched packages are deployed, limit exposure by restricting use of Cockpit's Users page and SSH-key-add workflow to trusted administrators and by avoiding key provisioning for accounts whose home directories are writable by untrusted local users; both controls reduce the window in which a planted symlink can be dereferenced by a privileged chown, but they do not eliminate the flaw and updating remains the complete fix.
Affects your stack
Find out whether the stacks and servers you run are on an affected version.
Checking this CVE against your own stacks and servers is part of the Basic plan and up.
Technical ContextAI · show details
The bug is a classic CWE-59 link-following (symlink dereference) flaw in the privileged path of Cockpit's user-management UI. When an administrator adds an SSH public key through the Cockpit web console, the browser-side code in pkg/users/authorized-keys.js previously invoked the shell helper pkg/users/ssh-add-public-key.sh through the superuser bridge (option superuser: "try"), so the script ran with elevated privileges against paths derived from the target user's home directory. The script called chown on the home directory and on authorized_keys; because plain chown follows symbolic links, a local user who owns or otherwise controls the contents of that home directory could pre-place a symlink at the .ssh or authorized_keys path and cause the root-level chown to operate on the symlink target instead, altering ownership and permissions of arbitrary files and enabling local privilege escalation. The trigger therefore depends on two conditions stated in the assessment: attacker control of a target account's home directory, and an administrator invoking the privileged key-add workflow. No network vector applies (AV:L) and the attacker cannot complete the escalation without the administrator's action (UI:R). The upstream fix commit 4796b28be064a90e32262cec85be7839e6198e23 hardens both sides: chown calls gain --no-dereference so symlinks are no longer followed, and the JS spawns the helper via runuser -u <user_name> -- /bin/sh -c when superuser is allowed so the script runs as the target user rather than as root. The CPE data ties affected code to Red Hat Enterprise Linux 7, 8, 9 and 10 and to Red Hat OpenShift Dev Spaces.
Know when Cockpit gets its next vulnerability
- Watch products and get an email when something new is published
- Check this CVE against your own stack and servers
- Exploit and PoC references, threat intelligence from 22 sources
No credit card · 7-day full trial
Severity by source
AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
Local account controlling the home directory gives PR:L and AV:L; a privileged admin key-add action must trigger the chown (UI:R); arbitrary ownership change yields C:H/I:H/A:H.
Primary rating from Vendor (redhat).
CVSS VectorVendor: redhat
DescriptionCVE.org
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.
Executive ViewAI
A high-severity local privilege escalation flaw in Cockpit's SSH key management helper affects Red Hat Enterprise Linux 7, 8, 9, and 10, as well as OpenShift Dev Spaces. A low-privileged local user who controls a target account's home directory can plant symlinks so that a privileged administrative SSH key workflow rewrites ownership and permissions on attacker-chosen files, potentially escalating privileges or tampering with sensitive system files. Leadership should care because administrators and developers relying on Cockpit-based key management across the RHEL estate are exposed, and exploitation requires no public tooling but only routine administrative action by a trusted operator.
No vendor-released patch identified at time of analysis. Interim mitigations include restricting Cockpit access to trusted administrators and management networks, suspending use of Cockpit's privileged SSH-key-add workflow for accounts whose home directories are user-controlled, and monitoring for unexpected chown or permission changes on .ssh paths and sensitive files.
Threat Intelligence Overview
How this decision was reached
The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Privilege escalation occurs when an attacker leverages flaws in access control mechanisms to gain permissions beyond what they were originally granted.
Affected Products (CPE)CVE.org
Agentejo Cockpit before 0.11.2 allows NoSQL injection via the Controller/Auth.php resetpassword function. Rated critical
Agentejo Cockpit before 0.11.2 allows NoSQL injection via the Controller/Auth.php check function. Rated critical severit
Insufficient Session Expiration in GitHub repository cockpit-hq/cockpit prior to 2.2.0. Rated critical severity (CVSS 9.
Agentejo Cockpit before 0.11.2 allows NoSQL injection via the Controller/Auth.php newpassword function. Rated critical s
Agentejo Cockpit performs actions on files without appropriate validation and therefore allows an attacker to traverse t
SSRF (Server Side Request Forgery) in /assets/lib/fuc.js.php in Cockpit 0.4.4 through 0.5.5 allows remote attackers to r
PHP Remote File Inclusion in GitHub repository cockpit-hq/cockpit prior to 2.6.3. Rated high severity (CVSS 8.8), this v
A Cross-Site Request Forgery (CSRF) in the Admin portal of Cockpit CMS v2.5.2 allows attackers to execute arbitrary Admi
Unrestricted Upload of File with Dangerous Type in GitHub repository cockpit-hq/cockpit prior to 2.4.1. Rated high sever
Privilege Chaining in GitHub repository cockpit-hq/cockpit prior to 2.3.8. Rated high severity (CVSS 8.8), this vulnerab
Improper Removal of Sensitive Information Before Storage or Transfer in GitHub repository cockpit-hq/cockpit prior to 2.
Authenticated remote code execution in Cockpit CMS lets attackers holding collection-management privileges inject arbitr
EUVD-2026-123794
GHSA-7vqx-f59g-6xhv
NVD
CVE.org
EPSS
VulDB
Exploit-DB