# CVE-2022-29245: Weak private key generation in SSH.NET

Source: https://junglewise.ai/threats/cve-2022-29245-weak-private-key-generation-in-ssh-net  
Publisher: Junglewise Threat Intelligence, https://junglewise.ai/threats  
Published: 2022-06-01  
License: CC BY 4.0 with a link back

CVE-2022-29245 · Severity: low · CVSS 3.1 · Published 2022-06-01

Weak private key generation in SSH.NET

Technologies: [SSH.NET (NuGet)](https://junglewise.ai/threats/technologies/ssh-net). Vendors: [NuGet](https://junglewise.ai/threats/vendors/nuget).

## Quick answers

**Is CVE-2022-29245 exploited in the wild?** No. Junglewise Threat Intelligence has no report of CVE-2022-29245 being exploited in the wild.

**How severe is CVE-2022-29245?** Low severity, with a CVSS score of 3.1, published 1 June 2022.

**Which products and versions are affected?** SSH.NET (NuGet) ECOSYSTEM:introduced=0,fixed=2020.0.2.

**Is there a fix for CVE-2022-29245?** Yes. SSH.NET (NuGet): upgrade to 2020.0.2 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.

**Am I affected by CVE-2022-29245?** Check whether you run SSH.NET (NuGet) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

## How to fix

- SSH.NET (NuGet): upgrade to 2020.0.2 or later

  ```sh
  dotnet add package SSH.NET --version 2020.0.2
  ```


## Affected products

- SSH.NET (NuGet) ECOSYSTEM:introduced=0,fixed=2020.0.2

## Identifiers

- CVE-2022-29245
- GHSA-72p8-v4hg-v45p

## Related threats

- [SSH.NET ScpClient remote code execution via unquoted SCP paths](https://junglewise.ai/threats/cve-2026-85756-ssh-net-scpclient-remote-code-execution-via-unquoted-scp-paths)
- [SSH.NET ScpClient path traversal in recursive download](https://junglewise.ai/threats/cve-2026-48798-ssh-net-scpclient-path-traversal-in-recursive-download)
