critical

CVE-2026-39834

Go · golang.org/x/crypto/ssh • Go · golang.org/x/crypto

Summary

golang.org/x/crypto/ssh vulnerable to infinite loop on large channel writes

Severity
critical
CVSS
9.1
EPSS
0.5% (p43)
CWE
CWE-190
Also known as
GHSA-rm3j-f69w-wqmq, GO-2026-5020
Published
2026-06-25
Updated
2026-06-25

Advisory details

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.

References

Related advisories

Is your project exposed to this? Stateward checks every dependency on every pull request and flags it only if your code actually reaches it.

Check my repo

Summarize with AI

ChatGPTClaudePerplexity

Sources: CISA KEV (public domain), OSV.dev & GitHub Advisory Database (CC-BY-4.0), FIRST EPSS, NVD/CWE (public domain). Served live from the Stateward advisory database.