CVE-2025-58181 Unbounded memory consumption in golang.org/x/crypto/ssh
Attackers can cause unbounded memory consumption in SSH servers by sending GSSAPI requests with excessive mechanisms, leading to denial of service.
- Exploited in the wild
- Not known
- Login needed
- Not needed
- Attackable
- Over the internet
- Victim action needed
- Not needed
- Fix
- Available
What is CVE-2025-58181?
CVE-2025-58181 is a medium-severity denial of service vulnerability in golang.org/x/crypto/ssh, published on 19 Nov 2025. An attacker can exploit it over the internet without logging in, with no action from the victim.
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.
Weakness: CWE-770
Which versions are affected by CVE-2025-58181?
3 open source packages ship an affected version, including golang.org/x/crypto. It affects 1 product.
| Package | Affected | Fixed in |
|---|---|---|
golang.org/x/crypto Go | All versions | 0.45.0 |
golang.org/x/crypto Go | All versions | 0.45.0 |
golang.org/x/crypto Go | All versions | 0.45.0 |
Linux distribution packages (33)
docker SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOS | All versions | 29.4.0_ce-150000.250.1 |
docker SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSS | All versions | 29.4.0_ce-150000.250.1 |
docker SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOS | All versions | 29.4.0_ce-150000.250.1 |
docker SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSS | All versions | 29.4.0_ce-150000.250.1 |
docker SUSE:Linux Enterprise Micro 5.2 | All versions | 28.5.1_ce-150000.241.2 |
docker SUSE:Linux Enterprise Micro 5.3 | All versions | 28.5.1_ce-150000.241.2 |
docker SUSE:Linux Enterprise Micro 5.3 | All versions | 29.4.0_ce-150000.250.1 |
docker SUSE:Linux Enterprise Micro 5.4 | All versions | 28.5.1_ce-150000.241.2 |
docker SUSE:Linux Enterprise Micro 5.4 | All versions | 29.4.0_ce-150000.250.1 |
docker SUSE:Linux Enterprise Micro 5.5 | All versions | 28.5.1_ce-150000.241.2 |
docker SUSE:Linux Enterprise Micro 5.5 | All versions | 29.4.0_ce-150000.250.1 |
docker SUSE:Linux Enterprise Module for Basesystem 15 SP7 | All versions | 28.5.1_ce-150000.241.2 |
docker SUSE:Linux Enterprise Module for Basesystem 15 SP7 | All versions | 29.4.0_ce-150000.250.1 |
docker SUSE:Linux Enterprise Module for Containers 15 SP7 | All versions | 28.5.1_ce-150000.241.2 |
docker SUSE:Linux Enterprise Module for Containers 15 SP7 | All versions | 29.4.0_ce-150000.250.1 |
docker SUSE:Linux Enterprise Server 15 SP4-LTSS | All versions | 29.4.0_ce-150000.250.1 |
docker SUSE:Linux Enterprise Server 15 SP5-LTSS | All versions | 29.4.0_ce-150000.250.1 |
docker SUSE:Linux Enterprise Server 15 SP6-LTSS | All versions | 29.4.0_ce-150000.250.1 |
docker SUSE:Linux Enterprise Server 16.0 | All versions | 28.5.1_ce-160000.5.1 |
docker SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5 | All versions | 28.5.1_ce-98.151.1 |
docker SUSE:Linux Enterprise Server for SAP Applications 15 SP4 | All versions | 29.4.0_ce-150000.250.1 |
docker SUSE:Linux Enterprise Server for SAP Applications 15 SP5 | All versions | 29.4.0_ce-150000.250.1 |
docker SUSE:Linux Enterprise Server for SAP Applications 15 SP6 | All versions | 29.4.0_ce-150000.250.1 |
docker SUSE:Linux Enterprise Server for SAP applications 16.0 | All versions | 28.5.1_ce-160000.5.1 |
docker SUSE:Linux Micro 6.0 | All versions | 28.5.1_ce-9.1 |
docker SUSE:Linux Micro 6.1 | All versions | 28.5.1_ce-slfo.1.1_8.1 |
docker SUSE:Linux Micro 6.2 | All versions | 28.5.1_ce-160000.5.1 |
docker openSUSE:Leap 15.6 | All versions | 28.5.1_ce-150000.241.2 |
docker openSUSE:Leap 16.0 | All versions | 28.5.1_ce-160000.5.1 |
zk openSUSE:Leap 16.0 | All versions | 0.15.6-bp160.1.1 |
netbird openSUSE:Tumbleweed | All versions | 0.60.3-1.1 |
rclone openSUSE:Tumbleweed | All versions | 1.72.0-1.1 |
zk openSUSE:Tumbleweed | All versions | 0.15.2-1.1 |
Products include Golang Crypto.
How do I fix CVE-2025-58181?
Upgrade golang.org/x/crypto to 0.45.0 or later.
Upgrade, then put limits on request size, rate and nesting depth so one client cannot exhaust the service. More about Denial of service.
Is CVE-2025-58181 being exploited?
There is no known exploitation of CVE-2025-58181 in the wild and no public exploit code.
Other vulnerabilities in golang.org/x/crypto/ssh
- CVE-2026-46595 Invoking VerifiedPublicKeyCallback permissions skip enforcement in golang.org/x/crypto/ssh
- CVE-2026-39830 Invoking client can cause server deadlock on unexpected responses in golang.org/x/crypto/ssh
- CVE-2026-39831 Invoking bypass of FIDO/U2F security keys physical interaction in golang.org/x/crypto/ssh
- CVE-2026-39832 Invoking agent constraints dropped when forwarding keys in golang.org/x/crypto/ssh/agent
- CVE-2026-39833 Invoking key constraints not enforced in golang.org/x/crypto/ssh/agent
Sources
Also known as CLEANSTART-2026-CZ18029, CLEANSTART-2026-DP92831, CLEANSTART-2026-EA90663, CLEANSTART-2026-EH67735, CLEANSTART-2026-EL11449, CLEANSTART-2026-FE09696 and 412 more.