Skip to content

x/crypto/ssh: server panic during CheckHostKey/Authenticate #79563

@thatnealpatel

Description

@thatnealpatel

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.

Thanks to NCC Group Cryptography Services, sponsored by Teleport for reporting this issue.

This is CVE-2026-39835 and Go issue https://go.dev/issue/79563.


This was a PRIVATE track issue, tracked in http://b/503003289.

Metadata

Metadata

Assignees

No one assigned

    Labels

    NeedsFixThe path to resolution is known, but the work has not been done.Securityrelease-blocker

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions