CVE-2026-59851

Libssh: libssh: authentication bypass via missing gssapi principal check

Published Jul 21, 2026 CVSS 3.1 · 8.8 High EPSS < 1% KEV · Not listed
Description
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.

Analysis

AI-generated

Technical impact

The flaw in libssh results in the gssapi-keyex path not verifying whether the authenticated Kerberos principal is authorized for the requested local user. This omission allows an attacker who has established Kerberos authentication to log in as any local user, effectively bypassing the intended access controls. The weakness is an example of improper authorization (CWE‑863) and can enable unauthorized access on affected systems.

Affected Systems

The vulnerability affects Red Hat Enterprise Linux releases 8, 9 and 10, as well as Red Hat Hardened Images that ship with the libssh implementation. The specific fix or update is not detailed, so all consuming installations of libssh on these platforms are potentially vulnerable.

Risk and Exploitability

The CVSS score of 8.8 classifies this as high severity, but the EPSS score of less than 1% indicates that the probability of exploitation in the wild is currently low. The vulnerability is not listed in CISA’s KEV catalog, suggesting no publicly–known exploitation has been observed. Exploitation requires the server to have the GSSAPIKeyExchange feature enabled and the attacker must be able to authenticate via Kerberos, after which they can simply request a different local username to gain unauthorized access.

Remediation

Vendor Workaround

Disable GSSAPIKeyExchange.


OpenCVE Recommended Actions

  • Disable GSSAPIKeyExchange on all affected hosts
  • Monitor Red Hat errata for an update that patches libssh and apply the fix as soon as it becomes available
  • Enforce strict Kerberos principal to local user mapping, ensuring that only authorized principals are allowed to bind to local accounts

Generated by OpenCVE AI on July 30, 2026 at 17:25 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Redhat enterprise Linux Eus
Redhat enterprise Linux For Els
Redhat enterprise Linux For Ibm Z Systems
Redhat enterprise Linux For Ibm Z Systems Els
Redhat enterprise Linux For Ibm Z Systems Eus
Redhat enterprise Linux For Power Little Endian
Redhat enterprise Linux For Power Little Endian Els
Redhat enterprise Linux For Power Little Endian Eus
CPEs cpe:2.3:a:libssh:libssh:-:*:*:*:*:*:*:* cpe:2.3:a:libssh:libssh:0.12.0:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux:10.0:*:*:*:*:*:arm64:*
cpe:2.3:o:redhat:enterprise_linux:10.0:*:*:*:*:*:x86:*
cpe:2.3:o:redhat:enterprise_linux:10.2:*:*:*:*:*:arm64:*
cpe:2.3:o:redhat:enterprise_linux:10.2:*:*:*:*:*:x86:*
cpe:2.3:o:redhat:enterprise_linux_eus:10.2:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux_eus:10.2:*:*:*:*:*:arm64:*
cpe:2.3:o:redhat:enterprise_linux_for_els:10.2:*:*:*:*:*:arm64:*
cpe:2.3:o:redhat:enterprise_linux_for_els:10.2:*:*:*:*:*:x64:*
cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems:10.0_s390x:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems:10.2:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems_els:10.2:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux_for_ibm_z_systems_eus:10.2:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux_for_power_little_endian:10.0_ppc64le:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux_for_power_little_endian:10.2:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux_for_power_little_endian_els:10.2:*:*:*:*:*:*:*
cpe:2.3:o:redhat:enterprise_linux_for_power_little_endian_eus:10.2:*:*:*:*:*:*:*
Vendors & Products Redhat enterprise Linux Eus
Redhat enterprise Linux For Els
Redhat enterprise Linux For Ibm Z Systems
Redhat enterprise Linux For Ibm Z Systems Els
Redhat enterprise Linux For Ibm Z Systems Eus
Redhat enterprise Linux For Power Little Endian
Redhat enterprise Linux For Power Little Endian Els
Redhat enterprise Linux For Power Little Endian Eus
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
cpe:/a:redhat:enterprise_linux:8
cpe:/a:redhat:enterprise_linux:9
Type Values Removed Values Added
CPEs cpe:/o:redhat:enterprise_linux:10 cpe:/o:redhat:enterprise_linux:10.2
References
Type Values Removed Values Added
First Time appeared Libssh
Libssh libssh
Redhat hardened Images
Vendors & Products Libssh
Libssh libssh
Redhat hardened Images
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'total'}, 'version': '2.0.3'}

Type Values Removed Values Added
Description 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.
Title Libssh: libssh: authentication bypass via missing gssapi principal check
First Time appeared Redhat
Redhat enterprise Linux
Redhat hummingbird
Weaknesses CWE-863
CPEs cpe:/a:redhat:hummingbird:1
cpe:/o:redhat:enterprise_linux:10
cpe:/o:redhat:enterprise_linux:8
cpe:/o:redhat:enterprise_linux:9
Vendors & Products Redhat
Redhat enterprise Linux
Redhat hummingbird
References
Metrics cvssV3_1

{'score': 8.8, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:H/I:H/A:H'}