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

CVE-2025-58181 · Severity: medium · CVSS 5.3 · Published 2025-11-19

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.

Technologies: golang.org/x/crypto (Go). Vendors: Go.

Quick answers

Is CVE-2025-58181 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2025-58181 being exploited in the wild.
How severe is CVE-2025-58181?
Medium severity, with a CVSS score of 5.3, published 19 November 2025.
Which products and versions are affected?
golang.org/x/crypto (Go) SEMVER:introduced=0,fixed=0.45.0.
Is there a fix for CVE-2025-58181?
Yes. golang.org/x/crypto (Go): upgrade to 0.45.0 or later. Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
Am I affected by CVE-2025-58181?
Check whether you run golang.org/x/crypto (Go) at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

How to fix

  • golang.org/x/crypto (Go): upgrade to 0.45.0 or later
    go get golang.org/x/crypto@v0.45.0

Affected products

  • golang.org/x/crypto (Go) SEMVER:introduced=0,fixed=0.45.0

Identifiers

  • CVE-2025-58181
  • GHSA-j5w8-q4qc-rx2x
  • GO-2025-4134

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.