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

CVE-2026-39827: golang.org/x/crypto/ssh: Invoking memory leak when rejecting channels can lead to DoS

June 25, 2026

An authenticated SSH client that repeatedly opened channels which were rejected by the server caused unbounded memory growth, eventually crashing the server process and affecting all connected users. Rejected channels are now properly removed from the connection’s internal state and released for garbage collection.

References

  • github.com/advisories/GHSA-qpw4-5x99-6vjp
  • go.dev/cl/781320
  • go.dev/issue/35127
  • groups.google.com/g/golang-announce/c/a082jnz-LvI
  • nvd.nist.gov/vuln/detail/CVE-2026-39827
  • pkg.go.dev/vuln/GO-2026-5016

Code Behaviors & Features

Detect and mitigate CVE-2026-39827 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 6.5 MEDIUM

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

Learn more about CVSS

Weakness

  • CWE-924: Improper Enforcement of Message Integrity During Transmission in a Communication Channel

Source file

go/golang.org/x/crypto/ssh/CVE-2026-39827.yml

Spotted a mistake? Edit the file on GitLab.

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

Page generated Sun, 19 Jul 2026 12:18:56 +0000.