Medium severity5.9NVD Advisory· Published Apr 13, 2016· Updated Jun 17, 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."
AI Insight
LLM-synthesized narrative grounded in this CVE's description and references.
Affected products
20cpe:2.3:o:fedoraproject:fedora:22:*:*:*:*:*:*:*+ 1 more
- cpe:2.3:o:fedoraproject:fedora:22:*:*:*:*:*:*:*
- cpe:2.3:o:fedoraproject:fedora:23:*:*:*:*:*:*:*
- osv-coords13 versionspkg:rpm/opensuse/libssh2_org&distro=openSUSE%20Tumbleweedpkg:rpm/suse/libssh2_org&distro=SUSE%20Linux%20Enterprise%20Desktop%2011%20SP4pkg:rpm/suse/libssh2_org&distro=SUSE%20Linux%20Enterprise%20Desktop%2012pkg:rpm/suse/libssh2_org&distro=SUSE%20Linux%20Enterprise%20Desktop%2012%20SP1pkg:rpm/suse/libssh2_org&distro=SUSE%20Linux%20Enterprise%20Server%2011%20SP4pkg:rpm/suse/libssh2_org&distro=SUSE%20Linux%20Enterprise%20Server%2012pkg:rpm/suse/libssh2_org&distro=SUSE%20Linux%20Enterprise%20Server%2012%20SP1pkg:rpm/suse/libssh2_org&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2011%20SP4pkg:rpm/suse/libssh2_org&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012pkg:rpm/suse/libssh2_org&distro=SUSE%20Linux%20Enterprise%20Server%20for%20SAP%20Applications%2012%20SP1pkg:rpm/suse/libssh2_org&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2011%20SP4pkg:rpm/suse/libssh2_org&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012pkg:rpm/suse/libssh2_org&distro=SUSE%20Linux%20Enterprise%20Software%20Development%20Kit%2012%20SP1
< 1.7.0-1.5+ 12 more
- (no CPE)range: < 1.7.0-1.5
- (no CPE)range: < 1.2.9-4.2.6.1
- (no CPE)range: < 1.4.3-16.1
- (no CPE)range: < 1.4.3-16.1
- (no CPE)range: < 1.2.9-4.2.6.1
- (no CPE)range: < 1.4.3-16.1
- (no CPE)range: < 1.4.3-16.1
- (no CPE)range: < 1.2.9-4.2.6.1
- (no CPE)range: < 1.4.3-16.1
- (no CPE)range: < 1.4.3-16.1
- (no CPE)range: < 1.2.9-4.2.6.1
- (no CPE)range: < 1.4.3-16.1
- (no CPE)range: < 1.4.3-16.1
Patches
Vulnerability mechanics
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.