Denial of service from a deadlock before SSH channel establishment (GO-2026-6354)

Messages received before an SSH channel is established can deadlock the entire connection

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

go
require golang.org/x/crypto v0.54.0

After

go
require golang.org/x/crypto v0.56.0

Update go.sum and rebuild the executable to be deployed using the fixed module.

References