9.1critical
Invoking infinite loop on large channel writes in golang.org/x/crypto/ssh
- Severity
- 9.1critical CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.60% (higher than 49% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Go
- Also known as
- GHSA-rm3j-f69w-wqmqGO-2026-5020
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
| Product or package | Versions | Reported by |
|---|---|---|
| golang.org/x/crypto/ssh | before 0.52.0 | CVE List |
| golang.org/x/crypto (Go) | before 0.52.0 | GitHub Advisory Database, Go Vulnerability Database |
| golang crypto | before 0.52.0 | NVD |
All scores
| CISA-ADP | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
| GitHub | 9.1critical CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H |
Classification
SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.
What each source says
CVE List
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.
NVD (es)
Al escribir datos mayores de 4 GB en una sola llamada Write en un canal SSH, un desbordamiento de entero en el cálculo interno del tamaño de la carga útil hizo que el bucle de escritura girara indefinidamente, enviando paquetes vacíos sin avanzar. La comparación de tamaño ahora usa int64 para evitar la truncación.
References
| https://go.dev/issue/79567 | issue-tracking, report, web | |
| https://groups.google.com/g/golang-announce/c/a082jnz-LvI | mailing-list, web | |
| https://go.dev/cl/781663 | fix, issue-tracking, web | |
| https://pkg.go.dev/vuln/GO-2026-5020 | vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-39834 | advisory | |
| https://cs.opensource.google/go/x/crypto | package | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-39834 changed 2026-05-22 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-rm3j-f69w-wqmq changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-5020 changed 2026-11-25 | CC-BY-4.0 |
| NVD | CVE-2026-39834 changed 2026-07-23 | Public domain |