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
| Ecosystem | Package | Fixed in | Advisory |
|---|---|---|---|
| Alpine:v3.23 | etcd | 3.6.8-r0 | ALPINE-CVE-2025-58181 |
| Alpine:v3.24 | etcd | 3.6.8-r0 | ALPINE-CVE-2025-58181 |
| Alpine:v3.23 | rclone | 1.72.1-r0 | ALPINE-CVE-2025-58181 |
| Alpine:v3.24 | rclone | 1.72.1-r0 | ALPINE-CVE-2025-58181 |
| Debian:12 | golang-go.crypto | no fix listed | DEBIAN-CVE-2025-58181 |
| Debian:13 | golang-go.crypto | no fix listed | DEBIAN-CVE-2025-58181 |
| Debian:14 | golang-go.crypto | 1:0.45.0-1 | DEBIAN-CVE-2025-58181 |
| Go | golang.org/x/crypto | 0.45.0 | GO-2025-4134 |
| Go | golang.org/x/crypto | 0.45.0 | GHSA-j5w8-q4qc-rx2x |
| Ubuntu:25.10 | golang-go.crypto | no fix listed | UBUNTU-CVE-2025-58181 |
| Ubuntu:26.10 | golang-go.crypto | no fix listed | UBUNTU-CVE-2025-58181 |
| Ubuntu:22.04:LTS | google-guest-agent | 20250116.00-0ubuntu1~22.04.2 | UBUNTU-CVE-2025-58181 |
| Ubuntu:24.04:LTS | google-guest-agent | 20250116.00-0ubuntu1~24.04.3 | UBUNTU-CVE-2025-58181 |
| Ubuntu:25.10 | google-guest-agent | 20250506.01-0ubuntu1.1 | UBUNTU-CVE-2025-58181 |
| Ubuntu:26.04:LTS | google-guest-agent | 20250506.01-0ubuntu2 | UBUNTU-CVE-2025-58181 |
| Ubuntu:26.10 | google-guest-agent | 20250506.01-0ubuntu2 | UBUNTU-CVE-2025-58181 |
| Ubuntu:22.04:LTS | snapd | no fix listed | UBUNTU-CVE-2025-58181 |
| Ubuntu:24.04:LTS | snapd | no fix listed | UBUNTU-CVE-2025-58181 |
| Ubuntu:25.10 | snapd | no fix listed | UBUNTU-CVE-2025-58181 |
| Ubuntu:26.04:LTS | snapd | no fix listed | UBUNTU-CVE-2025-58181 |
| Ubuntu:26.10 | snapd | no fix listed | UBUNTU-CVE-2025-58181 |
Affected products (as reported)
| Vendor | Product | Versions |
|---|---|---|
| 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