Skip to main content

libssh EUVDEUVD-2026-46268

| CVE-2026-59851 HIGH
Incorrect Authorization (CWE-863)
2026-07-21 redhat GHSA-x5cr-v39m-53gw
8.8
CVSS 3.1 · Vendor: redhat
View

Attack ChainAIDerived

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

  1. Access
    Obtain valid Kerberos principal in realm
  2. Delivery
    Connect to libssh server with GSSAPIKeyExchange enabled
  3. Exploit
    Request login as arbitrary target user via gssapi-keyex
  4. Execution
    Server skips principal-to-user authorization check
  5. Persist
    Authenticate as impersonated privileged account
  6. Impact
    Full host compromise

Vulnerability Assessment

Weakness
CWE
OWASP Top 10:2025
A01:2025 - Broken Access Control
ASVS 5.0
V8 - Authorization Authorization logic validation
MITRE ATT&CK

1 technique across 1 tactic: Privilege Escalation

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

Exploitation requires the target SSH server to be built on libssh and explicitly configured with GSSAPIKeyExchange enabled (the vulnerable gssapi-keyex authentication path), which is not the default configuration. The attacker must already possess a valid, authenticated Kerberos principal in the server's realm (CVSS PR:L confirms authentication is required), but that principal does not need any authorized relationship to the account being impersonated. No user interaction is needed (UI:N) and the attack is fully network-based (AV:N). Limiting factors that reduce realistic risk: the non-default GSSAPIKeyExchange setting, the prerequisite of holding a legitimate Kerberos credential, and the requirement that a Kerberos/GSSAPI environment be deployed at all - hosts without GSSAPI key exchange are not exposed.

Impact

The signals point to a genuine, actionable priority in Kerberos/GSSAPI-enabled environments, but with an important scoping caveat. The CVSS 3.1 vector (AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H, 8.8) indicates a network-reachable, low-complexity attack that nonetheless requires prior privileges (PR:L) - here, possession of a valid Kerberos principal - so this is an authenticated attack, not an unauthenticated one. No EPSS score, SSVC decision, KEV entry, or POC was provided in the input, so exploitation probability cannot be quantified and no public exploit is identified at time of analysis. The critical limiting factor is configuration: the vulnerable gssapi-keyex path is only active when GSSAPIKeyExchange is enabled, which is not the default on most deployments. Net assessment: high impact (arbitrary user login, full C/I/A on the host) and low attack complexity, but gated behind both valid Kerberos authentication and a non-default server configuration, which meaningfully narrows the exposed population relative to the raw 8.8 score.

Exploit ScenarioDerived

An attacker who holds any valid Kerberos principal in the realm (for example a low-privileged domain user or a compromised service account) connects over the network to a libssh-based SSH server that has GSSAPIKeyExchange enabled and completes gssapi-keyex authentication while requesting a different, higher-value local username such as root or an application service account. Because the server never checks that their principal is authorized for that account, the login succeeds and they obtain that user's shell and privileges. No public exploit is identified at time of analysis, and the low attack complexity (AC:L) means the abuse requires only a standard SSH client interaction once a valid credential is held.

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

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

Alert me

AnalysisAIv1 – Jul 21, 2026

Privilege escalation via authentication bypass in libssh affects servers that enable GSSAPIKeyExchange, where the gssapi-keyex authentication path fails to confirm that the authenticated Kerberos principal is actually authorized for the local user account being requested. An already-authenticated client holding any valid Kerberos principal in the realm can therefore log in as an arbitrary user, including potentially privileged accounts, on Red Hat Enterprise Linux 8, 9, and 10 and Red Hat Hardened Images. No public exploit is identified at time of analysis and the issue is not listed in CISA KEV, but the CVSS of 8.8 reflects a straightforward, low-complexity abuse once a valid Kerberos credential is held.

RemediationAI

Apply the Red Hat libssh security update for your RHEL 8, 9, or 10 release or Red Hat Hardened Image; exact fixed version numbers are not included in the provided data, so obtain them from the Red Hat advisory at https://access.redhat.com/security/cve/CVE-2026-59851 and the Bugzilla tracker at https://bugzilla.redhat.com/show_bug.cgi?id=2498184 rather than assuming a version. As the most effective compensating control until patched, disable GSSAPIKeyExchange on affected SSH servers (set GSSAPIKeyExchange no), which fully removes the vulnerable gssapi-keyex code path; the trade-off is loss of GSSAPI/Kerberos key-exchange single sign-on, so environments relying on it for passwordless Kerberos SSH will need to fall back to gssapi-with-mic or standard authentication. Where GSSAPI must remain, restrict network reachability of the SSH service to trusted management networks and tightly control which Kerberos principals are provisioned so the pool of potential abusers is minimized. Patch status: released patched version not independently confirmed from the provided references.

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

libssh is a widely used C library implementing the SSHv2 protocol for both client and server roles (distinct from the unrelated libssh2). The flaw lives in its GSSAPI/Kerberos key-exchange authentication method, gssapi-keyex, which is only reachable when the server is configured with GSSAPIKeyExchange enabled. Per CWE-863 (Incorrect Authorization), the code performs authentication (proving who the Kerberos principal is) but omits the authorization step that binds that principal to the specific local username requested in the SSH login. The missing check is analogous to the k5login/GSSAPI-to-local-user mapping that must gate which principals may assume which accounts; without it, any valid principal is accepted for any requested user. The affected products per CPE are Red Hat Enterprise Linux 8, 9, and 10 and Red Hat Hardened Images, all shipping the vulnerable libssh build.

