CVEfocus › CVE database › CVE-2016-0787

CVE-2016-0787

CVSS 5.9 MediumEPSS 2.6% (higher than 86% of CVEs)Published 2016-04-13Updated 2024-08-05Assigner: redhat

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

What to do

Fixed builds are available from Alpine, Debian, Red Hat, Ubuntu: see the table below for the fixed version per release.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

12Fixed

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 16.04libssh2Fixed1.5.0-2ubuntu0.1UBUNTU-CVE-2016-0787
Ubuntu 14.04libssh2Fixed1.4.3-2ubuntu0.1UBUNTU-CVE-2016-0787
Debian 14libssh2Fixed1.5.0-2.1DEBIAN-CVE-2016-0787
Debian 13libssh2Fixed1.5.0-2.1DEBIAN-CVE-2016-0787
Debian 12libssh2Fixed1.5.0-2.1DEBIAN-CVE-2016-0787
Red Hat Enterprise Linux 7libssh2Fixed0:1.4.3-10.el7_2.1RHSA-2016:0428
Red Hat Enterprise Linux 7libssh2-develFixed0:1.4.3-10.el7_2.1RHSA-2016:0428
Red Hat Enterprise Linux 7libssh2-docsFixed0:1.4.3-10.el7_2.1RHSA-2016:0428
Red Hat Enterprise Linux 6libssh2Fixed0:1.4.2-2.el6_7.1RHSA-2016:0428
Red Hat Enterprise Linux 6libssh2-develFixed0:1.4.2-2.el6_7.1RHSA-2016:0428
Red Hat Enterprise Linux 6libssh2-docsFixed0:1.4.2-2.el6_7.1RHSA-2016:0428
Alpine Linux 3.4libssh2Fixed1.7.0-r0ALPINE-CVE-2016-0787

What the vendor says

As published in the CVE record by redhat, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

Vendor advisories:

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.