CVE-2026-39834: golang.org/x/crypto/ssh · Integer Overflow or Wraparound
Affects golang.org/x/crypto/sshSource CVE Database V5
Not known to be exploited · CVSS 9.1 Critical : upgrade to 0.52.0 as a priority.
Data as of 30 Oct 2026, 06:59 UTC
- EPSS
- 0.5% chance of exploitation in 30 days – higher than 48% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
- Patch
- Available – fixed in 0.52.0
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:HExploitation evidence
Disclosed: evidence found.
CVE published 22 May 2026
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 29 Oct 2026.
What to do
Upgrade golang.org/x/crypto/ssh to 0.52.0.
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| golang.org/x/cryptogolang.org/x/crypto/ssh | Affected
| Fixed in
|
Gogolang.org/x/crypto/sshpkg:golang/golang.org/x/crypto/sshOther threats | Affected
| Fixed in– |
Gogolang.org/x/crypto/sshpkg:golang/golang.org/x/crypto/sshOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
If you cannot patch yet, avoid sending Write calls larger than 4GB on SSH channels using the affected package version. Monitor for vendor updates addressing this integer overflow vulnerability.
Description
CVE-2026-39834 is a critical integer overflow vulnerability in the golang.org/x/crypto/ssh package. It occurs when writing data larger than 4GB in a single Write call on an SSH channel, causing an integer overflow in the internal payload size calculation. This overflow results in an infinite loop that sends empty packets without progress, leading to a denial of service condition. The issue stems from using a truncated integer type for size comparison, which has been addressed by switching to int64 to prevent overflow.