What’s Vulnerable › Vulnerabilities
CVE-2025-58181: Unbounded memory consumption in golang.org/x/crypto/ssh
- Severity: medium (CVSS 5.3 v3.1)
- Exploited in the wild: not listed in CISA KEV
- EPSS: 0.6% probability of exploitation in the next 30 days
- Public exploit or detection template: none known
- Published: 2025-11-19 · updated 2026-10-18
- Weakness: CWE-770
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 products
- golang.org/x/crypto/ssh: before 0.45.0 — fixed in 0.45.0
- Golang.Org/X/Crypto: before 0.45.0 — fixed in 0.45.0
How to fix
Upgrade to a fixed version: golang.org/x/crypto/ssh 0.45.0; Golang.Org/X/Crypto 0.45.0. Check the vendor advisory for mitigations.
References
- https://go.dev/cl/721961
- https://go.dev/issue/76363
- https://groups.google.com/g/golang-announce/c/w-oX3UxNcZA
- https://pkg.go.dev/vuln/GO-2025-4134
Get alerted when CVE-2025-58181 or the next vulnerability affects your stack