CVE-2016-0787: Debian Linux

Medium severity, CVSS 5.9. EPSS: 2.6% chance of exploitation in the next 30 days.

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

Affected products

  • Debian Debian Linux: version 7.0 only; version 8.0 only
  • Fedoraproject Fedora: version 22 only; version 23 only
  • LIBSSH2 LIBSSH2: up to and including 1.6.0
  • Opensuse Opensuse: version 13.2 only

Published 2016-04-13. Last modified 2026-06-17.