
CVE catalog
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_pu
- Severity
- High · CVSS 8.3
CVSS:4.0/AV:N/AC:H/AT:N/PR:N/UI:N/VC:N/VI:L/VA:H/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X - Published
- Source
- [NVD] · [CVE record]
- EPSS
- 0.28% · Oct 25, 2026
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.
Vulnerable and fixed packages
Distribution-reported package versions and fixes. These do not depend on matching against the OpenFactory package catalog.
| Distribution | Package | Release | Version | Status |
|---|---|---|---|---|
| Debian | libssh2 | sid | 1.11.1-6 | fixed |
| Debian | libssh2 | forky | 1.11.1-6 | fixed |
| Debian | libssh2 | trixie | 1.11.1-1+deb13u2 | fixed |
| Debian | libssh2 | trixie-security | 1.11.1-1+deb13u1 | vulnerable |
| Debian | libssh2 | bookworm | 1.10.0-3 | vulnerable |
| Debian | libssh2 | bookworm-security | 1.10.0-3+deb12u1 | fixed |
| Cpe | libssh2 | Not reported | Not reported | vulnerable |
| Cpe | libssh2 | Not reported | Not reported | unknown |
| Cpe | libssh2 | Not reported | 1.11.0-4.1ubuntu0.24.04.3 | fixed |
| Cpe | libssh2-1-dev | Not reported | 1.11.0-4.1ubuntu0.24.04.3 | fixed |
| Cpe | libssh2-1t64 | Not reported | 1.11.0-4.1ubuntu0.24.04.3 | fixed |
| Ubuntu | libssh2 | pro | 1.8.0-2.1build1 | vulnerable |
| Ubuntu | libssh2 | pro | 1.8.0-2.1ubuntu0.1 | vulnerable |
| Ubuntu | libssh2 | pro | 1.8.0-2.1ubuntu0.1+esm1 | fixed |
| Ubuntu | libssh2 | 22.04 | 1.9.0-3 | vulnerable |
| Ubuntu | libssh2 | 22.04 | 1.10.0-2 | vulnerable |
| Ubuntu | libssh2 | 22.04 | 1.10.0-2build1 | vulnerable |
| Ubuntu | libssh2 | 22.04 | 1.10.0-3 | vulnerable |
| Ubuntu | libssh2 | 22.04 | 1.10.0-3ubuntu0.1 | fixed |
| Ubuntu | libssh2 | 24.04 | 1.11.0-2 | vulnerable |
| Ubuntu | libssh2 | 24.04 | 1.11.0-3 | vulnerable |
| Ubuntu | libssh2 | 24.04 | 1.11.0-4 | vulnerable |
| Ubuntu | libssh2 | 24.04 | 1.11.0-4.1build1 | vulnerable |
| Ubuntu | libssh2 | 24.04 | 1.11.0-4.1build2 | vulnerable |
| Ubuntu | libssh2 | 24.04 | 1.11.0-4.1ubuntu0.24.04.1 | vulnerable |
| Ubuntu | libssh2 | 24.04 | 1.11.0-4.1ubuntu0.24.04.2 | vulnerable |
| Ubuntu | libssh2 | 24.04 | 1.11.0-4.1ubuntu0.24.04.3 | fixed |
| Ubuntu | libssh2 | 25.10 | 1.11.1-1 | vulnerable |
| Ubuntu | libssh2 | 25.10 | 1.11.1-1build1 | vulnerable |
| Ubuntu | libssh2 | 25.10 | 1.11.1-1ubuntu0.25.10.1 | vulnerable |
| Ubuntu | libssh2 | 25.10 | 1.11.1-1ubuntu0.25.10.2 | vulnerable |
| Ubuntu | libssh2 | 26.04 | 1.11.1-1build1 | vulnerable |
| Ubuntu | libssh2 | 26.04 | 1.11.1-1build2 | vulnerable |
| Ubuntu | libssh2 | 26.04 | 1.11.1-1ubuntu0.26.04.1 | vulnerable |
| Ubuntu | libssh2 | 26.04 | 1.11.1-1ubuntu0.26.04.2 | vulnerable |
| Ubuntu | libssh2 | 26.04 | 1.11.1-1ubuntu0.26.04.3 | fixed |
| Alpine | libssh2 | 3.21 | 1.11.1-r3 | fixed |
| Alpine | libssh2 | 3.22 | 1.11.1-r3 | fixed |
| Alpine | libssh2 | 3.23 | 1.11.1-r4 | fixed |
| Alpine | libssh2 | 3.24 | 1.11.1-r4 | fixed |
| Cpe | libssh2 | Not reported | Not reported | unknown |
Fixed-version evidence
| Distribution | Package | Type | Release | Fixed version | Urgency | Origin | Bugs |
|---|---|---|---|---|---|---|---|
| Debian | libssh2 | source | sid | 1.11.1-6 | not yet assigned | Not reported | [1144415] |
| Debian | libssh2 | source | forky | 1.11.1-6 | not yet assigned | Not reported | [1144415] |
| Debian | libssh2 | source | trixie | 1.11.1-1+deb13u2 | not yet assigned | Not reported | [1144415] |
| Debian | libssh2 | source | bookworm | 1.10.0-3+deb12u1 | not yet assigned | Not reported | [1144415] |
| Cpe | libssh2 | cpe | Not reported | 1.11.0-4.1ubuntu0.24.04.3 | Not reported | Not reported | Not reported |
| Cpe | libssh2-1-dev | cpe | Not reported | 1.11.0-4.1ubuntu0.24.04.3 | Not reported | Not reported | Not reported |
| Cpe | libssh2-1t64 | cpe | Not reported | 1.11.0-4.1ubuntu0.24.04.3 | Not reported | Not reported | Not reported |
| Ubuntu | libssh2 | deb | pro | 1.8.0-2.1ubuntu0.1+esm1 | Not reported | UBUNTU-CVE-2026-58051 | Not reported |
| Ubuntu | libssh2 | deb | 22.04 | 1.10.0-3ubuntu0.1 | Not reported | UBUNTU-CVE-2026-58051 | Not reported |
| Ubuntu | libssh2 | deb | 24.04 | 1.11.0-4.1ubuntu0.24.04.3 | Not reported | UBUNTU-CVE-2026-58051 | Not reported |
| Ubuntu | libssh2 | deb | 26.04 | 1.11.1-1ubuntu0.26.04.3 | Not reported | UBUNTU-CVE-2026-58051 | Not reported |
| Alpine | libssh2 | apk | 3.21 | 1.11.1-r3 | Not reported | ALPINE-CVE-2026-58051 | Not reported |
| Alpine | libssh2 | apk | 3.22 | 1.11.1-r3 | Not reported | ALPINE-CVE-2026-58051 | Not reported |
| Alpine | libssh2 | apk | 3.23 | 1.11.1-r4 | Not reported | ALPINE-CVE-2026-58051 | Not reported |
| Alpine | libssh2 | apk | 3.24 | 1.11.1-r4 | Not reported | ALPINE-CVE-2026-58051 | Not reported |
OpenFactory catalog packages
[Debian 12 (Bookworm)]
- [libssh2-1]Affected
Source package: [libssh2]
Details (2)
1.10.0-3+b1· amd64 · bookwormAffected · Fixed:
1.10.0-3+deb12u1nvd · libssh2 · debian · bookworm; nvd · libssh2 · debian · 12
1.10.0-3+b1· arm64 · bookwormAffected · Fixed:
1.10.0-3+deb12u1nvd · libssh2 · debian · bookworm; nvd · libssh2 · debian · 12
- [libssh2-1-dev]Affected
Source package: [libssh2]
Details (2)
1.10.0-3+b1· amd64 · bookwormAffected · Fixed:
1.10.0-3+deb12u1nvd · libssh2 · debian · bookworm; nvd · libssh2 · debian · 12
1.10.0-3+b1· arm64 · bookwormAffected · Fixed:
1.10.0-3+deb12u1nvd · libssh2 · debian · bookworm; nvd · libssh2 · debian · 12
[Debian 13 (Trixie)]
- [libssh2-1-dev]Affected
Source package: [libssh2]
Details (4)
1.11.1-1+deb13u1· amd64 · trixieAffected · Fixed:
1.11.1-1+deb13u2nvd · libssh2 · debian · 13
1.11.1-1+deb13u1· arm64 · trixieAffected · Fixed:
1.11.1-1+deb13u2nvd · libssh2 · debian · 13
1.11.1-1+deb13u1· amd64 · trixie-securityAffected · Fixed:
1.11.1-1+deb13u2nvd · libssh2 · debian · 13
1.11.1-1+deb13u1· arm64 · trixie-securityAffected · Fixed:
1.11.1-1+deb13u2nvd · libssh2 · debian · 13
- [libssh2-1t64]Affected
Source package: [libssh2]
Details (4)
1.11.1-1+deb13u1· amd64 · trixieAffected · Fixed:
1.11.1-1+deb13u2nvd · libssh2 · debian · 13
1.11.1-1+deb13u1· arm64 · trixieAffected · Fixed:
1.11.1-1+deb13u2nvd · libssh2 · debian · 13
1.11.1-1+deb13u1· amd64 · trixie-securityAffected · Fixed:
1.11.1-1+deb13u2nvd · libssh2 · debian · 13
1.11.1-1+deb13u1· arm64 · trixie-securityAffected · Fixed:
1.11.1-1+deb13u2nvd · libssh2 · debian · 13
Observed:
References
- [https://ftp.suse.com/pub/projects/security/csaf/opensuse-su-2026_11454-1.json]
- [https://github.com/bikini/exploitarium/tree/main/libssh2-publickey-list-calc-poc]
- [https://github.com/libssh2/libssh2/blob/master/src/publickey.c]
- [https://nvd.nist.gov/vuln/detail/CVE-2026-58051]
- [https://osv.dev/vulnerability/ALPINE-CVE-2026-58051]
- [https://osv.dev/vulnerability/DEBIAN-CVE-2026-58051]
- [https://osv.dev/vulnerability/UBUNTU-CVE-2026-58051]
- [https://security-tracker.debian.org/tracker/CVE-2026-58051]
- [https://security.access.redhat.com/data/csaf/v2/vex/2026/cve-2026-58051.json]
- [https://ubuntu.com/security/notices/USN-8532-1]
- [https://wid.cert-bund.de/.well-known/csaf/white/2026/wid-sec-w-2026-2099.json]
- [https://www.vulncheck.com/advisories/libssh2-free-of-uninitialized-pointer-in-publickey-list-cleanup]
[CERT-Bund public advisories] · [Debian Security Tracker] · [FIRST EPSS] · [National Vulnerability Database (NVD)] · [OSV Package Vulnerability Database] · [Red Hat security advisories and VEX] · [SUSE security advisories and VEX] · [Ubuntu Security Notices (USN)]