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

Medium 5.3 Published Updated

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.

PackageAffectedFixed in
golang.org/x/crypto GoAll versions0.45.0
golang.org/x/crypto GoAll versions0.45.0
golang.org/x/crypto GoAll versions0.45.0
Linux distribution packages (33)
docker SUSE:Linux Enterprise High Performance Computing 15 SP4-ESPOSAll versions29.4.0_ce-150000.250.1
docker SUSE:Linux Enterprise High Performance Computing 15 SP4-LTSSAll versions29.4.0_ce-150000.250.1
docker SUSE:Linux Enterprise High Performance Computing 15 SP5-ESPOSAll versions29.4.0_ce-150000.250.1
docker SUSE:Linux Enterprise High Performance Computing 15 SP5-LTSSAll versions29.4.0_ce-150000.250.1
docker SUSE:Linux Enterprise Micro 5.2All versions28.5.1_ce-150000.241.2
docker SUSE:Linux Enterprise Micro 5.3All versions28.5.1_ce-150000.241.2
docker SUSE:Linux Enterprise Micro 5.3All versions29.4.0_ce-150000.250.1
docker SUSE:Linux Enterprise Micro 5.4All versions28.5.1_ce-150000.241.2
docker SUSE:Linux Enterprise Micro 5.4All versions29.4.0_ce-150000.250.1
docker SUSE:Linux Enterprise Micro 5.5All versions28.5.1_ce-150000.241.2
docker SUSE:Linux Enterprise Micro 5.5All versions29.4.0_ce-150000.250.1
docker SUSE:Linux Enterprise Module for Basesystem 15 SP7All versions28.5.1_ce-150000.241.2
docker SUSE:Linux Enterprise Module for Basesystem 15 SP7All versions29.4.0_ce-150000.250.1
docker SUSE:Linux Enterprise Module for Containers 15 SP7All versions28.5.1_ce-150000.241.2
docker SUSE:Linux Enterprise Module for Containers 15 SP7All versions29.4.0_ce-150000.250.1
docker SUSE:Linux Enterprise Server 15 SP4-LTSSAll versions29.4.0_ce-150000.250.1
docker SUSE:Linux Enterprise Server 15 SP5-LTSSAll versions29.4.0_ce-150000.250.1
docker SUSE:Linux Enterprise Server 15 SP6-LTSSAll versions29.4.0_ce-150000.250.1
docker SUSE:Linux Enterprise Server 16.0All versions28.5.1_ce-160000.5.1
docker SUSE:Linux Enterprise Server LTSS Extended Security 12 SP5All versions28.5.1_ce-98.151.1
docker SUSE:Linux Enterprise Server for SAP Applications 15 SP4All versions29.4.0_ce-150000.250.1
docker SUSE:Linux Enterprise Server for SAP Applications 15 SP5All versions29.4.0_ce-150000.250.1
docker SUSE:Linux Enterprise Server for SAP Applications 15 SP6All versions29.4.0_ce-150000.250.1
docker SUSE:Linux Enterprise Server for SAP applications 16.0All versions28.5.1_ce-160000.5.1
docker SUSE:Linux Micro 6.0All versions28.5.1_ce-9.1
docker SUSE:Linux Micro 6.1All versions28.5.1_ce-slfo.1.1_8.1
docker SUSE:Linux Micro 6.2All versions28.5.1_ce-160000.5.1
docker openSUSE:Leap 15.6All versions28.5.1_ce-150000.241.2
docker openSUSE:Leap 16.0All versions28.5.1_ce-160000.5.1
zk openSUSE:Leap 16.0All versions0.15.6-bp160.1.1
netbird openSUSE:TumbleweedAll versions0.60.3-1.1
rclone openSUSE:TumbleweedAll versions1.72.0-1.1
zk openSUSE:TumbleweedAll versions0.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.

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.

Is CVE-2025-58181 in your software?

Upload an SBOM and sbomify checks it against every vulnerability here, every day.

Check your SBOMs for free