Description
When writing data larger than 4GB in a single Write call on an SSH channel, an integer overflow in the internal payload size calculation caused the write loop to spin indefinitely, sending empty packets without making progress. The size comparison now uses int64 to prevent truncation.
Published: 2026-05-22
Score: 9.1 Critical
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

Impact

A buffer size calculation in golang.org/x/crypto/ssh overflows when a client attempts to write more than 4 gigabytes across a single SSH channel Write call. The overflow causes the internal loop that transmits data packets to spin indefinitely without transmitting payload, sending empty packets continuously until the process is killed. This results in a denial of service by exhausting CPU and network resources on whichever side of the channel handles the loop, without compromising confidentiality or integrity.

Affected Systems

The vulnerability affects the golang.org/x/crypto package, specifically the ssh module. No explicit version information is provided, so any deployment that uses a pre‑fix release of this module could be vulnerable. Administrators should verify whether their code or binaries include the patched version that switches to int64 arithmetic.

Risk and Exploitability

The EPSS score is less than 1% and the vulnerability is not listed in the CISA KEV catalog, indicating no known widespread exploitation at the time of analysis. The CVSS score is 9.1, but the vulnerability’s denial of service nature carries moderate to high risk, particularly for exposed SSH services that could be triggered remotely by an attacker uploading large payloads (the likely remote attack vector is inferred from the SSH protocol's remote nature). The lack of active exploits suggests the risk is primarily in the self‑service impact on the affected system rather than in zero‑day attacks.

Generated by OpenCVE AI on May 28, 2026 at 19:31 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade golang.org/x/crypto/ssh to a release that incorporates the int64 size comparison fix referenced in the advisory
  • Restart all SSH servers and clients that use the updated package to ensure the fix takes effect
  • Add defensive checks or configure SSH utilities to reject Write calls exceeding a reasonable size threshold to mitigate accidental or malicious large writes

Generated by OpenCVE AI on May 28, 2026 at 19:31 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Thu, 28 May 2026 18:30:00 +0000

Type Values Removed Values Added
Weaknesses CWE-680

Thu, 28 May 2026 15:15:00 +0000

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

Fri, 22 May 2026 22:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-680

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

Type Values Removed Values Added
Weaknesses CWE-680

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

Type Values Removed Values Added
Metrics cvssV3_1

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

ssvc

{'options': {'Automatable': 'yes', '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 04:45:00 +0000

Type Values Removed Values Added
Weaknesses CWE-680

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

Type Values Removed Values Added
Description When writing data larger than 4GB in a single Write call on an SSH channel, an integer overflow in the internal payload size calculation caused the write loop to spin indefinitely, sending empty packets without making progress. The size comparison now uses int64 to prevent truncation.
Title Invoking infinite loop on large channel writes in golang.org/x/crypto/ssh
References

cve-icon MITRE

Status: PUBLISHED

Assigner: Go

Published:

Updated: 2026-05-22T18:50:51.339Z

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

Link: CVE-2026-39834

cve-icon Vulnrichment

Updated: 2026-05-22T18:50:47.555Z

cve-icon NVD

Status : Analyzed

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

Modified: 2026-05-28T15:03:47.970

Link: CVE-2026-39834

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-28T19:45:25Z

Weaknesses
  • CWE-190

    Integer Overflow or Wraparound