CRITICAL🇵🇱 Wersja polska

CVE-2026-39834

CVSS 9.1pub. 2026-05-22upd. 2026-05-28

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
How it works

When invoking the Write method on an SSH channel with data exceeding 4GB, the internal payload size calculation is performed on a variable susceptible to integer overflow (CWE-190). The overflow causes the write loop to lose the ability to progress and enters an infinite loop, continuously sending empty packets. The cause is the use of too narrow an integer type that undergoes truncation at values above 2^32 bytes. The fix consists of replacing the size comparison with an int64 type, eliminating the possibility of overflow.

Impact

An attacker or faulty software can cause permanent blocking of the process handling the SSH channel (Denial of Service), preventing its further operation. Additionally, sending empty packets instead of proper data violates the integrity of transmitted information.

Mitigation & patch

Apply patches available from the vendor according to the references. The fix was introduced in changelist https://go.dev/cl/781663 — it is recommended to update the golang.org/x/crypto library to a version containing this change. Monitor Go project announcements at https://groups.google.com/g/golang-announce.

Who is affected

Golang Crypto library (golang.org/x/crypto) — versions indicated in vendor references (see: https://pkg.go.dev/vuln/GO-2026-5020)

Analysis generated by Claude AI (Anthropic) based on NVD data. Always verify with vendor.
CVSS Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H
  • Golang Crypto

    APP
    Golang
    < 0.52.0
🔵
CHECK WITH VENDOR
No clear patch data available. Check vendor references.
CWE
References

Related vulnerabilities

CVE-2026-39832CRITICAL9.1PL ✓same product

Golang Crypto: pominięcie ograniczeń przy przekazywaniu kluczy do zdalnego agenta SSH

CVE-2026-39833CRITICAL9.1PL ✓same product

Golang Crypto: brak wymuszenia ograniczenia ConfirmBeforeUse w NewKeyring()

CVE-2026-39831CRITICAL9.1PL ✓same product

Brak weryfikacji flagi User Presence w FIDO/U2F w Golang Crypto

CVE-2026-39830CRITICAL9.1PL ✓same product

Golang Crypto: resource leak przez niezamawiane odpowiedzi SSH global request

CVE-2026-42508CRITICAL9.1PL ✓same product

Nieprawidłowa weryfikacja unieważnionych kluczy CA w Golang Crypto