Information disclosure in libssh2 - CVE-2016-0787

 

Information disclosure in libssh2 - CVE-2016-0787

Published: April 13, 2016 / Updated: August 3, 2020


Vulnerability identifier: #VU33068
CSH Severity: Medium
CVSS v4.0: CVSS:4.0/AV:N/AC:L/AT:P/PR:N/UI:N/VC:H/VI:N/VA:N/SC:N/SI:N/SA:N/E:U/U:Green
CVE-ID: CVE-2016-0787
CWE-ID: CWE-200
Exploitation vector: Remote access
Exploit availability: No public exploit available
Vendor: libssh2.org
Affected software:
libssh2

Detailed vulnerability description

The vulnerability allows a remote non-authenticated attacker to gain access to sensitive information.

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."


How to mitigate CVE-2016-0787

Install update from vendor's website.

Sources