CVE-2016-0787 Weak cryptography in n/a
Man-in-the-middle attackers can decrypt or intercept SSH sessions due to improper secret truncation in libssh2.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2016-0787?
CVE-2016-0787 is a medium-severity vulnerability in Debian Debian Linux, published on 13 Apr 2016. An attacker can exploit it over the internet without logging in, with no action from the victim.
Official 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."
Weakness: CWE-200
Which versions are affected by CVE-2016-0787?
It affects 4 products.
Linux distribution packages (40)
libssh2 Red Hat:enterprise_linux:6::client | All versions | 0:1.4.2-2.el6_7.1 |
libssh2-debuginfo Red Hat:enterprise_linux:6::client | All versions | 0:1.4.2-2.el6_7.1 |
libssh2-devel Red Hat:enterprise_linux:6::client | All versions | 0:1.4.2-2.el6_7.1 |
libssh2-docs Red Hat:enterprise_linux:6::client | All versions | 0:1.4.2-2.el6_7.1 |
libssh2 Red Hat:enterprise_linux:6::computenode | All versions | 0:1.4.2-2.el6_7.1 |
libssh2-debuginfo Red Hat:enterprise_linux:6::computenode | All versions | 0:1.4.2-2.el6_7.1 |
libssh2-devel Red Hat:enterprise_linux:6::computenode | All versions | 0:1.4.2-2.el6_7.1 |
libssh2-docs Red Hat:enterprise_linux:6::computenode | All versions | 0:1.4.2-2.el6_7.1 |
libssh2 Red Hat:enterprise_linux:6::server | All versions | 0:1.4.2-2.el6_7.1 |
libssh2-debuginfo Red Hat:enterprise_linux:6::server | All versions | 0:1.4.2-2.el6_7.1 |
libssh2-devel Red Hat:enterprise_linux:6::server | All versions | 0:1.4.2-2.el6_7.1 |
libssh2-docs Red Hat:enterprise_linux:6::server | All versions | 0:1.4.2-2.el6_7.1 |
libssh2 Red Hat:enterprise_linux:6::workstation | All versions | 0:1.4.2-2.el6_7.1 |
libssh2-debuginfo Red Hat:enterprise_linux:6::workstation | All versions | 0:1.4.2-2.el6_7.1 |
libssh2-devel Red Hat:enterprise_linux:6::workstation | All versions | 0:1.4.2-2.el6_7.1 |
libssh2-docs Red Hat:enterprise_linux:6::workstation | All versions | 0:1.4.2-2.el6_7.1 |
libssh2 Red Hat:enterprise_linux:7::client | All versions | 0:1.4.3-10.el7_2.1 |
libssh2-debuginfo Red Hat:enterprise_linux:7::client | All versions | 0:1.4.3-10.el7_2.1 |
libssh2-devel Red Hat:enterprise_linux:7::client | All versions | 0:1.4.3-10.el7_2.1 |
libssh2-docs Red Hat:enterprise_linux:7::client | All versions | 0:1.4.3-10.el7_2.1 |
libssh2 Red Hat:enterprise_linux:7::computenode | All versions | 0:1.4.3-10.el7_2.1 |
libssh2-debuginfo Red Hat:enterprise_linux:7::computenode | All versions | 0:1.4.3-10.el7_2.1 |
libssh2-devel Red Hat:enterprise_linux:7::computenode | All versions | 0:1.4.3-10.el7_2.1 |
libssh2-docs Red Hat:enterprise_linux:7::computenode | All versions | 0:1.4.3-10.el7_2.1 |
libssh2 Red Hat:enterprise_linux:7::server | All versions | 0:1.4.3-10.el7_2.1 |
libssh2-debuginfo Red Hat:enterprise_linux:7::server | All versions | 0:1.4.3-10.el7_2.1 |
libssh2-devel Red Hat:enterprise_linux:7::server | All versions | 0:1.4.3-10.el7_2.1 |
libssh2-docs Red Hat:enterprise_linux:7::server | All versions | 0:1.4.3-10.el7_2.1 |
libssh2 Red Hat:enterprise_linux:7::workstation | All versions | 0:1.4.3-10.el7_2.1 |
libssh2-debuginfo Red Hat:enterprise_linux:7::workstation | All versions | 0:1.4.3-10.el7_2.1 |
libssh2-devel Red Hat:enterprise_linux:7::workstation | All versions | 0:1.4.3-10.el7_2.1 |
libssh2-docs Red Hat:enterprise_linux:7::workstation | All versions | 0:1.4.3-10.el7_2.1 |
libssh2_org SUSE:Linux Enterprise Desktop 11 SP4 | All versions | 1.2.9-4.2.6.1 |
libssh2_org SUSE:Linux Enterprise Desktop 12 | All versions | 1.4.3-16.1 |
libssh2_org SUSE:Linux Enterprise Desktop 12 SP1 | All versions | 1.4.3-16.1 |
libssh2_org SUSE:Linux Enterprise Server 11 SP4 | All versions | 1.2.9-4.2.6.1 |
libssh2_org SUSE:Linux Enterprise Server 12 | All versions | 1.4.3-16.1 |
libssh2_org SUSE:Linux Enterprise Server 12 SP1 | All versions | 1.4.3-16.1 |
libssh2_org SUSE:Linux Enterprise Server for SAP Applications 11 SP4 | All versions | 1.2.9-4.2.6.1 |
libssh2_org SUSE:Linux Enterprise Server for SAP Applications 12 | All versions | 1.4.3-16.1 |
Products include Debian Debian Linux, Fedoraproject Fedora, Libssh2 Libssh2, Opensuse Opensuse.
How do I fix CVE-2016-0787?
Upgrade to a fixed version.
Is CVE-2016-0787 being exploited?
There is no known exploitation of CVE-2016-0787 in the wild and no public exploit code.
Other vulnerabilities in Debian Debian Linux
Sources
Also known as ALPINE-CVE-2016-0787, DEBIAN-CVE-2016-0787, DLA-426-1, DSA-3487-1, GHSA-6wmj-27wm-wwx6, MGASA-2016-0392 and 4 more.