CVE-2026-39827 PUBLISHED

Invoking memory leak when rejecting channels can lead to DoS in golang.org/x/crypto/ssh

Assigner: Go
Reserved: 07.04.2026 Published: 22.05.2026 Updated: 22.05.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.

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

  • Ziyan Zhou

References

Problem Types

  • CWE-401: Missing Release of Memory after Effective Lifetime