Medium severity5.9NVD Advisory· Published Apr 13, 2016· Updated May 6, 2026
CVE-2016-0787
CVE-2016-0787
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."
Affected products
6cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:o:debian:debian_linux:7.0:*:*:*:*:*:*:*
- cpe:2.3:o:debian:debian_linux:8.0:*:*:*:*:*:*:*
cpe:2.3:o:fedoraproject:fedora:22:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:o:fedoraproject:fedora:22:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:23:*:*:*:*:*:*:*
Patches
0No patches discovered yet.
Vulnerability mechanics
AI mechanics synthesis has not run for this CVE yet.
References
12- www.libssh2.org/CVE-2016-0787.patchnvdPatch
- security.gentoo.org/glsa/201606-12nvdThird Party Advisory
- www.libssh2.org/adv_20160223.htmlnvdVendor Advisory
- lists.fedoraproject.org/pipermail/package-announce/2016-February/177980.htmlnvd
- lists.fedoraproject.org/pipermail/package-announce/2016-March/178573.htmlnvd
- lists.opensuse.org/opensuse-updates/2016-03/msg00008.htmlnvd
- www.debian.org/security/2016/dsa-3487nvd
- www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.htmlnvd
- www.securityfocus.com/bid/82514nvd
- bto.bluecoat.com/security-advisory/sa120nvd
- kc.mcafee.com/corporate/indexnvd
- puppet.com/security/cve/CVE-2016-0787nvd
News mentions
0No linked articles in our index yet.