Prevent DoS on deadlocked undecided channel in golang.org/x/crypto/ssh
Published 2 Sept 2026 · Updated 3 Sept 2026
Is your project on an affected golang.org/x/crypto?
Look after several Go apps? Indie watches up to 15 repos, private ones too, for $5 a month. See Indie
Affected package
- Affected
- <0.56.0
- Fixed in
- 0.56.0
go get golang.org/x/crypto@v0.56.0Details
Previously, a channel registered in the mux's chanList is not usable until it is established. A malicious peer was able flood the channel's incomingRequests, deadlocking the entire connection.
Now, we add an atomic established state, set when a channel becomes usable. Until such a time, handlePacket drops every packet other than the open confirmation/failure, without blocking and without tearing down the connection.
Is GO-2026-6354 in any of your client repos?
Checking one package by hand is fine. Checking it across forty client projects is not. NPMscan reads the lockfiles in every GitHub repo you pick, finds each project with an affected golang.org/x/crypto, and gives you the command that fixes it.
More advisories for golang.org/x/crypto
- LowCVE-2026-56855Prevent DoS on deadlocked established channel in golang.org/x/crypto/ssh · 2 Sept 2026
- LowCVE-2026-56854Source-address critical option not enforced for non-public-key auth callbacks in golang.org/x/crypto/ssh · 28 Aug 2026
- LowGO-2026-5932The golang.org/x/crypto/openpgp package is unmaintained, unsafe by design, and has known security issues · 7 Jul 2026
- CriticalCVE-2026-46595golang.org/x/crypto: Invoking VerifiedPublicKeyCallback permissions skip enforcement · 25 Jun 2026
- CriticalCVE-2026-42508golang.org/x/crypto vulnerable to auth bypass via unenforced @revoked status · 25 Jun 2026
- CriticalCVE-2026-39834golang.org/x/crypto vulnerable to infinite loop on large channel writes · 25 Jun 2026
References
Advisory data from OSV.dev (opens OSV.dev in a new tab), refreshed daily.