Information Exposure Affecting libssh2 package, versions >=0.0.0


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
2.59% (84th percentile)

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 IDSNYK-COCOAPODS-LIBSSH2-471143
  • published19 Nov 2019
  • disclosed9 Feb 2016
  • creditAndreas Schneide

Introduced: 9 Feb 2016

CVE-2016-0787  (opens in a new tab)
CWE-310  (opens in a new tab)

How to fix?

There is no fixed version for libssh2.

Overview

libssh2 is a client-side C library implementing the SSH2 protocol.

Affected versions of this package are vulnerable to Information Exposure. During the SSHv2 handshake when libssh2 is to get a suitable value for 'group order' in the Diffle Hellman negotiation, it would pass in number of bytes to a function that expected number of bits. This would result in the library generating numbers using only an 8th the number of random bits than what were intended: 128 or 256 bits instead of 1023 or 2047.

CVSS Base Scores

version 3.1