CVE-2026-39834
JSON

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 packageVersionsReported by
golang.org/x/crypto/sshbefore 0.52.0CVE List
golang.org/x/crypto (Go)before 0.52.0GitHub Advisory Database, Go Vulnerability Database
golang cryptobefore 0.52.0NVD

All scores

CISA-ADP9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
GitHub9.1critical CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Classification

CWE-190

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

Related

Sources

SourceRecordLicence
CVE ListCVE-2026-39834 changed 2026-05-22CVE Terms of Use
GitHub Advisory DatabaseGHSA-rm3j-f69w-wqmq changed 2026-09-10CC-BY-4.0
Go Vulnerability DatabaseGO-2026-5020 changed 2026-11-25CC-BY-4.0
NVDCVE-2026-39834 changed 2026-07-23Public domain