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

4 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.0-2.1.0

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

Event History

Nov 19, 2025
CVE Published
via MITRE·08:33 PM
Data Sourced
via MITRE·08:33 PM
DescriptionWeakness
Data Sourced
via Red Hat·09:01 PM
DescriptionSeverityAffected Software
Data Sourced
via NVD·09:15 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·09:15 PM
RemedyAffected Software
Advisory Published
via GitHub·11:01 PM
Data Sourced
via GitHub·11:01 PM
DescriptionSeverityWeaknessAffected Software
Jan 30, 2026
Data Sourced
via IBM·12:00 AM
DescriptionAffected Software

Parent advisories

This vulnerability appears in the following advisories.

Free Weekly Intel

Don't miss critical vulnerabilities

Join thousands of security professionals who receive our weekly digest of trending CVEs, zero-days, and exploited vulnerabilities.

No spam. Unsubscribe anytime.

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