Skip to content
OpenAdvisories
High ALAS2-2026-3813 2 CVEs

Important: libssh2 security update (Amazon Linux 2)

Published Jul 20, 2026 · Updated Jul 20, 2026

Summary

Package updates are available for Amazon Linux 2 that fix the following vulnerabilities: CVE-2026-58051: 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 malicious SSH server offering the publickey subsystem can use a malformed response to make cleanup free an uninitialized, attacker-influenceable attrs pointer in a connecting libssh2 client. CVE-2026-58050: 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 overflows to an undersized buffer. A malicious SSH server can then drive the attribute-parsing loop to write past the allocation, causing a heap buffer overflow in a connecting libssh2 client.

Fixed packages 4

ReleasePackageFixed in
Amazon Linux · 2 libssh2 0:1.4.3-12.amzn2.2.8
Amazon Linux · 2 libssh2-debuginfo 0:1.4.3-12.amzn2.2.8
Amazon Linux · 2 libssh2-devel 0:1.4.3-12.amzn2.2.8
Amazon Linux · 2 libssh2-docs 0:1.4.3-12.amzn2.2.8

Vulnerabilities 2

  • 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

  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-58050.html
  • web
    https://alas.aws.amazon.com/cve/html/CVE-2026-58051.html