Skip to content
OpenAdvisories
High · 7.5 CVE-2026-66034 EUVD-2026-48721GHSA-6h6q-9mwg-r6x7

libssh2 Heap Out-of-Bounds Read via publickey subsystem

Published Jul 24, 2026 · Updated Nov 10, 2026 · Assigned by VulnCheck

Description

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 libssh2_publickey_list_fetch(), the version 1 response parser reads a server-controlled comment_len value and advances the parse pointer without verifying sufficient bytes remain in the buffer, causing the out-of-bounds read to leak heap pointers from adjacent allocations defeating ASLR, followed by heap allocator state corruption when the error cleanup path frees an uninitialized pointer from a non-zeroed realloc() region.

Affected products

VendorProductAffectedFixed
libssh2 libssh2 ≤ 1.11.1 —

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libssh2 1.11.1-5 —
Debian 13 libssh2 1.11.1-1+deb13u2 —
Debian 12 libssh2 1.10.0-3+deb12u1 —
ReleasePackageFixed inAdvisory
Ubuntu 26.04 LTS libssh2 1.11.1-1ubuntu0.26.04.3 —
Ubuntu 24.04 LTS libssh2 1.11.0-4.1ubuntu0.24.04.3 —
Ubuntu 22.04 LTS libssh2 1.10.0-3ubuntu0.1 USN-8799-1
Show 4 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Ubuntu Pro 20.04 LTS libssh2 1.8.0-2.1ubuntu0.1+esm1 USN-8799-1
Ubuntu Pro 18.04 LTS libssh2 1.8.0-1ubuntu0.1+esm1 USN-8799-1
Ubuntu Pro 16.04 LTS libssh2 1.5.0-2ubuntu0.1+esm3 USN-8799-1
Ubuntu Pro 14.04 LTS libssh2 1.4.3-2ubuntu0.2+esm4 USN-8799-1
ReleasePackageFixed inAdvisory
RHEL 7 ELS libssh2 +1 1.8.0-4.el7_9.2 RHSA-2026:61752
Red Hat Hardened Images 1 libssh2 +2 1.11.1-10.2.hum1 RHSA-2026:46927
ReleasePackageFixed inAdvisory
SLES 15 SP7 libssh2_org 1.11.0-150600.20.6.1 SUSE-SU-2026:3541-1
SLES 15 SP6 libssh2_org 1.11.0-150600.20.6.1 SUSE-SU-2026:3541-1
SLES 15 SP5 libssh2_org 1.11.0-150200.9.8.1 SUSE-SU-2026:3526-1
SLES 15 SP4 libssh2_org 1.11.0-150000.4.35.1 SUSE-SU-2026:4095-1, SUSE-SU-2026:3526-1
SLES 12 SP5 libssh2_org 1.11.0-29.18.1 SUSE-SU-2026:3525-1
Show 13 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 16.0 libssh2_org 1.11.1-160000.5.1 SUSE-SU-2026:23225-1, SUSE-SU-2026:23214-1
SLES for SAP 15 SP6 libssh2_org 1.11.0-150600.20.6.1 SUSE-SU-2026:3541-1
SLES for SAP 15 SP5 libssh2_org 1.11.0-150200.9.8.1 SUSE-SU-2026:3526-1
SLES for SAP 15 SP4 libssh2_org 1.11.0-150200.9.8.1 SUSE-SU-2026:3526-1
SLES 16.0 libssh2_org 1.11.1-160000.5.1 SUSE-SU-2026:23225-1, SUSE-SU-2026:23214-1
SLE Micro 6.2 libssh2_org 1.11.1-160000.5.1 SUSE-SU-2026:23049-1
SLE Micro 6.1 libssh2_org 1.11.0-slfo.1.1_2.1 SUSE-SU-2026:23187-1
SLE Micro 6.0 libssh2_org 1.11.0-4.1 SUSE-SU-2026:23245-1
SLE Micro 5.5 libssh2_org 1.11.0-150200.9.8.1 SUSE-SU-2026:3526-1
SLE Micro 5.4 libssh2_org 1.11.0-150200.9.8.1 SUSE-SU-2026:3526-1
SLE Micro 5.3 libssh2_org 1.11.0-150200.9.8.1 SUSE-SU-2026:3526-1
SLE HPC 15 SP5 libssh2_org 1.11.0-150200.9.8.1 SUSE-SU-2026:3526-1
SLE HPC 15 SP4 libssh2_org 1.11.0-150000.4.35.1 SUSE-SU-2026:4095-1, SUSE-SU-2026:3526-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed libssh2_org 1.11.1-4.1 openSUSE-SU-2026:11454-1
openSUSE Leap 16.0 libssh2_org 1.11.1-160000.5.1 openSUSE-SU-2026:21549-1
ReleasePackageFixed inAdvisory
Alpine v3.24 libssh2 1.11.1-r4 —
Alpine v3.23 libssh2 1.11.1-r4 —
Alpine v3.22 libssh2 1.11.1-r3 —
Alpine v3.21 libssh2 1.11.1-r3 —

Amazon Linux

ReleasePackageFixed inAdvisory
Amazon Linux 2023 cargo-c 0.10.21-1.amzn2023.0.1 ALAS2023-2026-2064
Amazon Linux 2023 libssh2 +2 1.10.0-1.amzn2023.0.6 ALAS2023-2026-2056
Amazon Linux 2 libssh2 +2 1.4.3-12.amzn2.2.9 ALAS2-2026-3861

Azure Linux

ReleasePackageFixed inAdvisory
Azure Linux 3 libssh2 1.11.1-5 —
Azure Linux 3 rust 1.96.0-1 —

Wolfi

ReleasePackageFixed inAdvisory
Wolfi rolling libssh2 +2 No fix yet —

Advisories 19

References