CVE-2016-0787

MEDIUM

libssh2 <1.7.0 - Info Disclosure

Title source: llm
STIX 2.1

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."

References (12)

Core 12
Core References
Mailing List, Third Party Advisory vendor-advisory x_refsource_fedora
http://lists.fedoraproject.org/pipermail/package-announce/2016-February/177980.html
Vendor Advisory x_refsource_confirm
https://www.libssh2.org/adv_20160223.html
Various Sources x_refsource_confirm
https://puppet.com/security/cve/CVE-2016-0787
Mailing List, Third Party Advisory vendor-advisory x_refsource_fedora
http://lists.fedoraproject.org/pipermail/package-announce/2016-March/178573.html
Third Party Advisory vendor-advisory x_refsource_gentoo
https://security.gentoo.org/glsa/201606-12
Mailing List vendor-advisory x_refsource_suse
http://lists.opensuse.org/opensuse-updates/2016-03/msg00008.html
Various Sources x_refsource_confirm
https://bto.bluecoat.com/security-advisory/sa120
Third Party Advisory vendor-advisory x_refsource_debian
http://www.debian.org/security/2016/dsa-3487
Third Party Advisory, VDB Entry vdb-entry x_refsource_bid
http://www.securityfocus.com/bid/82514

Scores

CVSS v3 5.9
EPSS 0.0315
EPSS Percentile 87.1%
Attack Vector NETWORK
CVSS:3.0/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N

Details

CWE
CWE-200
Status published
Products (6)
debian/debian_linux 7.0
debian/debian_linux 8.0
fedoraproject/fedora 22
fedoraproject/fedora 23
libssh2/libssh2 < 1.6.0
opensuse/opensuse 13.2
Published Apr 13, 2016
Tracked Since Feb 18, 2026