Skip to content

GHSA-qpw4-5x99-6vjp CVE-2026-39827 GO-2026-5016

golang.org/x/crypto: Invoking memory leak when rejecting channels can lead to DoS

Medium Go
Severity
6.5 / 10
Medium · CVSS 3.1
Exploit chance (EPSS)
0.28%
Chance of exploitation in the next 30 days. Higher than 20.46% of scored vulnerabilities.
Known exploited
No
Not in CISA's catalog
Weakness
CWE-924 Improper Enforcement of Message Integrity During Transmission in a Communication Channel
Fix
0.52.0
Upgrade golang.org/x/crypto to this version or later

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.

Affected versions

Go

PackageVulnerableFixed in
golang.org/x/crypto
< 0.52.0
0.52.0
golang.org/x/crypto
< 0.52.0
0.52.0

How to fix

Move to the fixed version or later with your package manager, update the lockfile, and run your tests. If the package only arrives through another dependency, upgrade that dependency first. If none of its releases pulls a fixed version yet, force the version with your package manager's override.

golang.org/x/crypto Go → 0.52.0

go
go get golang.org/x/crypto@v0.52.0 && go mod tidy

Severity breakdown

CVSS 3.1 6.5

CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H

Attack vector
Network
Attack complexity
Low
Privileges required
Low
User interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High

Weakness

CWE-924: Improper Enforcement of Message Integrity During Transmission in a Communication Channel

The product establishes a communication channel with an endpoint and receives a message from that endpoint, but it does not sufficiently ensure that the message was not modified during transmission.

References

Timeline

  1. Published
  2. Last updated by the source
  3. Latest EPSS score
AdvisorySeverityWhy it's related
GO-2026-6355
Prevent DoS on deadlocked established channel in golang.org/x/crypto/ssh
High Also affects golang.org/x/crypto
GO-2026-6354
Prevent DoS on deadlocked undecided channel in golang.org/x/crypto/ssh
High Also affects golang.org/x/crypto
GO-2026-6303
Source-address critical option not enforced for non-public-key auth callbacks in golang.org/x/crypto/ssh
High Also affects golang.org/x/crypto
GO-2026-5932
The golang.org/x/crypto/openpgp package is unmaintained, unsafe by design, and has known security issues
Not rated yet Also affects golang.org/x/crypto
GHSA-x527-x647-q7gg
golang.org/x/crypto: Invoking VerifiedPublicKeyCallback permissions skip enforcement
Critical Also affects golang.org/x/crypto
GHSA-w879-237q-wc7r
golang.org/x/crypto: Invoking pathological RSA/DSA parameters may cause DoS
High Also affects golang.org/x/crypto
GHSA-vgwf-h737-ff37
golang.org/x/crypto: Invoking client can cause server deadlock on unexpected responses
Critical Also affects golang.org/x/crypto
GHSA-rm3j-f69w-wqmq
golang.org/x/crypto vulnerable to infinite loop on large channel writes
Critical Also affects golang.org/x/crypto

Credits: Ziyan Zhou

Is this in your code?

MergeHarbor checks every repository's dependencies against this database, ranks what matters by exploitability and reachability, routes it to the owning team and opens the fix pull request.

Check your repos with MergeHarbor