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
Affects libssh2Source GCVE Database
Not known to be exploited · CVSS 6.5 Medium · fixed in 1.4.3-2ubuntu0.2+esm4 : update libssh2 when convenient.
Data as of 24 Nov 2026, 20:44 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 3.1 | 6.5 |
|---|---|---|
| CNA (VulnCheck) | CVSS 4.0 | 8.3 |
- Patch
- Available – fixed in 1.4.3-2ubuntu0.2+esm4, 1.5.0-2ubuntu0.1+esm3, 1.8.0-1ubuntu0.1+esm1 +4
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:HExploitation evidence
t = 0 is the CVE’s publication on cve.org
Disclosed: evidence found.
CVE published 28 Jun 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: evidence found.
CISA SSVC: proof of concept public
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
Timeline
CVE ID reserved
by VulnCheck
, 37 minutes before disclosure
CVE published
on cve.org
, t = 0
CISA SSVC assessment
proof of concept public
, 35 hours after disclosure
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), CISA SSVC, the Metasploit, Exploit-DB and nuclei-templates index as of 23 Nov 2026.
What to do
Upgrade to a fixed release listed under Affected software.
Patches and advisories
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.04 LTSlibssh2pkg:deb/ubuntu/libssh2?arch=source&distro=resoluteOther threats | Affected
| Fixed in
|
Ubuntu 25.10libssh2pkg:deb/ubuntu/libssh2?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSlibssh2pkg:deb/ubuntu/libssh2?arch=source&distro=nobleOther threats | Affected
| Fixed in
|
Ubuntu 22.04 LTSlibssh2pkg:deb/ubuntu/libssh2?arch=source&distro=jammyOther threats | Affected
| Fixed in
|
Ubuntu Pro 20.04 LTSlibssh2pkg:deb/ubuntu/libssh2?arch=source&distro=esm-apps/focalOther threats | Affected
| Fixed in
|
Ubuntu Pro 18.04 LTSlibssh2pkg:deb/ubuntu/libssh2?arch=source&distro=esm-apps/bionicOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
Description
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.
References
- ubuntu.com/security/CVE-2026-58051 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2026-58051 (opens in a new tab)
- github.com/bikini/exploitarium/tree/main/libssh2-publickey-list-calc-poc (opens in a new tab)
- github.com/libssh2/libssh2/blob/master/src/publickey.c (opens in a new tab)
- vulncheck.com/advisories/libssh2-free-of-uninitialized-pointer-in-publickey-list-cleanup (opens in a new tab)
- github.com/libssh2/libssh2/pull/2202 (opens in a new tab)
- ubuntu.com/security/notices/USN-8532-1 (opens in a new tab)
- ubuntu.com/security/notices/USN-8799-1 (opens in a new tab)