CVE-2026-39835: Invoking server panic during CheckHostKey/Authenticate in golang.org/x/crypto/ssh
Invoking server panic during CheckHostKey/Authenticate in golang.org/x/crypto/ssh
Other sources
SSH servers which use CertChecker as a public key callback without setting IsUserAuthority or IsHostAuthority could be caused to panic by a client presenting a certificate. CertChecker now returns an error instead of panicking when these callbacks are nil.
— MITRE
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 1.31.0-23 - 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 0.14.0-15 - 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 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 2.27.0-13 - 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 1.7.1-5
Event History
Frequently Asked Questions
What is the severity of CVE-2026-39835?
The severity of CVE-2026-39835 is rated as 33 on a risk scale.
How do I fix CVE-2026-39835?
To fix CVE-2026-39835, ensure that the IsUserAuthority or IsHostAuthority callbacks are set when using CertChecker.
What systems are affected by CVE-2026-39835?
CVE-2026-39835 affects SSH servers utilizing the CertChecker from golang.org/x/crypto/ssh.
What type of vulnerability is CVE-2026-39835?
CVE-2026-39835 is classified as a Null Pointer Dereference vulnerability.
What happens if CVE-2026-39835 is exploited?
Exploitation of CVE-2026-39835 can cause the SSH server to panic, resulting in a denial of service.