Skip to content
OpenAdvisories
Unscored CVE-2016-0787 EUVD-2016-0800GHSA-6wmj-27wm-wwx6

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 …

Published Apr 13, 2016 · Updated Aug 5, 2024 · 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."

Fixed in Linux distributions

Distributions backport fixes, so the version that fixes this vulnerability differs per release — upgrade to at least the version shown. From the distributions' security trackers and advisories.

ReleasePackageFixed inAdvisory
Debian 14 libssh2 1.5.0-2.1 —
Debian 13 libssh2 1.5.0-2.1 —
Debian 12 libssh2 1.5.0-2.1 —
Debian 8 libssh2 1.4.3-4.1+deb8u1 DSA-3487-1
Debian 7 libssh2 1.4.2-1.1+deb7u2 DSA-3487-1
Show 1 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
Debian 6.0 libssh2 1.2.6-1+deb6u2 DLA-426-1
ReleasePackageFixed inAdvisory
Ubuntu 16.04 LTS libssh2 1.5.0-2ubuntu0.1 —
Ubuntu 14.04 LTS libssh2 1.4.3-2ubuntu0.1 —
ReleasePackageFixed inAdvisory
RHEL 7 libssh2 +2 1.4.3-10.el7_2.1 RHSA-2016:0428
RHEL 6 libssh2 +2 1.4.2-2.el6_7.1 RHSA-2016:0428
ReleasePackageFixed inAdvisory
SLES 12 SP1 libssh2_org 1.4.3-16.1 SUSE-SU-2016:0718-1
SLES 12 libssh2_org 1.4.3-16.1 SUSE-SU-2016:0718-1
SLES 11 SP4 libssh2_org 1.2.9-4.2.6.1 SUSE-SU-2016:0723-1
Show 3 more (older releases, extended support, other products)
ReleasePackageFixed inAdvisory
SLES for SAP 12 SP1 libssh2_org 1.4.3-16.1 SUSE-SU-2016:0718-1
SLES for SAP 12 libssh2_org 1.4.3-16.1 SUSE-SU-2016:0718-1
SLES for SAP 11 SP4 libssh2_org 1.2.9-4.2.6.1 SUSE-SU-2016:0723-1
ReleasePackageFixed inAdvisory
openSUSE Tumbleweed libssh2_org 1.7.0-1.5 openSUSE-SU-2024:10190-1
ReleasePackageFixed inAdvisory
Alpine v3.4 libssh2 1.7.0-r0 —

Advisories 6

References