Incorrect Type Conversion or Cast Affecting libssh2 package, versions <0:1.4.2-2.el6_7.1


0.0
medium

Snyk CVSS

    Attack Complexity Low
    User Interaction Required

    Threat Intelligence

    EPSS 0.55% (78th percentile)
Expand this section
NVD
5.9 medium
Expand this section
Red Hat
5.4 medium

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk ID SNYK-CENTOS6-LIBSSH2-2128154
  • published 26 Jul 2021
  • disclosed 23 Feb 2016

How to fix?

Upgrade Centos:6 libssh2 to version 0:1.4.2-2.el6_7.1 or higher.

NVD Description

Note: Versions mentioned in the description apply only to the upstream libssh2 package and not the libssh2 package as distributed by Centos. See How to fix? for Centos:6 relevant fixed versions and status.

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