CVE-2026-39834 PUBLISHED

Invoking infinite loop on large channel writes in golang.org/x/crypto/ssh

Assigner: Go
Reserved: 07.04.2026 Published: 22.05.2026 Updated: 22.05.2026

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.

Product Status

Vendor golang.org/x/crypto
Product golang.org/x/crypto/ssh
Versions Default: unaffected
  • affected from 0 to 0.52.0 (excl.)

Credits

  • NCC Group Cryptography Services, sponsored by Teleport

References

Problem Types

  • CWE-190: Integer Overflow or Wraparound