CVE-2016-0787Sensitive Information Exposure in Libssh2

Severity
5.9MEDIUMNVD
EPSS
3.1%
top 13.09%
CISA KEV
Not in KEV
Exploit
No known exploits
Timeline
PublishedApr 13
Latest updateMay 14

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:NExploitability: 2.2 | Impact: 3.6

Affected Packages3 packages

Debianlibssh2/libssh2< 1.5.0-2.1+3
NVDlibssh2/libssh21.6.0

Also affects: Debian Linux 7.0, 8.0, Fedora 22, 23

Patches

🔴Vulnerability Details

3
GHSA
GHSA-6wmj-27wm-wwx6: The diffie_hellman_sha256 function in kex2022-05-14
CVEList
CVE-2016-0787: The diffie_hellman_sha256 function in kex2016-04-13
OSV
CVE-2016-0787: The diffie_hellman_sha256 function in kex2016-04-13

💥Exploits & PoCs

1
Metasploit
Background Intelligent Transfer Service Arbitrary File Move Privilege Elevation Vulnerability

📋Vendor Advisories

2
Red Hat
libssh2: bits/bytes confusion resulting in truncated Diffie-Hellman secret length2016-02-23
Debian
CVE-2016-0787: libssh2 - The diffie_hellman_sha256 function in kex.c in libssh2 before 1.7.0 improperly t...2016

💬Community

5
Bugzilla
CVE-2016-0787 mingw-libssh2: libssh2: bits/bytes confusion resulting in truncated Diffie-Hellman secret length [epel-7]2016-02-23
Bugzilla
CVE-2016-0787 libssh2: bits/bytes confusion resulting in truncated Diffie-Hellman secret length [epel-5]2016-02-23
Bugzilla
CVE-2016-0787 libssh2: bits/bytes confusion resulting in truncated Diffie-Hellman secret length [fedora-all]2016-02-23
Bugzilla
CVE-2016-0787 mingw-libssh2: libssh2: bits/bytes confusion resulting in truncated Diffie-Hellman secret length [fedora-all]2016-02-23
Bugzilla
CVE-2016-0787 libssh2: bits/bytes confusion resulting in truncated Diffie-Hellman secret length2016-02-09