9.1Critical
CVE-2026-39834Invoking infinite loop on large channel writes in golang.org/x/crypto/ssh
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.
Weakness (CWE):
CWE-190
Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.
Affected products and versions
| Vendor | Product | Versions | |
|---|---|---|---|
| golang | crypto | < 0.52.0 | |
| golang.org/x/crypto | golang.org/x/crypto/ssh | < 0.52.0 |
References and patches
- https://go.dev/issue/79567 Issue Tracking
- https://groups.google.com/g/golang-announce/c/a082jnz-LvI Mailing List
- https://go.dev/cl/781663 Issue Tracking
- https://pkg.go.dev/vuln/GO-2026-5020 Vendor Advisory
CPE matches (NVD) (1)
cpe:2.3:a:golang:crypto:*:*:*:*:*:go:*:*< 0.52.0