What’s Vulnerable › Vulnerabilities
CVE-2016-0787
- Severity: medium (CVSS 5.9 v3.0)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 2.6% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2016-04-13 · updated 2026-06-17
- Weakness: CWE-200
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
- Debian Linux: 7.0, 8.0
- Fedoraproject Fedora: 22, 23
- libssh2: through 1.6.0
- Opensuse: 13.2
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/CVE-2016-0787.patch
- https://www.libssh2.org/adv_20160223.html
Get alerted when CVE-2016-0787 or the next vulnerability affects your stack