Zero Day MonitorZDM
DashboardVulnerabilitiesTrendingZero-DaysNewsAbout
Login
ImpressumPrivacy Policy
Zero Day Monitor © 2026
3155 articles · 168089 vulns · 37/41 feeds (7d)
← Back to list
6.5
CVE-2026-58051
libssh2 · libssh2

libssh2 - Free of Uninitialized Pointer in publickey List Cleanup

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.

Affected Products

VendorProductVersions
libssh2libssh20

References

  • https://github.com/bikini/exploitarium/tree/main/libssh2-publickey-list-calc-poc(exploit, third-party-advisory)
  • https://github.com/libssh2/libssh2/blob/master/src/publickey.c(product)
  • https://www.vulncheck.com/advisories/libssh2-free-of-uninitialized-pointer-in-publickey-list-cleanup(third-party-advisory)
CVSS 3.16.5 MEDIUM
VectorCVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
CISA KEV❌ No
Actively exploited❌ No
CWECWE-908
PublishedJun 28, 2026
Trending Score0
Source articles0
Independent0
Info Completeness0/14
Missing: cve_id, title, description, vendor, product, versions, cvss, epss, cwe, kev, exploit, patch, iocs, mitre_attack

Community Vote

0
Login to vote
0 upvotes0 downvotes
No votes yet

Related CVEs (5)

NONECVE-2026-55200EXP
libssh2 - Out-of-Bounds Write via Unchecked packet_length in transport.c
Trending: 73
CRITICALCVE-2026-55199EXP
libssh2 - Pre-Authentication DoS via SSH_MSG_EXT_INFO Handler
Trending: 42
CRITICALCVE-2025-15661EXP
libssh2 - Heap Buffer Over-read via sftp_symlink() in sftp.c
Trending: 39
HIGHCVE-2026-58050
libssh2 - Integer Overflow in publickey Subsystem Attribute Allocation
NONECVE-2026-7598EXP
libssh2 userauth.c userauth_password integer overflow

Pin to Dashboard

Verification

State: unverified
Confidence: 0%

Vulnerability Timeline

CVE Published
Jun 28, 2026
Discovered by ZDM
Jun 28, 2026