CVE-2025-58181: medium-severity vulnerability in golang.org/x/crypto/ssh
Unbounded memory consumption in golang.org/x/crypto/ssh
Published · Updated
13Vexday Risk Score
No sign of exploitation. No public exploitation artifact known so far.
ssvc Trackcvss 5.3epss 0.6%
exploitation probability
0.6%top 52% of all CVEs
observed exploitation
nono source reports it
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.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Affected products
golang.org/x/crypto · golang.org/x/crypto/sshRelated CVEs — golang.org/x/crypto/ssh
In the same product, most dangerous first.
CVE-2024-45337CRITICALMisuse of connection.serverAuthenticate may cause authorization bypass in golang.org/x/cryptoEPSS 3.2%CVE-2025-22869HIGHPotential denial of service in golang.org/x/cryptoEPSS 0.9%CVE-2026-39830CRITICALInvoking client can cause server deadlock on unexpected responses in golang.org/x/crypto/sshEPSS 0.7%CVE-2026-39834CRITICALInvoking infinite loop on large channel writes in golang.org/x/crypto/sshEPSS 0.6%CVE-2026-46595CRITICALInvoking VerifiedPublicKeyCallback permissions skip enforcement in golang.org/x/crypto/sshEPSS 0.6%CVE-2026-39835MEDIUMInvoking server panic during CheckHostKey/Authenticate in golang.org/x/crypto/sshEPSS 0.5%