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: 8.2 [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]
CVE-ID: CVE-2016-0787
CWE-ID: CWE-200
Exploitation vector: Remote access
Exploit availability: No public exploit available

Vulnerability details

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


Affected software

libssh2
Amazon Linux AMI
Fedora
libssh2 (Alpine package)
libssh2
IBM Tivoli Storage Manager

How to mitigate CVE-2016-0787

Install update from vendor's website.

libssh2 - update to 1.7.0
libssh2 (Alpine package) - update to 1.4.3-r1
libssh2 - addressed in versions 1.5.0-2.fc22, 1.6.0-4.fc23
IBM Tivoli Storage Manager - update to 7.1.4.1

External References

Related Security Bulletins