Vulnerability database / CVE-2016-0787
CVE-2016-0787
MEDIUM 5.9 CVSS 3.0 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."
Published 13 Apr 2016
Last modified 17 Jun 2026 Assigned by secalert@redhat.com NVD status Modified Weakness
CWE-200 Sources
NVD JSON Scores
Source Scored by Version Score Vector / decision
NVD
nvd@nist.gov (Primary)
CVSS 3.0
MEDIUM 5.9
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:NNVD
nvd@nist.gov (Primary)
CVSS 2.0
MEDIUM 4.3
AV:N/AC:M/Au:N/C:P/I:N/A:N
Affected
Source Vendor / ecosystem Product / package Affected versions Fixed in
NVD
fedoraproject
fedoracpe:2.3:o:fedoraproject:fedora:22:*:*:*:*:*:*:*
= 22
NVD
fedoraproject
fedoracpe:2.3:o:fedoraproject:fedora:23:*:*:*:*:*:*:*
= 23
NVD
opensuse
opensusecpe:2.3:o:opensuse:opensuse:13.2:*:*:*:*:*:*:*
= 13.2
NVD
libssh2
libssh2cpe:2.3:a:libssh2:libssh2:*:*:*:*:*:*:*:*
<= 1.6.0
NVD
debian
debian_linuxcpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*
= 7.0
NVD
debian
debian_linuxcpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
= 8.0
References
History
25 Nov 2026 20:19 UTC · NVD: first stored (published 13 Apr 2016)