CVE-2026-46598 Invoking pathological inputs can lead to client panic in golang.org/x/crypto/ssh/agent

Medium 5.3 Published Updated

Attackers can cause a client panic in the Go SSH agent library by sending crafted inputs, leading to a denial of service.

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-46598?

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

Official description

For certain crafted inputs, a 'ed25519.PrivateKey' was created by casting malformed wire bytes, leading to a panic when used.

Weakness: CWE-129

Which versions are affected by CVE-2026-46598?

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-46598?

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

Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.

Is CVE-2026-46598 being exploited?

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

Sources

Also known as AZL-87185, AZL-87218, AZL-87329, AZL-87642, AZL-87708, AZL-88203 and 1101 more.

Is CVE-2026-46598 in your software?

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

Check your SBOMs for free