CRITICAL 9.1
GHSA-vgwf-h737-ff37
golang.org/x/crypto/ssh: Invoking client can cause server deadlock on unexpected responses
Details
A malicious SSH peer could send unsolicited global request responses to fill an internal buffer, blocking the connection's read loop. The blocked goroutine could not be released by calling Close(), resulting in a resource leak per connection. Unsolicited global responses are now discarded.
Are you affected?
Enter the version of the package you're using.
Affected packages
Go / golang.org/x/crypto/ssh
Introduced in:
0 Fixed in: 0.52.0 Fix
go get golang.org/x/crypto/ssh@v0.52.0 References
- https://nvd.nist.gov/vuln/detail/CVE-2026-39830 [ADVISORY]
- https://cs.opensource.google/go/x/crypto [PACKAGE]
- https://go.dev/cl/781640 [WEB]
- https://go.dev/cl/781664 [WEB]
- https://go.dev/issue/79564 [WEB]
- https://groups.google.com/g/golang-announce/c/a082jnz-LvI [WEB]
- https://pkg.go.dev/vuln/GO-2026-5017 [WEB]