Skip to main content

Go x/crypto SSH CVE-2026-39827

| EUVDEUVD-2026-31392 MEDIUM
Improper Enforcement of Message Integrity During Transmission (CWE-924)
2026-05-22 Go GHSA-qpw4-5x99-6vjp
6.5
CVSS 3.1 · Vendor: Go
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Obtain valid SSH credentials
  2. Delivery
    Authenticate to target SSH server
  3. Exploit
    Send repeated channel-open requests in a tight loop
  4. Execution
    Server rejects channels but retains state in memory
  5. Persist
    Heap memory grows unbounded
  6. Impact
    Server process crashes, disconnecting all active users

Vulnerability Assessment

Weakness
CWE
Exploitation Conditions

The attacker must hold valid SSH credentials granting authenticated access (PR:L per CVSS vector) to a server process built on the golang.org/x/crypto/ssh package versions prior to 0.52.0. No special server-side configuration is required beyond the server being operational and accepting inbound SSH connections - the vulnerable code path is exercised by the standard channel-open protocol exchange. Exploitation is bounded by the authentication requirement: anonymous or unauthenticated access is not sufficient. Additional limiting factors include that the attack must be sustained (repeated channel opens are necessary to exhaust memory, which takes time and active effort), and that SSVC rates it as non-automatable, meaning opportunistic mass exploitation is not viable. Defenders can further limit exposure by restricting which accounts may authenticate via SSH.

Impact

The CVSS 3.1 base score of 6.5 (AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H) accurately reflects the threat model: the attack is network-reachable with low complexity, but requires authenticated access (PR:L), which is the primary limiting factor. Availability impact is rated High because a successful attack crashes the server process and terminates all active sessions. Despite a credible CVSS score, real-world exploitation priority is low: EPSS is 0.02% at the 5th percentile, SSVC rates exploitation as 'none' and automatability as 'no', and the vulnerability is absent from the CISA KEV catalog. The non-automatable SSVC rating aligns with the PR:L requirement - mass scanning for unauthenticated hosts is not viable here. The most realistic threat actor is a malicious or compromised authenticated SSH user (insider threat, stolen credentials, or a low-privilege account) deliberately triggering the memory leak to disrupt other users. Absent active exploitation signals, this is a genuine but measured risk: organizations with multi-tenant SSH infrastructure or external SSH access should prioritize patching, while single-user or internal-only deployments face lower urgency.

Exploit ScenarioDerived

An attacker with valid SSH credentials connects to a server running a vulnerable version of golang.org/x/crypto/ssh and writes a simple loop that continuously sends SSH channel-open requests, each of which the server rejects. Because the server never frees the state for rejected channels, heap memory grows with each iteration until the Go process is killed by the OS OOM killer or panics, abruptly terminating all active SSH sessions on that server. No public exploit code has been identified at time of analysis, but the attack is straightforward to implement given standard SSH library documentation.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.0% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Jun 08, 2026

Unbounded memory growth in the golang.org/x/crypto/ssh package allows an authenticated remote attacker to crash the SSH server process by repeatedly opening channels that the server rejects. All versions of golang.org/x/crypto/ssh prior to 0.52.0 are affected, and a successful attack disrupts service for every user connected to that server instance. No public exploit has been identified at time of analysis, and EPSS probability sits at 0.02% (5th percentile), though the authentication barrier is low and the availability impact affects all concurrent sessions.

RemediationAI

Upgrade golang.org/x/crypto to version 0.52.0 or later, which contains the authoritative fix (go.dev/cl/781320 and go.dev/issue/35127). Developers should run 'go get golang.org/x/crypto@v0.52.0' and rebuild all affected binaries; applications that embed the SSH server must be redeployed with the patched binary. The full announcement is available at the golang-announce mailing list (groups.google.com/g/golang-announce/c/a082jnz-LvI). For deployments where an immediate upgrade is not feasible, a targeted compensating control is to enforce strict per-user channel limits at the network or SSH daemon configuration layer (e.g., a reverse proxy or network policy that limits connection rate or channel count from a given authenticated identity), though this does not eliminate the memory leak - it only slows its progression. Restricting SSH access to a minimal set of trusted accounts reduces the attack surface, since exploitation requires valid credentials. SUSE-based environments should additionally consult SUSE advisories for patched package versions.

Affected VersionsENISA

golang.org/x/crypto/ssh 0 <0.52.0

Affected Packages

go golang.org/x/crypto fix: 0.52.0
go golang.org/x/crypto/ssh fix: 0.52.0
euvd golang_org_x_crypto_ssh fix: 0.52.0

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 3 packages in go, euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

The affected component is golang.org/x/crypto/ssh (CPE: cpe:2.3:a:golang.org/x/crypto:golang.org/x/crypto/ssh:*:*:*:*:*:*:*:*), which is Go's extended cryptography library providing SSH client and server primitives. SSH supports channel multiplexing over a single connection (RFC 4254 §5), allowing multiple logical channels to share one transport. The root cause is classified as CWE-924 (Improper Enforcement of Message Integrity During Transmission in a Communication Channel): when a server rejects a channel-open request from an authenticated client, the rejected channel object is not removed from the connection's internal tracking state and is not released for garbage collection. Each rejection therefore leaks a reference, causing heap memory to grow without bound until the Go runtime cannot continue and the server process crashes. The fix, referenced in the upstream code review at go.dev/cl/781320 and tracked as GO-2026-5016, ensures rejected channels are properly purged from connection state.

Know when Golang Org X Crypto Ssh gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (Go) PRIMARY 6.5 MEDIUM
AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H
SUSE MEDIUM
Red Hat 6.5 MEDIUM

Primary rating from Vendor (Go).

CVSS VectorVendor: Go

Attack Vector
Network
Attack Complexity
Low
Privileges Required
Low
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Lifecycle Timeline

3
CVSS changed
May 26, 2026 - 18:07 NVD
6.5 (None) 6.5 (MEDIUM)
Patch available
May 22, 2026 - 04:31 EUVD
CVE Published
May 22, 2026 - 02:31 nvd
UNKNOWN (no severity yet)

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.0%
Top 95% exploitable
Threat Intel
1
1 sources
Exploit
POC
Public exploit code exists
Data Quality
8 sources
Confidence: High
EUVD NVD CVE.org EPSS Vulnrichment GHSA MSRC Vendor GitHub VulDB

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC Yes
EPSS 0.0%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Scheduled
Exploitation
None
System Exposure· derived
Open
Automatable
No
Human Impact· derived
Medium
Technical Impact
Partial

Priority Score

52
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +32
PoC: +20
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

SUSE

Severity: Medium
Product Status
openSUSE Leap 16.0 Fixed
openSUSE Tumbleweed Fixed
SLES15-SP6-CHOST-BYOS-GCE Fixed
SLES15-SP7-CHOST-BYOS-GCE Fixed
SUSE Linux Enterprise Desktop 15 SP7 Fixed

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy