Skip to main content
Mallory
← Back to News
identity-authentication-vulnerabilityopen-source-dependency-vulnerabilitywidely-deployed-product-advisory

Libssh Fixes Authentication Bypass and Multiple High-Impact Flaws

Vulnerability Disclosure · 2 sources · Updated 4mo ago · First seen Jul 21, 2026

Libssh Fixes Authentication Bypass and Multiple High-Impact Flaws

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
Do you run this?See affected versions and whether adversaries are exploiting it.
Check your exposure
Event timeline

How this story unfolded

Events from the most recent confirmed update back to the earliest known activity.

1 event · Jul 21, 2026
  1. Jul 21, 20264mo ago

    libssh releases versions 0.12.1 and 0.11.5 with security fixes

    On July 21, 2026, libssh announced security releases 0.12.1 and 0.11.5 to address multiple vulnerabilities and security-relevant bugs. Version 0.12.1 fixes 11 CVEs and version 0.11.5 backports fixes for 8 CVEs affecting the 0.11 branch, including an authentication bypass issue tracked as CVE-2026-59851.

    oss-sec: libssh 0.12.1 and 0.11.5 security releases
Mallory platform

See the full picture, correlated to your attack surface.

This page covers what’s public. Mallory adds the parts that aren’t: which of your assets are affected, which threat actors are using it right now, and what to deploy next.

Exposure mappingMap indicators from this story to your assets and identify affected systems in minutes.
Threat actor evidenceEvery observed campaign, victim, and pivot linked to actors named in this story.
Associated malwareMalware, exploits, and IOCs connected to the activity described here.
Detection signaturesYARA, Sigma, and Snort rules deployed to your SIEM as soon as they’re published.
Scheduled alertsGet matching new stories delivered to your team as they break, not the next morning.
AI threadsAsk questions about this story and take action on the answers.