Description
An authenticated SSH client that repeatedly opened channels which were rejected by the server caused unbounded memory growth, eventually crashing the server process and affecting all connected users. Rejected channels are now properly removed from the connection's internal state and released for garbage collection.
Published: 2026-05-22
Score: 6.5 Medium
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

An authenticated SSH client that repeatedly opens channels that the server rejects triggers an unbounded memory leak. The library fails to remove rejected channel metadata, allowing memory usage to grow until the SSH server process crashes, resulting in a denial of service for all connected users. This flaw is a classic memory allocation bug and falls under a resource exhaustion weakness (CWE‑924).

Affected Systems

Impact applies to the golang.org/x/crypto/ssh library provided by the Go project. No specific vulnerable versions are listed, so any deployment that relies on this library without the fix is at risk. The fix removes rejected channels from the connection state and relies on garbage collection to reclaim memory.

Risk and Exploitability

An attacker must first authenticate to the SSH server to send channel requests; repeated authenticated channel attempts can exploit the leak. Because the vulnerability can be triggered by an ordinary SSH client, the practical difficulty is low, and the potential impact is medium, leading to a moderate denial of service. The CVSS score of 6.5 indicates medium severity. The vulnerability is not listed in CISA’s KEV catalog and the EPSS score is < 1%, but the lack of mitigation in older releases makes the risk significant if the library is in use. The weakness is classified as CWE‑924, a resource exhaustion issue.

Generated by OpenCVE AI on May 26, 2026 at 19:47 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade golang.org/x/crypto/ssh to the latest patched release, ensuring rejected channels are properly cleared.
  • Configure the SSH server to limit the number of channel requests per session or per client to reduce repeated attempts from a single connection.
  • Monitor the server’s memory consumption; set alerts for abnormal growth and restart the SSH daemon if thresholds are exceeded.

Generated by OpenCVE AI on May 26, 2026 at 19:47 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Tue, 26 May 2026 18:00:00 +0000

Type Values Removed Values Added
First Time appeared Golang crypto
Weaknesses CWE-924
CPEs cpe:2.3:a:golang:crypto:*:*:*:*:*:go:*:*
Vendors & Products Golang crypto

Fri, 22 May 2026 20:15:00 +0000

Type Values Removed Values Added
Metrics cvssV3_1

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

ssvc

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


Fri, 22 May 2026 13:15:00 +0000

Type Values Removed Values Added
First Time appeared Golang
Golang ssh
Vendors & Products Golang
Golang ssh

Fri, 22 May 2026 03:30:00 +0000

Type Values Removed Values Added
Description An authenticated SSH client that repeatedly opened channels which were rejected by the server caused unbounded memory growth, eventually crashing the server process and affecting all connected users. Rejected channels are now properly removed from the connection's internal state and released for garbage collection.
Title Invoking memory leak when rejecting channels can lead to DoS in golang.org/x/crypto/ssh
References

cve-icon MITRE

Status: PUBLISHED

Assigner: Go

Published:

Updated: 2026-05-22T18:35:40.472Z

Reserved: 2026-04-07T18:13:03.528Z

Link: CVE-2026-39827

cve-icon Vulnrichment

Updated: 2026-05-22T18:35:26.295Z

cve-icon NVD

Status : Analyzed

Published: 2026-05-22T04:16:21.497

Modified: 2026-05-26T17:58:25.393

Link: CVE-2026-39827

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-26T20:00:15Z

Weaknesses
  • CWE-924

    Improper Enforcement of Message Integrity During Transmission in a Communication Channel