Information disclosure in libssh2 - CVE-2016-0787
Published: April 13, 2016 / Updated: August 3, 2020
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
Amazon Linux AMI
Fedora
libssh2 (Alpine package)
libssh2
IBM Tivoli Storage Manager
How to mitigate CVE-2016-0787
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
- http://lists.fedoraproject.org/pipermail/package-announce/2016-February/177980.html
- http://lists.fedoraproject.org/pipermail/package-announce/2016-March/178573.html
- http://lists.opensuse.org/opensuse-updates/2016-03/msg00008.html
- http://www.debian.org/security/2016/dsa-3487
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html
- http://www.securityfocus.com/bid/82514
- https://bto.bluecoat.com/security-advisory/sa120
- https://kc.mcafee.com/corporate/index?page=content&id=SB10156
- https://puppet.com/security/cve/CVE-2016-0787
- https://security.gentoo.org/glsa/201606-12
- https://www.libssh2.org/adv_20160223.html
- https://www.libssh2.org/CVE-2016-0787.patch