CVE-2026-39834

GHSA-rm3j-f69w-wqmq · GO-2026-5020 · published 22 May 2026 · updated 14 Nov 2026

Invoking infinite loop on large channel writes in golang.org/x/crypto/ssh

9.1CriticalCVSS 9.1EPSS 1%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 1%. Fixed in 0.52.0 and golang.org/x/crypto 0.52.0.

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.

Affected

Vendors, products and packages with version ranges

VendorProductVersionsFixed
golang.org/x/crypto<0.52.00.52.0
go: golang.org/x/crypto<0.52.00.52.0

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in golang.org/x/crypto (Go), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2026-39834 severity on Zeptric[![CVE-2026-39834](https://zeptric.io/badge/cve/CVE-2026-39834.svg)](https://zeptric.io/cve/CVE-2026-39834)