golang.org/x/crypto/ssh: Invoking client can cause server deadlock on unexpected responses
Critical severity
GitHub Reviewed
Published
Jun 25, 2026
to the GitHub Advisory Database
•
Updated Jun 25, 2026
Description
Published by the National Vulnerability Database
May 22, 2026
Published to the GitHub Advisory Database
Jun 25, 2026
Reviewed
Jun 25, 2026
Last updated
Jun 25, 2026
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.
References