CVE-2026-58051
Fixed in a distro release EPSS <1%CVSS 6.5
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.
Products: libssh2
Distro releases
| Release | Package | Fixed in |
|---|---|---|
| Alpine 3.21 | libssh2 | 1.11.1-r3 |
| Alpine 3.22 | libssh2 | 1.11.1-r3 |
| Alpine 3.23 | libssh2 | 1.11.1-r4 |
| Alpine 3.24 | libssh2 | 1.11.1-r4 |
| Amazon Linux 2 | libssh2 | 1.4.3-12.amzn2.2.8 |
| Amazon Linux 2 | libssh2-devel | 1.4.3-12.amzn2.2.8 |
| Amazon Linux 2 | libssh2-docs | 1.4.3-12.amzn2.2.8 |
| Amazon Linux 2023 | libssh2 | 1.10.0-1.amzn2023.0.5 |
| Amazon Linux 2023 | libssh2-devel | 1.10.0-1.amzn2023.0.5 |
| Amazon Linux 2023 | libssh2-docs | 1.10.0-1.amzn2023.0.5 |
| Chainguard | libssh2 | no fix |
| Chainguard | libssh2-dev | no fix |
| Chainguard | libssh2-doc | no fix |
| Debian 12 | libssh2 | 1.10.0-3+deb12u1 |
| Debian 13 | libssh2 | 1.11.1-1+deb13u2 |
| Debian 14 | libssh2 | 1.11.1-6 |
| Red Hat hummingbird 1 | libssh2 | 0:1.11.1-10.2.hum1 |
| Red Hat hummingbird 1 | libssh2 | 0:1.11.1-10.1.hum1 |
| Red Hat hummingbird 1 | libssh2-devel | 0:1.11.1-10.1.hum1 |
| Red Hat hummingbird 1 | libssh2-devel | 0:1.11.1-10.2.hum1 |
| Red Hat hummingbird 1 | libssh2-docs | 0:1.11.1-10.2.hum1 |
| Red Hat hummingbird 1 | libssh2-docs | 0:1.11.1-10.1.hum1 |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | libssh2_org | 1.11.0-150000.4.35.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP4-ESPOS | libssh2_org | 1.11.0-150200.9.8.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | libssh2_org | 1.11.0-150000.4.35.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP4-LTSS | libssh2_org | 1.11.0-150200.9.8.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP5-ESPOS | libssh2_org | 1.11.0-150200.9.8.1 |
| SUSE Linux Enterprise High Performance Computing 15 SP5-LTSS | libssh2_org | 1.11.0-150200.9.8.1 |
| SUSE Linux Enterprise Micro 5.3 | libssh2_org | 1.11.0-150200.9.8.1 |
| SUSE Linux Enterprise Micro 5.4 | libssh2_org | 1.11.0-150200.9.8.1 |
| SUSE Linux Enterprise Micro 5.5 | libssh2_org | 1.11.0-150200.9.8.1 |
| SUSE Linux Enterprise Module for Basesystem 15 SP7 | libssh2_org | 1.11.0-150600.20.6.1 |
| SUSE Linux Enterprise Server 12 SP5-LTSS | libssh2_org | 1.11.0-29.18.1 |
| SUSE Linux Enterprise Server 15 SP4-LTSS | libssh2_org | 1.11.0-150000.4.35.1 |
| SUSE Linux Enterprise Server 15 SP4-LTSS | libssh2_org | 1.11.0-150200.9.8.1 |
| SUSE Linux Enterprise Server 15 SP5-LTSS | libssh2_org | 1.11.0-150200.9.8.1 |
| SUSE Linux Enterprise Server 15 SP6-LTSS | libssh2_org | 1.11.0-150600.20.6.1 |
| SUSE Linux Enterprise Server 16.0 | libssh2_org | 1.11.1-160000.5.1 |
| SUSE Linux Enterprise Server LTSS Extended Security 12 SP5 | libssh2_org | 1.11.0-29.18.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP4 | libssh2_org | 1.11.0-150200.9.8.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP5 | libssh2_org | 1.11.0-150200.9.8.1 |
| SUSE Linux Enterprise Server for SAP Applications 15 SP6 | libssh2_org | 1.11.0-150600.20.6.1 |
| SUSE Linux Enterprise Server for SAP applications 16.0 | libssh2_org | 1.11.1-160000.5.1 |
| SUSE Linux Micro 6.0 | libssh2_org | 1.11.0-4.1 |
| SUSE Linux Micro 6.1 | libssh2_org | 1.11.0-slfo.1.1_2.1 |
| SUSE Linux Micro 6.2 | libssh2_org | 1.11.1-160000.5.1 |
| Ubuntu 22.04 LTS | libssh2 | 1.10.0-3ubuntu0.1 |
| Ubuntu 24.04 LTS | libssh2 | 1.11.0-4.1ubuntu0.24.04.3 |
| Ubuntu 25.10 | libssh2 | no fix |
| Ubuntu 26.04 LTS | libssh2 | 1.11.1-1ubuntu0.26.04.3 |
| Ubuntu Pro 14.04 LTS | libssh2 | 1.4.3-2ubuntu0.2+esm4 |
| Ubuntu Pro 16.04 LTS | libssh2 | 1.5.0-2ubuntu0.1+esm3 |
| Ubuntu Pro 18.04 LTS | libssh2 | 1.8.0-1ubuntu0.1+esm1 |
| Ubuntu Pro 20.04 LTS | libssh2 | 1.8.0-2.1ubuntu0.1+esm1 |
| Wolfi | libssh2 | no fix |
| Wolfi | libssh2-dev | no fix |
| Wolfi | libssh2-doc | no fix |
| openSUSE Leap 16.0 | libssh2_org | 1.11.1-160000.5.1 |
| openSUSE Tumbleweed | libssh2_org | 1.11.1-4.1 |