CWE
200
Advisory Published
Updated

CVE-2016-0787: Infoleak

First published: Wed Apr 13 2016(Updated: )

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

Credit: secalert@redhat.com

Affected SoftwareAffected VersionHow to fix
Fedora=22
Fedora=23
SUSE Linux=13.2
Oracle Libssh2<=1.6.0
Debian=7.0
Debian=8.0

Never miss a vulnerability like this again

Sign up to SecAlerts for real-time vulnerability data matched to your software, aggregated from hundreds of sources.

Frequently Asked Questions

  • What is the severity of CVE-2016-0787?

    CVE-2016-0787 is considered to have a high severity due to its potential impact on SSH session confidentiality.

  • How do I fix CVE-2016-0787?

    To fix CVE-2016-0787, upgrade to libssh2 version 1.7.0 or later, and ensure you are using secure cryptographic settings.

  • What software is affected by CVE-2016-0787?

    CVE-2016-0787 affects libssh2 versions up to 1.6.0 and multiple Linux distributions including Fedora 22, Fedora 23, openSUSE 13.2, and Debian 7.0 or 8.0.

  • What types of attacks does CVE-2016-0787 expose systems to?

    CVE-2016-0787 makes systems vulnerable to man-in-the-middle attacks that can lead to session decryption or interception.

  • Is CVE-2016-0787 a critical vulnerability?

    While not classified as critical, CVE-2016-0787 poses a significant risk due to its exploitation potential affecting SSH communications.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2025 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203