Know when Red Hat Enterprise Linux 10 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 8.8 HIGH
AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H
vuln.today AI 8.8 HIGH

Network-reachable and low-complexity once authenticated (AV:N/AC:L); a valid Kerberos principal is required (PR:L); logging in as arbitrary users yields full C:H/I:H/A:H on the host with no scope change.

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

Primary rating from Vendor (redhat).

CVSS VectorVendor: redhat

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

DescriptionCVE.org

A flaw was found in libssh. On servers with GSSAPIKeyExchange enabled, the gssapi-keyex path does not verify whether the authenticated Kerberos principal is authorized for the requested local user, allowing authenticated clients to log in as arbitrary users.

Executive ViewAI

Why It Matters

libssh in Red Hat Enterprise Linux 8, 9, and 10 contains a privilege escalation vulnerability (CVE-2026-59851, CVSS 8.8) affecting Kerberos-authenticated SSH access. Any user holding valid Kerberos credentials in the organization's realm can escalate to arbitrary local accounts including root by exploiting a missing authorization check in the gssapi-keyex authentication path. Organizations running RHEL with Kerberos-based SSH access face immediate risk of administrative account compromise and unauthorized access to privileged systems.

Business Impact: High
Compensating Controls

Disable GSSAPIKeyExchange in SSH daemon configuration if Kerberos authentication is not required. Implement host-based access controls mapping specific Kerberos principals to individual local accounts and restrict SSH source networks to designated administrative subnets. Deploy SSH authentication logging with alerting on failed authentication attempts and anomalous principal-to-account mappings. Enforce strong password policies and multi-factor authentication on all Kerberos service and administrative accounts. Conduct quarterly access reviews to ensure only necessary personnel hold Kerberos credentials with SSH privileges.

Threat Intelligence Overview

EPSS Score
0.3%
Top 83% exploitable
Prevalence
High
libssh is a widely deployed SSH library shipped across all supported RHEL releases
Data Quality
5 sources
Confidence: Medium

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.3%
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
Open
Automatable· derived
No
Human Impact
High

Priority Score

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

Attack Technique

Authentication bypass attacks exploit flaws in the verification mechanisms that control access to systems and applications.

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_8:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_enterprise_linux_9:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_hardened_images:*:*:*:*:*:*:*:*
cpe:2.3:a:red_hat:red_hat_hardened_images:*:*:*:*:*:*:*:*
CVE-2026-18663 MEDIUM
5.9 Aug 12

Heap corruption via double-free in 389-ds-base's LDAP control parsing allows an unauthenticated remote attacker to crash

CVE-2026-4631 CRITICAL POC
9.8 Apr 07

Remote code execution in Cockpit's web interface allows unauthenticated attackers to execute arbitrary commands on the h

CVE-2026-4480 CRITICAL POC
9.0 May 26

Remote code execution in Samba's printing subsystem allows remote attackers to inject arbitrary shell commands via craft

CVE-2026-101258 HIGH POC
7.8 Oct 06

Ghostscript can execute arbitrary shell commands with the privileges of its process when it renders a crafted PostScript

CVE-2026-96889 HIGH POC
7.8 Sep 23

Use-after-free in librsvg during rendering of crafted SVG documents with nested XInclude directives and duplicate entity

CVE-2026-4775 HIGH POC
7.8 Mar 24

A signed integer overflow vulnerability exists in the libtiff library's putcontig8bitYCbCr44tile function that leads to

CVE-2026-114406 MEDIUM POC
6.8 Oct 21

The system CA trust store shipped in Red Hat's ca-certificates RPM packages includes eMudhra root authorities that signe

CVE-2026-18922 CRITICAL
9.8 Sep 07

Authentication bypass in 389 Directory Server (shipped as Red Hat Directory Server 11-13 and within RHEL 6-10) lets remo

CVE-2026-14544 CRITICAL
9.8 Jul 03

Remote code execution and privilege escalation in HPLIP (HP Linux Imaging and Printing) affects the hpcups print filter

CVE-2026-76578 CRITICAL
9.8 Sep 07

Unauthenticated privilege escalation in FreeIPA (Red Hat Identity Management) allows a remote attacker to gain genuine a

CVE-2026-102560 CRITICAL
9.8 Sep 29

A heap buffer overflow exists in libsoup's WebSocket permessage-deflate compression path: when a very large outbound mes

CVE-2026-5121 HIGH
7.5 Mar 30

Remote code execution in libarchive on 32-bit systems allows unauthenticated attackers to execute arbitrary code via spe

Vendor StatusVendor

SUSE

Severity: Important
Product Status
SUSE Linux Enterprise Desktop 15 SP7 Affected
SUSE Linux Enterprise High Performance Computing 15 SP7 Affected
SUSE Linux Enterprise Micro 5.3 Affected
SUSE Linux Enterprise Micro 5.4 Affected
SUSE Linux Enterprise Micro 5.5 Affected

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