Insecure Encryption Affecting ssh.net Open this link in a new tab package, versions [2020.0.0,2020.0.2)


0.0
medium
  • Attack Complexity

    High

  • User Interaction

    Required

  • Confidentiality

    High

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-DOTNET-SSHNET-2849638

  • published

    1 Jun 2022

  • disclosed

    1 Jun 2022

  • credit

    yaumn-synacktiv

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.