Description
In versions of golang.org/x/crypto before v0.56.0, a peer can deadlock the entire connection by repeatedly sending requests to an SSH channel that is not yet usable. The issue occurs when handling messages received before channel establishment completes.
Potential impact
A malicious SSH peer may stop normal communication over the connection. Tasks that depend on that connection may stall or continue holding resources, reducing service availability.
Remediation
Update golang.org/x/crypto to v0.56.0 or later, then rebuild and deploy. Review connection limits and timeouts as well, but do not treat them as a substitute for updating the library.
Examples
The following examples show a dependency declaration in go.mod.
Before
require golang.org/x/crypto v0.54.0
After
require golang.org/x/crypto v0.56.0
Update go.sum and rebuild the executable to be deployed using the fixed module.