Vulnerability · Published Nov 19, 2025 · Assigned by Go

CVE-2025-58181Unbounded memory consumption in golang.org/x/crypto/ssh

Medium 5.3

In plain English

A medium-severity resource allocation without limits in golang.org/x/crypto/ssh from golang.org/x/crypto. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.6% (higher than 49% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)5.3Medium
Exploit odds (30 days)0.6%top 51.3% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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 packages & fixed versions

EcosystemPackageFixed inAdvisory
Alpine:v3.23etcd3.6.8-r0ALPINE-CVE-2025-58181
Alpine:v3.24etcd3.6.8-r0ALPINE-CVE-2025-58181
Alpine:v3.23rclone1.72.1-r0ALPINE-CVE-2025-58181
Alpine:v3.24rclone1.72.1-r0ALPINE-CVE-2025-58181
Debian:12golang-go.cryptono fix listedDEBIAN-CVE-2025-58181
Debian:13golang-go.cryptono fix listedDEBIAN-CVE-2025-58181
Debian:14golang-go.crypto1:0.45.0-1DEBIAN-CVE-2025-58181
Gogolang.org/x/crypto0.45.0GO-2025-4134
Gogolang.org/x/crypto0.45.0GHSA-j5w8-q4qc-rx2x
Ubuntu:25.10golang-go.cryptono fix listedUBUNTU-CVE-2025-58181
Ubuntu:26.10golang-go.cryptono fix listedUBUNTU-CVE-2025-58181
Ubuntu:22.04:LTSgoogle-guest-agent20250116.00-0ubuntu1~22.04.2UBUNTU-CVE-2025-58181
Ubuntu:24.04:LTSgoogle-guest-agent20250116.00-0ubuntu1~24.04.3UBUNTU-CVE-2025-58181
Ubuntu:25.10google-guest-agent20250506.01-0ubuntu1.1UBUNTU-CVE-2025-58181
Ubuntu:26.04:LTSgoogle-guest-agent20250506.01-0ubuntu2UBUNTU-CVE-2025-58181
Ubuntu:26.10google-guest-agent20250506.01-0ubuntu2UBUNTU-CVE-2025-58181
Ubuntu:22.04:LTSsnapdno fix listedUBUNTU-CVE-2025-58181
Ubuntu:24.04:LTSsnapdno fix listedUBUNTU-CVE-2025-58181
Ubuntu:25.10snapdno fix listedUBUNTU-CVE-2025-58181
Ubuntu:26.04:LTSsnapdno fix listedUBUNTU-CVE-2025-58181
Ubuntu:26.10snapdno fix listedUBUNTU-CVE-2025-58181

Affected products (as reported)

VendorProductVersions
golang.org/x/crypto golang.org/x/crypto/ssh 0 – before 0.45.0

Weakness: CWE-770 · Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

References