| 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, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, 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) | bullseye | 1.9.0-2+deb11u1 | fixed |
| bookworm | 1.10.0-3 | fixed |
| trixie | 1.11.1-1 | fixed |
| forky, sid | 1.11.1-2 | 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