UNKNOWN Go

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

GO-2026-5020 · CVE-2026-39834 · GHSA-rm3j-f69w-wqmq

Published · Modified

AI SAST

Find this class of vulnerability in your own code

Corgea's AI-native static analysis detects vulnerabilities like this one across your repositories, ranks them by exploitability, and returns review-ready fixes.

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.

Ready to move

Start Securing

Free, no credit card | First findings in minutes