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

Published Nov 19, 2025
·
Updated

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 Software

35 affected componentsFixes available
go crypto/ssh
go/golang.org/x/crypto<0.45.0
0.45.0
Golang Crypto Go<0.45.0
IBM Concert Software<=1.0-3.0.0
alpine/etcd<3.6.8-r0
3.6.8-r0
alpine/etcd<3.6.8-r0
3.6.8-r0
alpine/rclone<1.72.1-r0
1.72.1-r0
alpine/rclone<1.72.1-r0
1.72.1-r0
ubuntu/google-guest-agent<20240716.00-0ubuntu1~16.04.0+esm2
20240716.00-0ubuntu1~16.04.0+esm2
ubuntu/golang-go.crypto*
ubuntu/lxd*
ubuntu/snapd*
ubuntu/lxd*
ubuntu/snapd*
ubuntu/golang-go.crypto*
ubuntu/google-guest-agent<20241011.01-0ubuntu1~18.04.0+esm2
20241011.01-0ubuntu1~18.04.0+esm2
ubuntu/google-guest-agent<20250116.00-0ubuntu1~20.04.0+esm2
20250116.00-0ubuntu1~20.04.0+esm2
ubuntu/snapd*
ubuntu/golang-go.crypto*
ubuntu/google-guest-agent<20250116.00-0ubuntu1~22.04.2
20250116.00-0ubuntu1~22.04.2
ubuntu/snapd*
ubuntu/golang-go.crypto*
ubuntu/google-guest-agent<20250116.00-0ubuntu1~24.04.3
20250116.00-0ubuntu1~24.04.3
ubuntu/snapd*
ubuntu/golang-go.crypto*
ubuntu/golang-go.crypto*
ubuntu/google-guest-agent<20250506.01-0ubuntu1.1
20250506.01-0ubuntu1.1
ubuntu/snapd*
ubuntu/golang-go.crypto*
ubuntu/google-guest-agent<20250506.01-0ubuntu2
20250506.01-0ubuntu2
ubuntu/snapd*
ubuntu/google-guest-agent<20250506.01-0ubuntu2
20250506.01-0ubuntu2
ubuntu/snapd*
ubuntu/golang-go.crypto*
debian/golang-go.crypto<=1:0.4.0-1, <=1:0.25.0-1
1:0.45.0-1

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade go/golang.org/x/crypto to a version that resolves this vulnerability.

    Fixed in 0.45.0
  2. Upgrade

    Upgrade alpine/etcd to a version that resolves this vulnerability.

    Fixed in 3.6.8-r0
  3. Upgrade

    Upgrade alpine/rclone to a version that resolves this vulnerability.

    Fixed in 1.72.1-r0
  4. Upgrade

    Upgrade ubuntu/google-guest-agent to a version that resolves this vulnerability.

    Fixed in 20240716.00-0ubuntu1~16.04.0+esm2
  5. Upgrade

    Upgrade ubuntu/google-guest-agent to a version that resolves this vulnerability.

    Fixed in 20241011.01-0ubuntu1~18.04.0+esm2
  6. Upgrade

    Upgrade ubuntu/google-guest-agent to a version that resolves this vulnerability.

    Fixed in 20250116.00-0ubuntu1~20.04.0+esm2
  7. Upgrade

    Upgrade ubuntu/google-guest-agent to a version that resolves this vulnerability.

    Fixed in 20250116.00-0ubuntu1~22.04.2
  8. Upgrade

    Upgrade ubuntu/google-guest-agent to a version that resolves this vulnerability.

    Fixed in 20250116.00-0ubuntu1~24.04.3
  9. Upgrade

    Upgrade ubuntu/google-guest-agent to a version that resolves this vulnerability.

    Fixed in 20250506.01-0ubuntu1.1
  10. Upgrade

    Upgrade ubuntu/google-guest-agent to a version that resolves this vulnerability.

    Fixed in 20250506.01-0ubuntu2
  11. Upgrade

    Upgrade debian/golang-go.crypto to a version that resolves this vulnerability.

    Fixed in 1:0.45.0-1

Event History

Nov 19, 2025
CVE Published
via MITRE·08:33 PM
Data Sourced
via MITRE·08:33 PM
DescriptionWeakness
Data Sourced
via OSV·08:33 PM
DescriptionSeverity
Data Sourced
via Red Hat·09:01 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·09:15 PM
DescriptionSeverityWeakness
Advisory Published
via GitHub·11:01 PM
Data Sourced
via GitHub·11:01 PM
DescriptionSeverityWeaknessAffected Software
Dec 11, 2025
Data Sourced
via NVD·07:29 PM
RemedyAffected Software
Jan 14, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software
Jan 30, 2026
Updated
via IBM·12:00 AM
Affected Software
Sep 22, 2026
Updated
via IBM·12:00 AM
Affected Software
Oct 14, 2026
Updated
via IBM·12:00 AM
Affected Software
Nov 11, 2026
Data Sourced
via OSV·09:39 AM
Affected Software

Parent advisories

This vulnerability appears in the following advisories.

Frequently Asked Questions

1

What is the severity of CVE-2025-58181?

The severity of CVE-2025-58181 is classified as high due to the potential for unbounded memory consumption.

2

How do I fix CVE-2025-58181?

To fix CVE-2025-58181, update to the latest version of the Go crypto/ssh library that addresses this vulnerability.

3

What vulnerability does CVE-2025-58181 exploit?

CVE-2025-58181 exploits a lack of validation for the number of mechanisms specified in GSSAPI authentication requests.

4

Who is affected by CVE-2025-58181?

Developers using the Go crypto/ssh library for SSH servers are primarily affected by CVE-2025-58181.

5

What is the main impact of CVE-2025-58181?

The main impact of CVE-2025-58181 is the potential for denial of service due to unbounded memory consumption.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203