CVE-2026-39834: CWE-190: Integer Overflow or Wraparound in golang.org/x/crypto golang.org/x/crypto/ssh
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.
AI Analysis
Technical Summary
This vulnerability involves an integer overflow (CWE-190) in the golang.org/x/crypto/ssh package when handling Write calls with data sizes exceeding 4GB. The internal calculation of payload size uses an integer type that overflows, causing the write loop to enter an infinite loop sending empty packets. The problem is addressed by switching the size comparison to use a 64-bit integer type (int64), which can correctly represent large payload sizes and prevent overflow.
Potential Impact
The integer overflow causes the write operation to spin indefinitely without making progress, effectively resulting in a denial of service condition on the SSH channel. There is no indication of code execution or data corruption beyond the denial of service behavior. No known exploits are reported in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are provided at this time. Users should monitor golang.org/x/crypto project advisories for updates. Until a fix is available, avoid writing data larger than 4GB in a single Write call on SSH channels to prevent triggering the issue.
CVE-2026-39834: CWE-190: Integer Overflow or Wraparound in golang.org/x/crypto golang.org/x/crypto/ssh
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.
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability involves an integer overflow (CWE-190) in the golang.org/x/crypto/ssh package when handling Write calls with data sizes exceeding 4GB. The internal calculation of payload size uses an integer type that overflows, causing the write loop to enter an infinite loop sending empty packets. The problem is addressed by switching the size comparison to use a 64-bit integer type (int64), which can correctly represent large payload sizes and prevent overflow.
Potential Impact
The integer overflow causes the write operation to spin indefinitely without making progress, effectively resulting in a denial of service condition on the SSH channel. There is no indication of code execution or data corruption beyond the denial of service behavior. No known exploits are reported in the wild.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. No official fix or patch links are provided at this time. Users should monitor golang.org/x/crypto project advisories for updates. Until a fix is available, avoid writing data larger than 4GB in a single Write call on SSH channels to prevent triggering the issue.
Technical Details
- Data Version
- 5.2
- Assigner Short Name
- Go
- Date Reserved
- 2026-04-07T18:13:03.529Z
- Cvss Version
- null
- State
- PUBLISHED
- Remediation Level
- null
Threat ID: 6a0fcdabe1370fbb487d5023
Added to database: 5/22/2026, 3:29:47 AM
Last enriched: 5/22/2026, 3:45:08 AM
Last updated: 5/23/2026, 1:37:46 PM
Views: 9
Community Reviews
0 reviewsCrowdsource mitigation strategies, share intel context, and vote on the most helpful responses. Sign in to add your voice and help keep defenders ahead.
Want to contribute mitigation steps or threat intel context? Sign in or create an account to join the community discussion.
Actions
Updates to AI analysis require Pro Console access. Upgrade inside Console → Billing.
Need more coverage?
Upgrade to Pro Console for AI refresh and higher limits.
For incident response and remediation, OffSeq services can help resolve threats faster.
Latest Threats
Check if your credentials are on the dark web
Instant breach scanning across billions of leaked records. Free tier available.