Libssh Fixes Authentication Bypass and Multiple High-Impact Flaws
Vulnerability Disclosure · 2 sources · Updated 3mo ago · First seen Jul 21, 2026

Libssh released versions 0.12.1 and 0.11.5 to fix multiple security issues, including CVE-2026-59851, an authentication bypass in deployments where GSSAPIKeyExchange is enabled on servers. The flaw allows an authenticated client to log in as an arbitrary local user because the gssapi-keyex path fails to verify whether the authenticated Kerberos principal is authorized for the requested account. The vulnerability is tracked as CWE-863 and carries a CVSS v3.1 score reflecting high impact to confidentiality, integrity, and availability.
The 0.12.1 release addresses 11 CVEs, while 0.11.5 backports fixes for 8 CVEs affecting the 0.11 branch. In addition to the authentication bypass, the updates remediate a stack buffer overflow, information disclosure bugs, several denial-of-service conditions, a use-after-free issue, and an integrity downgrade flaw, alongside hardening changes such as zero-initializing ssh_string objects and validating peer public keys during Diffie-Hellman key exchange. Red Hat reported RHEL 8 and RHEL 9 as unaffected by CVE-2026-59851, listed RHEL 10 status as unknown, and marked Red Hat Hardened Images as affected for libssh and libssh2 package entries.


