CVE-2016-0787
Summary
| CVE | CVE-2016-0787 |
|---|---|
| State | PUBLISHED |
| Assigner | redhat |
| Source Priority | CVE Program / NVD first with legacy fallback |
| Published | 2016-04-13 17:59:10 UTC |
| Updated | 2026-05-06 22:30:45 UTC |
| 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." |
Risk And Classification
Primary CVSS: v3.0 5.9 MEDIUM from [email protected]
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Problem Types: CWE-200 | n/a
| Version | Source | Type | Score | Severity | Vector |
|---|---|---|---|---|---|
| 3.0 | [email protected] | Primary | 5.9 | MEDIUM | CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N |
| 2.0 | [email protected] | Primary | 4.3 | AV:N/AC:M/Au:N/C:P/I:N/A:N |
CVSS v3.0 Breakdown
Attack Vector
NetworkAttack Complexity
HighPrivileges Required
NoneUser Interaction
NoneScope
UnchangedConfidentiality
HighIntegrity
NoneAvailability
NoneCVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
CVSS v2.0 Breakdown
Access Vector
NetworkAccess Complexity
MediumAuthentication
NoneConfidentiality
PartialIntegrity
NoneAvailability
NoneAV:N/AC:M/Au:N/C:P/I:N/A:N
NVD Known Affected Configurations (CPE 2.3)
| Type | Vendor | Product | Version | Update | Edition | Language |
|---|---|---|---|---|---|---|
| Operating System | Debian | Debian Linux | 7.0 | All | All | All |
| Operating System | Debian | Debian Linux | 8.0 | All | All | All |
| Operating System | Fedoraproject | Fedora | 22 | All | All | All |
| Operating System | Fedoraproject | Fedora | 23 | All | All | All |
| Application | Libssh2 | Libssh2 | All | All | All | All |
| Operating System | Opensuse | Opensuse | 13.2 | All | All | All |
Vendor Declared Affected Products
References
| Reference | Source | Link | Tags |
|---|---|---|---|
| libssh2 Security Advisory: Truncated Difffie-Hellman secret length | af854a3a-2127-422b-91ae-364da2661108 | www.libssh2.org | Vendor Advisory |
| [SECURITY] Fedora 23 Update: libssh2-1.6.0-4.fc23 | af854a3a-2127-422b-91ae-364da2661108 | lists.fedoraproject.org | |
| libssh and libssh2: Multiple vulnerabilities (GLSA 201606-12) — Gentoo security | af854a3a-2127-422b-91ae-364da2661108 | security.gentoo.org | Third Party Advisory |
| openSUSE-SU-2016:0639-1: moderate: Security update for libssh2_org | af854a3a-2127-422b-91ae-364da2661108 | lists.opensuse.org | |
| www.libssh2.org/CVE-2016-0787.patch | af854a3a-2127-422b-91ae-364da2661108 | www.libssh2.org | Patch |
| Broadcom Support Portal | af854a3a-2127-422b-91ae-364da2661108 | bto.bluecoat.com | |
| RETIRED: libssh2 'src/kex.c' Security Bypass Vulnerability | af854a3a-2127-422b-91ae-364da2661108 | www.securityfocus.com | |
| Oracle Linux Bulletin - January 2016 | af854a3a-2127-422b-91ae-364da2661108 | www.oracle.com | |
| [SECURITY] Fedora 22 Update: libssh2-1.5.0-2.fc22 | af854a3a-2127-422b-91ae-364da2661108 | lists.fedoraproject.org | |
| CVE-2016-0787 - libssh2 Vulnerability | Puppet | af854a3a-2127-422b-91ae-364da2661108 | puppet.com | |
| Debian -- Security Information -- DSA-3487-1 libssh2 | af854a3a-2127-422b-91ae-364da2661108 | www.debian.org | |
| McAfee Security Bulletin: McAfee Web Gateway update fixes multiple vulnerabilities | af854a3a-2127-422b-91ae-364da2661108 | kc.mcafee.com | |
| CVE Program record | CVE.ORG | www.cve.org | canonical |
| NVD vulnerability detail | NVD | nvd.nist.gov | canonical, analysis |
No vendor comments have been submitted for this CVE.
There are currently no legacy QID mappings associated with this CVE.