CVE-2016-0787
Reported by redhat · Published April 13, 2016
libssh2-vc141_xp is fixed in 1.6.0 (NuGet)
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."
Fixed versions
Upgrade to a fixed version or later. Language registries are listed first, then Linux distributions, then vendor products.
| Package | Ecosystem | Fixed in |
|---|---|---|
| libssh2-vc141_xp | NuGet | 1.6.0 |
| libssh2 | Alpine | 1.7.0-r0 |
| libssh2 | libssh2 | 1.6.0 |
Risk scores
Affected products
| Vendor | Product | Versions |
|---|---|---|
| n/a | n/a | n/a |
| NuGet | libssh2-vc141_xp | 0 |
| alpine | libssh2 | 0 |
| n/a | n/a | * |
Timeline
- Mar 10, 2016 CVE Published
- Feb 4, 2022 EPSS Score (30 in total, the first dated here)
- Mar 17, 2026 Security Advisory (4 in total, the first dated here)
- Oct 10, 2026 Coalition ESS Score
- Oct 31, 2026 Distribution Patch
Query this with the API
The same record, from the CLI:
vulnetix vdb vuln CVE-2016-0787
vulnetix vdb fixes CVE-2016-0787
Or with curl, using the org id and key from your account page:
curl -s -H "Authorization: ApiKey ${VULNETIX_ORG_ID}:${VULNETIX_API_KEY}" \
"https://api.vdb.vulnetix.com/v2/vuln/CVE-2016-0787/fixes/registry"
The Community plan is free and allows 50 queries a day. Get a free API key · API quickstart
References
- FEDORA-2016-215a2219b1 vendor-advisoryx_refsource_FEDORA
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- x_refsource_CONFIRM
- FEDORA-2016-7942ee2cc5 vendor-advisoryx_refsource_FEDORA
- GLSA-201606-12 vendor-advisoryx_refsource_GENTOO
- openSUSE-SU-2016:0639 vendor-advisoryx_refsource_SUSE
- x_refsource_CONFIRM
- DSA-3487 vendor-advisoryx_refsource_DEBIAN
- 82514 vdb-entryx_refsource_BID
- https://nvd.nist.gov/vuln/detail/CVE-2016-0787 advisory