CVE-2026-39834: CWE-190: Integer Overflow or Wraparound in golang.org/x/crypto golang.org/x/crypto/ssh
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.
AI Analysis
Technical Summary
This vulnerability in golang.org/x/crypto/ssh arises from an integer overflow when handling Write calls exceeding 4GB. The internal payload size calculation uses a truncated integer type that overflows, causing an infinite loop sending empty packets and resulting in denial of service. The root cause is the use of an insufficient integer size for payload length calculations. The fix involves changing the integer type to int64 to handle larger payload sizes safely.
Potential Impact
An attacker or user writing data larger than 4GB in a single Write call on an SSH channel can trigger an integer overflow that causes the SSH channel to enter an infinite loop sending empty packets. This leads to a denial of service by preventing further progress on the channel. There is no confidentiality or integrity impact reported, but availability is severely affected.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid sending Write calls larger than 4GB on SSH channels using the affected package version. Monitor for vendor updates addressing this integer overflow vulnerability.
CVE-2026-39834: CWE-190: Integer Overflow or Wraparound in golang.org/x/crypto golang.org/x/crypto/ssh
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.
CVSS v3.1
Score 9.1critical
Affected software
Run on your own infrastructure? Check whether these packages are installed with threat-finder — our free open-source scanner.
Weaknesses
AI-Powered Analysis
Machine-generated threat intelligence
Technical Analysis
This vulnerability in golang.org/x/crypto/ssh arises from an integer overflow when handling Write calls exceeding 4GB. The internal payload size calculation uses a truncated integer type that overflows, causing an infinite loop sending empty packets and resulting in denial of service. The root cause is the use of an insufficient integer size for payload length calculations. The fix involves changing the integer type to int64 to handle larger payload sizes safely.
Potential Impact
An attacker or user writing data larger than 4GB in a single Write call on an SSH channel can trigger an integer overflow that causes the SSH channel to enter an infinite loop sending empty packets. This leads to a denial of service by preventing further progress on the channel. There is no confidentiality or integrity impact reported, but availability is severely affected.
Mitigation Recommendations
Patch status is not yet confirmed — check the vendor advisory for current remediation guidance. Until a fix is available, avoid sending Write calls larger than 4GB on SSH channels using the affected package version. Monitor for vendor updates addressing this integer overflow vulnerability.
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: 05/22/2026, 03:29:47 UTC
Last enriched: 07/08/2026, 13:55:08 UTC
Last updated: 07/31/2026, 19:22:58 UTC
Views: 98
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.