CVE-2026-58050

NameCVE-2026-58050
Descriptionlibssh2 through 1.11.1 reads an attacker-controlled 32-bit attribute count from a publickey-subsystem response and uses it in the allocation num_attrs * sizeof(libssh2_publickey_attribute) without bounds checking, so on 32-bit platforms the multiplication overflows to an undersized buffer. A malicious SSH server can then drive the attribute-parsing loop to write past the allocation, causing a heap buffer overflow in a connecting libssh2 client.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
libssh2 (PTS)bullseye1.9.0-2+deb11u1undetermined
bookworm1.10.0-3undetermined
trixie (security), trixie1.11.1-1+deb13u1undetermined
forky, sid1.11.1-4undetermined

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
libssh2source(unstable)undetermined

Notes

https://github.com/bikini/exploitarium/tree/main/libssh2-publickey-list-calc-poc
check with upstream, only affecting libssh2 on Winddows?

Search for package or bug name: Reporting problems