DEBIAN-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_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.
DEBIAN-CVE-2026-58051
Primary source · Revision 1
Imported from structured advisory data. Source references identify upstream records or fields; verify affected versions and your deployed configuration.
Security context
Source reference: osv:DEBIAN-CVE-2026-58051
libssh2
Source reference: /affected/0/package/name
- Affected versions
- 1.10.0-3
Source reference:
/affected/0/versions - Fixed versions
- 1.10.0-3+deb12u1
Source reference:
/affected/0/ranges - Prerequisites
- Not stated in this record
libssh2
Source reference: /affected/1/package/name
- Affected versions
- 1.11.1-1
Source reference:
/affected/1/versions1.11.1-1+deb13u1Source reference:
/affected/1/versions - Fixed versions
- 1.11.1-1+deb13u2
Source reference:
/affected/1/ranges - Prerequisites
- Not stated in this record
libssh2
Source reference: /affected/2/package/name
- Affected versions
- 1.11.1-1
Source reference:
/affected/2/versions1.11.1-2Source reference:
/affected/2/versions1.11.1-3Source reference:
/affected/2/versions1.11.1-4Source reference:
/affected/2/versions1.11.1-5Source reference:
/affected/2/versions - Fixed versions
- 1.11.1-6
Source reference:
/affected/2/ranges - Prerequisites
- Not stated in this record
Structured affected-version data
Original package identities and version rules from this source.
[
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.10.0-3+deb12u1"
}
]
}
],
"package": {
"name": "libssh2",
"purl": "pkg:deb/debian/libssh2?arch=source&distro=bookworm",
"ecosystem": "Debian:12"
},
"versions": [
"1.10.0-3"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-58051.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.11.1-1+deb13u2"
}
]
}
],
"package": {
"name": "libssh2",
"purl": "pkg:deb/debian/libssh2?arch=source&distro=trixie",
"ecosystem": "Debian:13"
},
"versions": [
"1.11.1-1",
"1.11.1-1+deb13u1"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-58051.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
},
{
"ranges": [
{
"type": "ECOSYSTEM",
"events": [
{
"introduced": "0"
},
{
"fixed": "1.11.1-6"
}
]
}
],
"package": {
"name": "libssh2",
"purl": "pkg:deb/debian/libssh2?arch=source&distro=forky",
"ecosystem": "Debian:14"
},
"versions": [
"1.11.1-1",
"1.11.1-2",
"1.11.1-3",
"1.11.1-4",
"1.11.1-5"
],
"database_specific": {
"source": "https://storage.googleapis.com/debian-osv/debian-cve-osv/DEBIAN-CVE-2026-58051.json"
},
"ecosystem_specific": {
"urgency": "not yet assigned"
}
}
]Publisher severity
No explicit severity was provided.
- Event
- #57974 · Revision 1
- Added to Heist Feed
- Publisher date