CVE-2025-58181
5.3medium
Unbounded memory consumption in golang.org/x/crypto/ssh
- Severity
- 5.3medium CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.77% (higher than 52% of CVEs)
- Published
- Last changed
- Assigned by
- Go
- Also known as
- GHSA-j5w8-q4qc-rx2xGO-2025-4134
Description
SSH servers parsing GSSAPI authentication requests do not validate the number of mechanisms specified in the request, allowing an attacker to cause unbounded memory consumption.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| golang.org/x/crypto/ssh | before 0.45.0 | CVE List |
| golang.org/x/crypto (Go) | before 0.45.0 | GitHub Advisory Database, Go Vulnerability Database |
| golang crypto | before 0.45.0 | NVD |
All scores
| CISA-ADP | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Classification
What each source says
CVE List
SSH servers parsing GSSAPI authentication requests do not validate the number of mechanisms specified in the request, allowing an attacker to cause unbounded memory consumption.
NVD (es)
Servidores SSH que analizan las solicitudes de autenticación GSSAPI no validan el número de mecanismos especificados en la solicitud, permitiendo a un atacante causar un consumo de memoria ilimitado.
References
| https://groups.google.com/g/golang-announce/c/w-oX3UxNcZA | advisory, mailing-list, web | |
| https://go.dev/cl/721961 | fix, patch, web | |
| https://go.dev/issue/76363 | issue-tracking, report, web | |
| https://pkg.go.dev/vuln/GO-2025-4134 | vendor-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-58181 | advisory | |
Related
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-58181 changed 2025-11-20 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-j5w8-q4qc-rx2x changed 2026-09-10 | CC-BY-4.0 |
| Go Vulnerability Database | GO-2025-4134 changed 2026-05-15 | CC-BY-4.0 |
| NVD | CVE-2025-58181 changed 2026-10-18 | Public domain |