CVE-2022-29245
Last modified
CVE-2022-29245 is a medium-severity vulnerability rated 5.9/10 on the CVSS scale. 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`. EPSS estimates a 1.38% chance of exploitation in the next 30 days.
Description
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.
Metrics
CVSS:3.1/AV:N/AC:H/PR:N/UI:N/S:U/C:H/I:N/A:N
Weakness Enumeration
Affected Software
| Vendor | Product | Versions |
|---|---|---|
| Ssh.Net Project | Ssh.Net | 2020.0.0 |
| Ssh.Net Project | Ssh.Net | 2020.0.1 |
References
- https://github.com/sshnet/SSH.NET/commit/03c6d60736b8f7b42e44d6989a53f9b644a091fbPatch, Third Party Advisory
- https://github.com/sshnet/SSH.NET/releases/tag/2020.0.2Release Notes, Third Party Advisory
- https://github.com/sshnet/SSH.NET/security/advisories/GHSA-72p8-v4hg-v45pExploit, Mitigation, Third Party Advisory
- https://github.com/sshnet/SSH.NET/commit/03c6d60736b8f7b42e44d6989a53f9b644a091fbPatch, Third Party Advisory
- https://github.com/sshnet/SSH.NET/releases/tag/2020.0.2Release Notes, Third Party Advisory
- https://github.com/sshnet/SSH.NET/security/advisories/GHSA-72p8-v4hg-v45pExploit, Mitigation, Third Party Advisory
Timeline
- Published
- Last Modified
- Status
- Modified
Frequently Asked Questions
What is CVE-2022-29245?
How severe is CVE-2022-29245?
How do I fix CVE-2022-29245?
How Strix Helps
- How Strix found a critical auth bypass in etcdStrix autonomously discovered a critical authentication bypass in etcd, later designated CVE-2026-33413.
- Autonomous PentestingAI agents that find and validate exploitable vulnerabilities like this one across your applications.
- PR ReviewsPentest every pull request so vulnerable code is caught before it ships to production.
- AI Penetration TestingHow AI-driven penetration testing continuously covers your attack surface.
Related CVEs from 2022
- CVE-2022-2924Cross-site Scripting (XSS) - Stored in GitHub repository yet…5.4
- CVE-2022-29240Scylla is a real-time big data database that is API-compatib…8.1
- CVE-2022-29241Jupyter Server provides the backend (i.e. the core services,…8.8
- CVE-2022-29242GOST engine is a reference implementation of the Russian GOS…7.5
- CVE-2022-29243Nextcloud Server is the file server software for Nextcloud, …4.3
- CVE-2022-29244npm pack ignores root-level .gitignore and .npmignore file e…7.5
- CVE-2022-29246Azure RTOS USBX is a USB host, device, and on-the-go (OTG) e…9.8
- CVE-2022-29247Electron is a framework for writing cross-platform desktop a…9.8
- CVE-2022-29248Guzzle is a PHP HTTP client. Guzzle prior to versions 6.5.6 …8.1
- CVE-2022-29249JavaEZ is a library that adds new functions to make Java eas…7.5
- CVE-2022-2925Cross-site Scripting (XSS) - Stored in GitHub repository app…5.4
- CVE-2022-29250GLPI is a Free Asset and IT Management Software package, tha…6.5
Are you affected by CVE-2022-29245?
Run a free Strix scan to check your systems for this vulnerability.
Scan your code nowSource: NVD / NIST
