๐Ÿ” CVE Alert

CVE-2026-58051

MEDIUM 6.5

libssh2 - Free of Uninitialized Pointer in publickey List Cleanup

CVSS Score
6.5
EPSS Score
0.0%
EPSS Percentile
0th

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.

CWE CWE-908
Vendor libssh2
Product libssh2
Published Jun 28, 2026
Stay Ahead of the Next One

Get instant alerts for libssh2 libssh2

Be the first to know when new medium vulnerabilities affecting libssh2 libssh2 are published โ€” delivered to Slack, Telegram or Discord.

Get Free Alerts โ†’ Free ยท No credit card ยท 60 sec setup

CVSS v3 Breakdown

CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:N/I:L/A:H
Attack Vector
Network
Attack Complexity
High
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
Low
Availability
High

Affected Versions

libssh2 / libssh2
0 โ‰ค 1.11.1

References

NVD โ†— CVE.org โ†— EPSS Data โ†—
github.com: https://github.com/bikini/exploitarium/tree/main/libssh2-publickey-list-calc-poc github.com: https://github.com/libssh2/libssh2/blob/master/src/publickey.c vulncheck.com: https://www.vulncheck.com/advisories/libssh2-free-of-uninitialized-pointer-in-publickey-list-cleanup

Credits

ashdfrkl