6.5medium
Invoking memory leak when rejecting channels can lead to DoS in golang.org/x/crypto/ssh
- Severity
- 6.5medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.28% (higher than 21% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Go
- Also known as
- GHSA-qpw4-5x99-6vjpGO-2026-5016
Description
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| golang.org/x/crypto/ssh | before 0.52.0 | CVE List |
| golang.org/x/crypto (Go) | before 0.52.0 | GitHub Advisory Database, Go Vulnerability Database |
| golang crypto | before 0.52.0 | NVD |
All scores
| CISA-ADP | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
| GitHub | 6.5medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:L/UI:N/S:U/C:N/I:N/A:H |
Classification
What each source says
CVE List
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.
NVD (es)
Un cliente SSH autenticado que abría repetidamente canales que eran rechazados por el servidor causó un crecimiento descontrolado de la memoria, lo que finalmente provocó la caída del proceso del servidor y afectó a todos los usuarios conectados. Los canales rechazados ahora se eliminan correctamente del estado interno de la conexión y se liberan para la recolección de basura.
References
| https://go.dev/issue/35127 | issue-tracking, report, web | |
| https://go.dev/cl/781320 | fix, issue-tracking, web | |
| https://groups.google.com/g/golang-announce/c/a082jnz-LvI | mailing-list, web | |
| https://pkg.go.dev/vuln/GO-2026-5016 | vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2026-39827 | advisory | |
| https://cs.opensource.google/go/x/crypto | package | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2026-39827 changed 2026-05-22 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-qpw4-5x99-6vjp changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2026-5016 changed 2026-11-23 | CC-BY-4.0 |
| NVD | CVE-2026-39827 changed 2026-07-23 | Public domain |