CVE-2025-58181

Unbounded memory consumption in golang.org/x/crypto/ssh

Published Nov 19, 2025 CVSS 3.1 · 5.3 Medium EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-j5w8-q4qc-rx2x golang.org/x/crypto/ssh allows an attacker to cause unbounded memory consumption
Ubuntu USN Ubuntu USN USN-7956-1 Google Guest Agent vulnerability
History
Type Values Removed Values Added
CPEs cpe:2.3:a:golang:crypto:*:*:*:*:*:go:*:*
Type Values Removed Values Added
First Time appeared Golang
Golang crypto
Golang ssh
Vendors & Products Golang
Golang crypto
Golang ssh
Type Values Removed Values Added
Title CVE-2025-58181 in golang.org/x/crypto/ssh Unbounded memory consumption in golang.org/x/crypto/ssh
Type Values Removed Values Added
Weaknesses CWE-770
Metrics cvssV3_1

{'score': 5.3, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L'}

ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title CVE-2025-58181 in golang.org/x/crypto/ssh
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Go
Published
Updated
Nov 20, 2025, 5:14 PM
Reserved
Aug 27, 2025, 2:50 PM
Status
Analyzed
Published
Nov 19, 2025, 9:15 PM
Modified
Oct 18, 2026, 8:10 PM
Severity
Moderate
Public date
Nov 19, 2025, 8:33 PM