Skip to content
OpenAdvisories
High USN-8799-1 4 CVEs

libssh2 vulnerabilities

Published Sep 22, 2026 · Updated Sep 23, 2026

Summary

It was discovered that libssh2 incorrectly handled certain publickey
subsystem attributes. A remote attacker controlling a malicious SSH server
could use this issue to cause a denial of service or possibly execute
arbitrary code.
(CVE-2026-58050)

It was discovered that libssh2 did not properly initialize publickey list
entries before parsing. A remote attacker controlling a malicious SSH
server could use this issue to cause a denial of service or possibly
execute arbitrary code. (CVE-2026-58051)

It was discovered that libssh2 incorrectly handled certain SFTP server
responses. A remote attacker controlling an SSH server could use this issue
to cause libssh2 to crash or possibly execute arbitrary code.
(CVE-2026-66032)

It was discovered that libssh2 did not properly check bounds in certain
publickey subsystem responses. A remote attacker controlling a malicious
SSH server could use this issue to cause a denial of service or possibly
execute arbitrary code.. (CVE-2026-66034)

Fixed packages 5

ReleasePackageFixed in
Ubuntu · 22.04 LTS 22.04:LTS libssh2 1.10.0-3ubuntu0.1
Ubuntu · Pro 14.04 LTS Pro:14.04:LTS libssh2 1.4.3-2ubuntu0.2+esm4
Ubuntu · Pro 16.04 LTS Pro:16.04:LTS libssh2 1.5.0-2ubuntu0.1+esm3
Ubuntu · Pro 18.04 LTS Pro:18.04:LTS libssh2 1.8.0-1ubuntu0.1+esm1
Ubuntu · Pro 20.04 LTS Pro:20.04:LTS libssh2 1.8.0-2.1ubuntu0.1+esm1

Vulnerabilities 4

  • High 8.8

    libssh2 Double-Free Heap Corruption via sftp_open()

    libssh2 through 1.11.1, fixed in commit 5e47761, contains a double-free vulnerability in the sftp_open() function in src/sftp.c that allows a malicious SSH server to corrupt the heap of any authenticated client opening an SFTP session. When a server responds …

  • High 7.5

    libssh2 Heap Out-of-Bounds Read via publickey subsystem

    libssh2 through 1.11.1, fixed in commit a13bb6c, contains a missing bounds check vulnerability that allows a malicious SSH server to trigger an arbitrary-length heap out-of-bounds read and a free of an uninitialized pointer via the publickey subsystem. In lib…

  • High 7.0

    libssh2 - Integer Overflow in publickey Subsystem Attribute Allocation

    libssh2 through 1.11.1 reads an attacker-controlled 32-bit attribute count from a publickey-subsystem response and uses it in the allocation num_attrs * sizeof(libssh2_publickey_attribute) without bounds checking, so on 32-bit platforms the multiplication ove…

  • Medium 6.5

    libssh2 - Free of Uninitialized Pointer in publickey List Cleanup

    libssh2 through 1.11.1 grows its publickey list with SSH2_REALLOC but does not zero-initialize new entries before parsing populates them, so a parse failure reaching the cleanup path leaves libssh2_publickey_list_free operating on an uninitialized entry. A ma…

References

  • report
    https://ubuntu.com/security/CVE-2026-58050
  • report
    https://ubuntu.com/security/CVE-2026-58051
  • report
    https://ubuntu.com/security/CVE-2026-66032
  • report
    https://ubuntu.com/security/CVE-2026-66034