CVE-2026-46597 Invoking byte arithmetic causes underflow and panic in golang.org/x/crypto/ssh
A remote attacker can cause a server-side panic and denial of service in the Go SSH library by sending crafted inputs that trigger an integer underflow.
- 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-46597?
CVE-2026-46597 is a high-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
An incorrectly placed cast from bytes to int allowed for server-side panic in the AES-GCM packet decoder for well-crafted inputs.
Weakness: CWE-704
Which versions are affected by CVE-2026-46597?
3 open source packages ship an affected version, including golang.org/x/crypto. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
golang.org/x/crypto Go | All versions | 0.52.0 |
golang.org/x/crypto Go | All versions | 0.52.0 |
golang.org/x/crypto Go | All versions | 0.52.0 |
Products include Golang Crypto.
How do I fix CVE-2026-46597?
Upgrade golang.org/x/crypto to 0.52.0 or later.
Is CVE-2026-46597 being exploited?
There is no known exploitation of CVE-2026-46597 in the wild and no public exploit code.
Other vulnerabilities in golang.org/x/crypto/ssh
- CVE-2026-46595 Invoking VerifiedPublicKeyCallback permissions skip enforcement in golang.org/x/crypto/ssh
- CVE-2026-39830 Invoking client can cause server deadlock on unexpected responses in golang.org/x/crypto/ssh
- CVE-2026-39831 Invoking bypass of FIDO/U2F security keys physical interaction in golang.org/x/crypto/ssh
- CVE-2026-39832 Invoking agent constraints dropped when forwarding keys in golang.org/x/crypto/ssh/agent
- CVE-2026-39833 Invoking key constraints not enforced in golang.org/x/crypto/ssh/agent
Sources
Also known as AZL-87194, AZL-87254, AZL-87278, AZL-87405, AZL-87444, AZL-87630 and 1120 more.