Improper access control in libssh - CVE-2026-59851

 

Improper access control in libssh - CVE-2026-59851

Published: July 27, 2026


Vulnerability identifier: #VU139523
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:N/PR:L/UI:N/VC:H/VI:H/VA:H/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2026-59851
CWE-ID: CWE-284
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: libssh
Affected software:
libssh

Detailed vulnerability description

The vulnerability allows a remote user to impersonate any local user on the server.

The vulnerability exists due to improper access control in the libssh server gssapi-keyex authentication handling when processing gssapi-keyex authentication requests. A remote user can authenticate with valid Kerberos credentials and request an arbitrary username to impersonate any local user on the server.

Only SSH servers built on libssh with GSSAPIKeyExchange enabled are vulnerable.


How to mitigate CVE-2026-59851

Install security update from vendor's website.

Sources