Back
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…
Medium5.9EPSS 2.6%
- Published
- Updated
- Reserved
- Assigned by
- redhat
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."
Scores
| Scored by | CVSS | Score | Vector |
|---|---|---|---|
| NVDNVD · Modified | 3.0 | Medium5.9 | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
- EPSS (exploitation in 30 days)
- 2.6% · top 15% of all CVEs (2 Nov 2026)
Loading the EPSS history…
The list uses the assigner's score when there is one, then CISA's, then NVD's: Medium 5.9.
Weakness
Affected products
n/a
- affected n/a
References (12)
- FEDORA-2016-215a2219b1 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- https://kc.mcafee.com/corporate/index?page=content&id=SB10156 (opens in a new tab)x_refsource_CONFIRMx_transferred
- http://www.oracle.com/technetwork/topics/security/linuxbulletinjan2016-2867209.html (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://www.libssh2.org/CVE-2016-0787.patch (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://www.libssh2.org/adv_20160223.html (opens in a new tab)x_refsource_CONFIRMx_transferred
- https://puppet.com/security/cve/CVE-2016-0787 (opens in a new tab)x_refsource_CONFIRMx_transferred
- FEDORA-2016-7942ee2cc5 (opens in a new tab)vendor-advisoryx_refsource_FEDORAx_transferred
- GLSA-201606-12 (opens in a new tab)vendor-advisoryx_refsource_GENTOOx_transferred
- openSUSE-SU-2016:0639 (opens in a new tab)vendor-advisoryx_refsource_SUSEx_transferred
- https://bto.bluecoat.com/security-advisory/sa120 (opens in a new tab)x_refsource_CONFIRMx_transferred
- DSA-3487 (opens in a new tab)vendor-advisoryx_refsource_DEBIANx_transferred
- 82514 (opens in a new tab)vdb-entryx_refsource_BIDx_transferred
Sources
The same CVE in the primary databases and aggregators, to check against.
- CVE.org record (opens in a new tab)
- CVE List JSON (GitHub) (opens in a new tab)
- NVD (opens in a new tab)
- FIRST EPSS (opens in a new tab)
- OSV.dev (opens in a new tab)
- GitHub Advisories (opens in a new tab)
- CIRCL Vulnerability-Lookup (opens in a new tab)
Record last updated .