Advisory Database
  • Advisories
  • Dependency Scanning
  1. golang
  2. ›
  3. golang.org/x/crypto
  4. ›
  5. CVE-2026-39834

CVE-2026-39834: golang.org/x/crypto vulnerable to infinite loop on large channel writes

June 25, 2026 (updated July 7, 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.

References

  • github.com/advisories/GHSA-rm3j-f69w-wqmq
  • go.dev/cl/781663
  • go.dev/issue/79567
  • groups.google.com/g/golang-announce/c/a082jnz-LvI
  • nvd.nist.gov/vuln/detail/CVE-2026-39834
  • pkg.go.dev/vuln/GO-2026-5020

Code Behaviors & Features

Detect and mitigate CVE-2026-39834 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 0.52.0

Fixed versions

  • 0.52.0

Solution

Upgrade to version 0.52.0 or above.

Impact 9.1 CRITICAL

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H

Learn more about CVSS

Weakness

  • CWE-190: Integer Overflow or Wraparound

Source file

go/golang.org/x/crypto/CVE-2026-39834.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Thu, 16 Jul 2026 00:19:05 +0000.