CVE-2026-39827: Invoking memory leak when rejecting channels can lead to DoS in golang.org/x/crypto/ssh
An authenticated SSH client that repeatedly opened channels which were rejected by the server caused unbounded memory growth, eventually crashing the server process and affecting all connected users. Rejected channels are now properly removed from the connection's internal state and released for garbage collection.
Other sources
Invoking memory leak when rejecting channels can lead to DoS in golang.org/x/crypto/ssh
— Microsoft
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
go/golang.org/x/crypto/sshto a version that resolves this vulnerability.Fixed in 0.52.0 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 8.7.11-7 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.62.0-17 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.31.0-23 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 2.27.0-13 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 25.0.3-18 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.30.10-25 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.7.1-5 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.9.5-14 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 1.12.15-8 - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 0.14.0-15
Event History
Frequently Asked Questions
What is the severity of CVE-2026-39827?
CVE-2026-39827 has a risk rating of 45, indicating a moderate level of severity.
How do I fix CVE-2026-39827?
To fix CVE-2026-39827, ensure that you update to the latest version of golang.org/x/crypto/ssh where the memory leak has been addressed.
What causes the memory leak in CVE-2026-39827?
The memory leak in CVE-2026-39827 is caused by an authenticated SSH client repeatedly opening channels that are rejected by the server.
What are the potential consequences of CVE-2026-39827?
The potential consequences of CVE-2026-39827 include unbounded memory growth leading to denial of service (DoS) for the affected server.
Who is affected by CVE-2026-39827?
Users of the golang.org/x/crypto/ssh library who utilize authenticated SSH clients are affected by CVE-2026-39827.