Medium severity · published Apr 13, 2016
CVE-2016-0787
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…
5.9
CVSS
2.6%
EPSS
No
On KEV
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."
CVSS vector
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Attack vector
Network
Complexity
High
Privileges
None
User interaction
None
Confidentiality
High
Integrity
None
Availability
None
Scope
Unchanged
Exploitation
Is it being used?
Exploit prediction (EPSS)2.6% · higher than 85% of CVEs
Exploited in the wildNo evidence yet
CISA KEVNot listed
Ransomware campaign useNot known
Affected products
Which versions
DL
Debian Linux · Debian
7.0; 8.0 · source: NVD
FE
Fedora · Fedoraproject
22; 23 · source: NVD
LI
Libssh2 · Libssh2
through 1.6.0 · source: NVD
OP
Opensuse · Opensuse
13.2 · source: NVD
References
NVD
https://nvd.nist.gov/vuln/detail/CVE-2016-0787
CVE.org
https://www.cve.org/CVERecord?id=CVE-2016-0787
lists.fedoraproject.org
http://lists.fedoraproject.org/pipermail/package-announce/2016-February/177980.html
lists.fedoraproject.org
http://lists.fedoraproject.org/pipermail/package-announce/2016-March/178573.html
lists.opensuse.org
http://lists.opensuse.org/opensuse-updates/2016-03/msg00008.html
www.debian.org
http://www.debian.org/security/2016/dsa-3487
www.oracle.com
http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html
www.securityfocus.com
http://www.securityfocus.com/bid/82514
More from Debian Linux
10.0
CVE-2025-32433
Erlang/OTP SSH Vulnerable to Pre-Authentication RCE
10.0
CVE-2025-24201
Apple Multiple Products WebKit Out-of-Bounds Write Vulnerability
10.0
CVE-2021-44228
Apache Log4j2 JNDI features do not protect against attacker controlled LDAP and other JNDI related endpoints
10.0
CVE-2015-3306
ProFTPD Improper Access Control Vulnerability
9.8
CVE-2026-24061
GNU InetUtils Argument Injection Vulnerability
