CVE-2026-39835 Invoking server panic during CheckHostKey/Authenticate in golang.org/x/crypto/ssh

Medium 5.3 Published Updated

A remote attacker can crash SSH servers using the Go crypto library by presenting a certificate when specific authority callbacks are unset.

Exploited in the wild
Not known
Login needed
Not needed
Attackable
Over the internet
Victim action needed
Not needed
Fix
Available

What is CVE-2026-39835?

CVE-2026-39835 is a medium-severity vulnerability in golang.org/x/crypto/ssh, published on 22 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

Official 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.

Weakness: CWE-476, CWE-295

Which versions are affected by CVE-2026-39835?

3 open source packages ship an affected version, including golang.org/x/crypto. It affects 1 product.

PackageAffectedFixed in
golang.org/x/crypto GoAll versions0.52.0
golang.org/x/crypto GoAll versions0.52.0
golang.org/x/crypto GoAll versions0.52.0

Products include Golang Crypto.

How do I fix CVE-2026-39835?

Upgrade golang.org/x/crypto to 0.52.0 or later.

Is CVE-2026-39835 being exploited?

There is no known exploitation of CVE-2026-39835 in the wild and no public exploit code.

Sources

Also known as AZL-87191, AZL-87248, AZL-87308, AZL-87417, AZL-87465, AZL-87627 and 1112 more.

Is CVE-2026-39835 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free