Name | CVE-2016-0787 |
Description | The diffie_hellman_sha256 function in kex.c in libssh2 before 1.7.0 improperly truncates secrets to 128 or 256 bits, which makes it easier for man-in-the-middle attackers to decrypt or intercept SSH sessions via unspecified vectors, aka a "bits/bytes confusion bug." |
Source | CVE (at NVD; CERT, LWN, oss-sec, fulldisc, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more) |
References | DLA-426-1, DSA-3487-1 |
Debian Bugs | 815662 |
Vulnerable and fixed packages
The table below lists information on source packages.
Source Package | Release | Version | Status |
---|
libssh2 (PTS) | jessie, jessie (lts) | 1.4.3-4.1+deb8u7 | fixed |
| stretch (security) | 1.7.0-1+deb9u2 | fixed |
| stretch (lts), stretch | 1.7.0-1+deb9u3 | fixed |
| buster (security), buster, buster (lts) | 1.8.0-2.1+deb10u1 | fixed |
| bullseye | 1.9.0-2+deb11u1 | fixed |
| bookworm | 1.10.0-3 | fixed |
| sid, trixie | 1.11.1-1 | fixed |
The information below is based on the following data on fixed versions.
Notes
Upstream fix: https://github.com/libssh2/libssh2/commit/ca5222ea819cc5ed797860070b4c6c1aeeb28420
Upstream patch only fixes DH SHA-256 key exchange type, not DH SHA-1