# CVE-2026-39834: Invoking infinite loop on large channel writes in golang.org/x/crypto/ssh

- Severity: Critical 9.1 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.60%, higher than 49% of CVEs (2026-12-01)
- Published: 2026-05-22T02:08:34.000Z
- Modified: 2026-11-25T10:42:40.307Z
- Also known as: GHSA-rm3j-f69w-wqmq, GO-2026-5020
- Related: RHSA-2026:102514, RHSA-2026:102524, RHSA-2026:102529, RHSA-2026:102708, RHSA-2026:102902, RHSA-2026:62391, RHSA-2026:66561
- Weaknesses: CWE-190
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Go

## 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.

(As written by CVE List.)

## Affected

- golang.org/x/crypto/ssh: before 0.52.0
- golang.org/x/crypto (Go): before 0.52.0
- golang crypto: before 0.52.0

## Every score

- CISA-ADP: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`
- GitHub: CVSS:3.1 9.1 Critical `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H`

## 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)

## Sources

- CVE List: [CVE-2026-39834](https://www.cve.org/CVERecord?id=CVE-2026-39834), CVE Terms of Use, modified 2026-05-22
- GitHub Advisory Database: [GHSA-rm3j-f69w-wqmq](https://github.com/advisories/GHSA-rm3j-f69w-wqmq), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2026-5020](https://pkg.go.dev/vuln/GO-2026-5020), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2026-39834](https://nvd.nist.gov/vuln/detail/CVE-2026-39834), Public domain, modified 2026-07-23

---

Page: https://cve.day/CVE-2026-39834 · Whole record: https://cve.day/CVE-2026-39834.json · Rebuilt by cve.day 2026-11-25T22:59:22.157Z
