Skip to main content
VulnerabilityPublished

CVE-2025-58181: golang.org/x/crypto/ssh · CWE-1284

Affects golang.org/x/crypto/sshSource CVE Database V5

0

Not known to be exploited · CVSS 5.3 Medium.

Data as of 26 Oct 2026, 17:16 UTC

CVSS 3.1 base score
5.3Medium
How severe the flaw is on the 0–10 CVSS scale.
EPSS
0.5% chance of exploitation in 30 days – higher than 48% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 19 Nov 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq Mirage: no evidence on record.

    No attack traffic recorded by OffSeq Mirage sensors

A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 26 Oct 2026.

What to do

Affected software

ProductAffectedFixed in
Gogolang.org/x/crypto/sshpkg:golang/golang.org/x/crypto/sshOther threatsAffected
  • =0
Fixed in–

Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.

AI-suggested

To mitigate this vulnerability, organizations should: 1) Monitor for updates from the golang.org/x/crypto project and apply patches promptly once available. 2) Implement network-level protections such as rate limiting and anomaly detection on SSH traffic to identify and block suspicious GSSAPI authentication requests with abnormal mechanism counts. 3) If feasible, disable GSSAPI authentication in SSH server configurations where it is not required, reducing the attack surface. 4) Employ resource usage monitoring and alerting on SSH servers to detect unusual memory consumption patterns indicative of exploitation attempts. 5) Consider deploying application-layer firewalls or SSH gateways that can enforce stricter protocol compliance and input validation. 6) Conduct internal audits of SSH server implementations and usage to identify and remediate any custom or third-party components based on the vulnerable Go crypto package. These steps go beyond generic advice by focusing on proactive detection, configuration hardening, and minimizing exposure to the vulnerable code path.

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.

References

Community reviews

Loading reviews…