CVE-2026-56855

Prevent DoS on deadlocked established channel in golang.org/x/crypto/ssh

Published Sep 2, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
Previously, after a channel has been established, a malicious peer could send crafted messages that would deadlock the entire connection. Now, we handle all RFC 4254 channel messages; global requests are handled explicitly. Then, treat all other messages as a protocol error and tear the connection down instead of buffering and blocking.

Analysis

AI-generated

Technical impact

The vulnerability is triggered when a malicious SSH peer sends specially crafted channel messages after a SSH session has been established. The golang.org/x/crypto/ssh library would block on an internal lock, causing the entire connection to stall. The resulting denial of service prevents any further SSH operations until the deadlock is resolved. The fix changes the handling of all RFC 4254 channel messages so that unknown or malformed messages are treated as protocol errors, causing the connection to be dropped instead of buffering and blocking, thereby eliminating the deadlock scenario.

Affected Systems

The affected component is the golang.org/x/crypto/ssh package used in Go applications that establish SSH channels. Any program that imports this library can be impacted. No specific version ranges are listed, so users should verify that they are using the latest release of the library.

Risk and Exploitability

The EPSS score of < 1% indicates a very low exploitation probability, and the vulnerability is not listed in the CISA KEV catalog. The attack vector requires an attacker to control a peer that can send crafted channel data after the session handshake. Because the corrected code now aborts the connection on protocol errors, the exploitation path still exists that can trigger a premature disconnect or a DoS. The potential impact remains high for services that rely on continuous SSH connectivity, while the likelihood of successful exploitation is limited to situations where the attacker can send messages before the deadlock would have otherwise developed. The CVSS score of 7.5 indicates a high severity, underscoring the need for timely patching.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Update golang.org/x/crypto/ssh to the latest stable release that includes the fix.
  • If a patch cannot be applied immediately, monitor SSH connections for abnormal termination and consider implementing a short timeout on channel inactivity to mitigate lingering connections.
  • As a temporary workaround, configure the application to close the connection promptly upon receiving any unrecognized channel message, avoiding the deadlock scenario.

Generated by OpenCVE AI on September 10, 2026 at 05:12 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
CPEs cpe:2.3:a:golang:crypto:*:*:*:*:*:go:*:*
Type Values Removed Values Added
Weaknesses CWE-667
Type Values Removed Values Added
First Time appeared Golang
Golang crypto
Vendors & Products Golang
Golang crypto
Type Values Removed Values Added
Weaknesses CWE-770
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
Weaknesses CWE-667
Type Values Removed Values Added
Description Previously, after a channel has been established, a malicious peer could send crafted messages that would deadlock the entire connection. Now, we handle all RFC 4254 channel messages; global requests are handled explicitly. Then, treat all other messages as a protocol error and tear the connection down instead of buffering and blocking.
Title Prevent DoS on deadlocked established channel in golang.org/x/crypto/ssh
References
Weaknesses
  • CWE-770

    Allocation of Resources Without Limits or Throttling

  • CWE-833

    Deadlock

Sources

Status
PUBLISHED
Assigner
Go
Published
Updated
Sep 3, 2026, 2:14 PM
Reserved
Jun 23, 2026, 3:10 PM
Status
Analyzed
Published
Sep 2, 2026, 8:17 PM
Modified
Sep 4, 2026, 4:34 PM
Severity
Moderate
Public date
Sep 2, 2026, 7:37 PM