GO-2026-5015

Invoking server panic during CheckHostKey/Authenticate in golang.org/x/crypto/ssh

At a glance

Published
Updated
CVE
CVE-2026-39835
Aliases
GHSA-78mq-xcr3-xm33

Description

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.

Affected packages

PackageVersions
Go · golang.org/x/cryptointroduced 0, fixed 0.52.0

References

Sources

SourceLicence
OSV.devCC-BY 4.0 — Go Vulnerability Database