Insecure Encryption Affecting ssh.net package, versions [2020.0.0,2020.0.2)


Severity

Recommended
0.0
medium
0
10

CVSS assessment made by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.16% (53rd 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 Learn

Learn about Insecure Encryption vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-DOTNET-SSHNET-2849638
  • published1 Jun 2022
  • disclosed1 Jun 2022
  • credityaumn-synacktiv

Introduced: 1 Jun 2022

CVE-2022-29245  (opens in a new tab)
CWE-326  (opens in a new tab)

How to fix?

Upgrade SSH.NET to version 2020.0.2 or higher.

Overview

SSH.NET is a Secure Shell (SSH) library for .NET, optimized for parallelism and with broad framework support.

Affected versions of this package are vulnerable to Insecure Encryption during the X25519 key exchange. The client’s private key is being generated with System.Random, which is not a cryptographically secure random number generator.

CVSS Scores

version 3.1