Advisory record · GHSA-72p8-v4hg-v45p

Weak private key generation in SSH.NET

CVSS 6.5 MediumEPSS 0.015 · 74th percentile

Published by the GitHub Advisory Database at 1 Jun 2022, 19:50 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

PackageEcosystemAffectedFixed in
SSH.NETNuGet<2020.0.22020.0.2
Identifiers
GHSA-72p8-v4hg-v45p · CVE-2022-29245
Weakness (CWE)
CWE-330 · CWE-338
Published
1 Jun 2022
Updated
8 Nov 2023

Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

SSH.NET versions before 2020.0.2 are vulnerable. During an X25519 key exchange, the client's private key is generated with System.Random, which is not cryptographically secure and whose seed can be brute-forced. An attacker able to eavesdrop on the connection could then decrypt the session. Upgrade to version 2020.0.2 or later. Alternatively, disable the curve25519-sha256 and [email protected] key exchange algorithms before connecting.

Written 9 Nov 2026.

Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

Severity and exploitation

ScoreRatingCVSSVectorSource
6.5 Medium 3.1 CVSS:3.1/AV:N/AC:L/PR:N/UI:R/S:U/C:H/I:N/A:N CNA (GitHub_M)
  • CISA KEV Not listed.
  • EPSS 0.015, the 74th percentile, on 17 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

Timeline

  1. 31 Oct 2026, 15:24 UTC First seen by agentprime
  2. 31 Oct 2026, 15:24 UTC Confirmed by OSV

Sources

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.