Skip to main content
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Authenticate as local low-privileged user
  2. Delivery
    Plant symlink in controlled .ssh/authorized_keys path
  3. Exploit
    Admin triggers privileged ssh-add-public-key helper
  4. Execution
    chown dereferences attacker symlink
  5. Persist
    Ownership/mode of target file changed
  6. Impact
    Escalate 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 .ssh directory or authorized_keys path; and (2) an administrator invoking Cockpit's privileged SSH-key-add workflow, which runs ssh-add-public-key.sh with elevated privileges and performs chown on those paths. Limiting factors: no network vector (AV:L, local access only), a prerequisite low-privilege account (PR:L), and a required privileged/administrative action to trigger the dereference (UI:R) - the attacker cannot complete the escalation unaided, which constrains real-world exploitation to environments where Cockpit key management is actually used.

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 .ssh directory or authorized_keys path with a symlink pointing to a sensitive system file. When an administrator later uses Cockpit to add an SSH public key for that account, the privileged ssh-add-public-key.sh helper runs chown (without --no-dereference) and follows the symlink, changing ownership/mode of the attacker-chosen target and enabling local privilege escalation. No public exploit code was identified; the privileged helper invocation (UI:R) is required to trigger the dereference.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.2% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – 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

Vendor (redhat) PRIMARY 7.3 HIGH
AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
vuln.today AI 7.3 HIGH

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.

3.1 AV:L/AC:L/PR:L/UI:R/S:U/C:H/I:H/A:H
4.0 AV:L/AC:L/AT:N/PR:L/UI:A/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N
Red Hat 7.3 HIGH

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

Attack Vector
Local
Attack Complexity
Low
Privileges Required
Low
User Interaction
Required
Scope
Unchanged
Confidentiality
High
Integrity
High
Availability
High

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

Why It Matters

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.

Business Impact: High
Compensating Controls

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

EPSS Score
0.2%
Top 95% exploitable
Prevalence
Medium
Cockpit is a common RHEL web management console but not enabled everywhere
Data Quality
6 sources
Confidence: High

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.

SignalValue
Severity HIGH
CISA KEV No
Public POC No
EPSS 0.2%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact
High

Priority Score

36
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +36
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

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

cpe:2.3:a:red_hat:red_hat_enterprise_linux_10:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_enterprise_linux_7:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_enterprise_linux_8:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_enterprise_linux_9:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_openshift_dev_spaces:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_openshift_dev_spaces:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_openshift_dev_spaces:*:*:*:*:*:*:*:*
CVE-2020-35847 CRITICAL POC
9.8 Dec 30

Agentejo Cockpit before 0.11.2 allows NoSQL injection via the Controller/Auth.php resetpassword function. Rated critical

CVE-2020-35846 CRITICAL POC
9.8 Dec 30

Agentejo Cockpit before 0.11.2 allows NoSQL injection via the Controller/Auth.php check function. Rated critical severit

CVE-2022-2713 CRITICAL POC
9.8 Aug 08

Insufficient Session Expiration in GitHub repository cockpit-hq/cockpit prior to 2.2.0. Rated critical severity (CVSS 9.

CVE-2020-35848 CRITICAL POC
9.8 Dec 30

Agentejo Cockpit before 0.11.2 allows NoSQL injection via the Controller/Auth.php newpassword function. Rated critical s

CVE-2018-15540 CRITICAL POC
9.8 Oct 15

Agentejo Cockpit performs actions on files without appropriate validation and therefore allows an attacker to traverse t

CVE-2018-9302 CRITICAL POC
9.1 May 02

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

CVE-2023-4195 HIGH POC
8.8 Aug 06

PHP Remote File Inclusion in GitHub repository cockpit-hq/cockpit prior to 2.6.3. Rated high severity (CVSS 8.8), this v

CVE-2023-37650 HIGH POC
8.8 Jul 20

A Cross-Site Request Forgery (CSRF) in the Admin portal of Cockpit CMS v2.5.2 allows attackers to execute arbitrary Admi

CVE-2023-1313 HIGH POC
8.8 Mar 10

Unrestricted Upload of File with Dangerous Type in GitHub repository cockpit-hq/cockpit prior to 2.4.1. Rated high sever

CVE-2023-0759 HIGH POC
8.8 Feb 09

Privilege Chaining in GitHub repository cockpit-hq/cockpit prior to 2.3.8. Rated high severity (CVSS 8.8), this vulnerab

CVE-2022-2818 HIGH POC
8.8 Aug 15

Improper Removal of Sensitive Information Before Storage or Transfer in GitHub repository cockpit-hq/cockpit prior to 2.

CVE-2026-34965 HIGH POC
8.7 Apr 29

Authenticated remote code execution in Cockpit CMS lets attackers holding collection-management privileges inject arbitr

Vendor StatusVendor

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy