{"schema":"/api/v1/schema/cve.json","api_version":"1","id":"CVE-2022-29245","published":"2022-05-31T17:15:07.837000Z","last_modified":"2026-06-17T04:39:54.520000Z","status":"Modified","cvss":{"version":"3.1","score":5.9,"severity":"MEDIUM","vector":"CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N","source":"nvd@nist.gov","primary":true},"auth":false,"cwes":["CWE-338"],"cpes":[{"criteria":"cpe:2.3:a:ssh.net_project:ssh.net:2020.0.0:-:*:*:*:.net:*:*","part":"a","vendor":"ssh.net_project","product":"ssh.net","version":"2020.0.0"},{"criteria":"cpe:2.3:a:ssh.net_project:ssh.net:2020.0.0:beta1:*:*:*:.net:*:*","part":"a","vendor":"ssh.net_project","product":"ssh.net","version":"2020.0.0"},{"criteria":"cpe:2.3:a:ssh.net_project:ssh.net:2020.0.1:*:*:*:*:.net:*:*","part":"a","vendor":"ssh.net_project","product":"ssh.net","version":"2020.0.1"}],"cpes_truncated":false,"vendors":["ssh.net_project"],"products":["ssh.net_project/ssh.net"],"ssvc":{"exploitation":"poc","automatable":"no","technical_impact":"partial"},"epss":{"score":0.01371,"percentile":0.72127,"date":"2026-11-29","model_version":"v2026.06.15"},"cat":"app","platform":"multi","eol":false,"packages":[{"advisory":"GHSA-72p8-v4hg-v45p","ecosystem":"NuGet","name":"SSH.NET","purl":"pkg:nuget/SSH.NET","ranges":[{"introduced":"0","fixed":"2020.0.2"}],"versions":["2011.12.7","2011.7.29","2011.9.28","2012.12.3","2012.20.12","2012.21.12","2012.3.9","2013.1.27","2013.1.8","2013.4.7","2014.4.6-beta1","2014.4.6-beta2","2016.0.0","2016.0.0-beta1","2016.0.0-beta2","2016.0.0-beta3","2016.1.0","2016.1.0-beta1","2016.1.0-beta2","2016.1.0-beta3","2016.1.0-beta4","2020.0.0","2020.0.0-beta1","2020.0.1"],"versions_truncated":false}],"severity":"medium","priority_score":51,"links":{"html_es":"/es/cve/CVE-2022-29245/","html_en":"/en/cve/CVE-2022-29245/","nvd":"https://nvd.nist.gov/vuln/detail/CVE-2022-29245","cve_org":"https://www.cve.org/CVERecord?id=CVE-2022-29245"},"untrusted":{"vendor_name":"Ssh.net Project","product_name":"Ssh.net","desc_en":"SSH.NET is a Secure Shell (SSH) library for .NET. In versions 2020.0.0 and 2020.0.1, during an `X25519` key exchange, the client’s private key is generated with `System.Random`. `System.Random` is not a cryptographically secure random number generator, it must therefore not be used for cryptographic purposes. When establishing an SSH connection to a remote host, during the X25519 key exchange, the private key is generated with a weak random number generator whose seed can be brute forced. This allows an attacker who is able to eavesdrop on the communications to decrypt them. Version 2020.0.2 contains a patch for this issue. As a workaround, one may disable support for `curve25519-sha256` and `curve25519-sha256@libssh.org` key exchange algorithms.","affected":[{"untrusted_vendor":"sshnet","untrusted_product":"SSH.NET","versions":[]}],"references":[{"url":"https://github.com/sshnet/SSH.NET/blob/bc99ada7da3f05f50d9379f2644941d91d5bf05a/src/Renci.SshNet/Security/KeyExchangeECCurve25519.cs#L51","tags":["Exploit","Third Party Advisory"]},{"url":"https://github.com/sshnet/SSH.NET/commit/03c6d60736b8f7b42e44d6989a53f9b644a091fb","tags":["Patch","Third Party Advisory"]},{"url":"https://github.com/sshnet/SSH.NET/releases/tag/2020.0.2","tags":["Release Notes","Third Party Advisory"]},{"url":"https://github.com/sshnet/SSH.NET/security/advisories/GHSA-72p8-v4hg-v45p","tags":["Exploit","Mitigation","Third Party Advisory"]}]}}