CVE-2016-0787
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
02 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
03 Exploitation and scoring
- Exploitation
- Not assessed. CISA has not published an exploitation assessment for this record, and it is not in the KEV catalog. That is an absence of assessment, not a finding of no risk.
- SSVC decision
- Not assessed by CISA
- EPSS probability
- 2.59% probability of exploitation activity in the next 30 days.
- EPSS percentile
- Equal to or higher than the score of 85.1% of scored records. A rank, not a probability.
- NVD base score
- 5.9 (CVSS v3.x), scored by the NVD independently of the CNA.
- NVD CVSS vector
- CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
- NVD analysis status
- Modified. NVD last modified this record on 2026-06-17.
- Red Hat severity
- Moderate. Red Hat's rating for its own products, not a CVSS rating.
Exploit-prediction scores from FIRST. Independent scoring and analysis status from the NVD. Vendor severity from Red Hat. Exploitation assessment and catalog membership from CISA.
04 Metadata
- Published
- 2016-04-13 17:00Z10 YR AGO
- Last updated
- 2024-08-05 22:30Z2 YR AGO
- Reserved
- 2015-12-16
- Assigning CNA
- redhat
- Record state
- PUBLISHED
- Severity
- Not rated by the issuing CNA
- CNA CVSS vector
- Not published by the issuing CNA
- Weaknesses
- Data version
- 5.1
- Document digest
- 74d8a84b110954a4fd61c5cc1340bd5f4c2c7ab53ae1cb401a56dc838dc63973
05 Affected products
06 References
- lists.fedoraproject.orgFEDORA-2016-215a2219b1http://lists.fedoraproject.org/pipermail/package-announce/2016-February/177980.html
- kc.mcafee.comhttps://kc.mcafee.com/corporate/index?page=content&id=SB10156
- www.oracle.comhttp://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html
- www.libssh2.orghttps://www.libssh2.org/CVE-2016-0787.patch
- www.libssh2.orghttps://www.libssh2.org/adv_20160223.html
- puppet.comhttps://puppet.com/security/cve/CVE-2016-0787
- lists.fedoraproject.orgFEDORA-2016-7942ee2cc5http://lists.fedoraproject.org/pipermail/package-announce/2016-March/178573.html
- security.gentoo.orgGLSA-201606-12https://security.gentoo.org/glsa/201606-12
- lists.opensuse.orgopenSUSE-SU-2016:0639http://lists.opensuse.org/opensuse-updates/2016-03/msg00008.html
- bto.bluecoat.comhttps://bto.bluecoat.com/security-advisory/sa120
- www.debian.orgDSA-3487http://www.debian.org/security/2016/dsa-3487
- www.securityfocus.com82514http://www.securityfocus.com/bid/82514
07 Fixed in
Debian 12
- libssh2 Fixed in 1.5.0-2.1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 13
- libssh2 Fixed in 1.5.0-2.1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Debian 14
- libssh2 Fixed in 1.5.0-2.1
Source: Debian Security Tracker, the Debian security team. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 14.04 LTS
- libssh2 Fixed in 1.4.3-2ubuntu0.1
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
Ubuntu 16.04 LTS
- libssh2 Fixed in 1.5.0-2ubuntu0.1
Source: Ubuntu, Canonical Ltd. Licensed under CC BY-SA 4.0. Received through OSV.dev. Reformatted by exploit.cc.
A release or ecosystem missing from this list has no record here. It may be unaffected or not covered by the source. Source notices and licences.