GO-2026-5020
Invoking infinite loop on large channel writes in golang.org/x/crypto/ssh
At a glance
- Published
- Updated
- CVE
- CVE-2026-39834
- Aliases
- GHSA-rm3j-f69w-wqmq
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.
Affected packages
| Package | Versions |
|---|---|
| Go · golang.org/x/crypto | introduced 0, fixed 0.52.0 |
References
- https://go.dev/issue/79567 REPORT
- https://groups.google.com/g/golang-announce/c/a082jnz-LvI WEB
- https://go.dev/cl/781663 FIX
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — Go Vulnerability Database |