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
Source GCVE Database
Not known to be exploited · CVSS 6.5 Medium.
Data as of 10 Nov 2026, 16:36 UTC
Thin evidence
One scorer or none| CNA (VulnCheck) | CVSS 3.1 | 6.5 |
|---|---|---|
| CNA (VulnCheck) | CVSS 4.0 | 8.3 |
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 10 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| libssh2libssh2 | Affected
| Fixed in– |
GitHublibssh2/libssh2pkg:github/libssh2/libssh2Other 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
- nvd.nist.gov/vuln/detail/CVE-2026-58051 (opens in a new tab)
- cert-portal.siemens.com/productcert/html/ssa-457936.html (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)