Libssh Fixes Authentication Bypass and Multiple High-Impact Flaws
Vulnerability Disclosure · 2 sources · Updated 4mo 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.
Why it matters
Impact assessment
Libssh servers are affected where GSSAPIKeyExchange is enabled, with the highest-risk issue being CVE-2026-59851, an authentication bypass that lets an authenticated client log in as an arbitrary local user. This creates direct risk of unauthorized access, privilege misuse, data exposure, service disruption, and follow-on compromise on systems that rely on libssh for SSH or SFTP services.
The exposure is broader than a single flaw because libssh 0.12.1 fixes 11 CVEs and libssh 0.11.5 backports fixes for 8 CVEs, covering memory safety issues, information disclosure, denial of service, and integrity downgrade conditions. No confirmed in-the-wild exploitation is stated in the references, but the authentication bypass is network-reachable, low complexity, and requires only low privileges, making it operationally urgent for exposed deployments.
Affected populations and products
- Organizations running libssh-based SSH or SFTP server functionality
- Deployments with GSSAPIKeyExchange enabled on servers are specifically exposed to CVE-2026-59851
- libssh 0.12 branch users should move to 0.12.1
- libssh 0.11 branch users should move to 0.11.5 for the backported fixes available on that branch
- Red Hat status in the references:
- RHEL 8: unaffected for CVE-2026-59851
- RHEL 9: unaffected for CVE-2026-59851
- RHEL 10: status unknown for libssh
- Red Hat Hardened Images: affected for libssh and libssh2 package entries
Severity and scope
- CVE-2026-59851 has high impact to confidentiality, integrity, and availability
- Scope is potentially widespread across environments embedding libssh, but practical exposure depends on server-side configuration, especially GSSAPIKeyExchange
- Additional fixed flaws can enable denial of service, information disclosure, memory corruption, and cryptographic integrity weakening
Known exploitation status
- No explicit reports of exploitation in the wild are provided in the references


