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

- Severity: Medium 5.3 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.77%, higher than 52% of CVEs (2026-11-30)
- Published: 2025-11-19T20:11:57.000Z
- Modified: 2026-10-18T20:10:00.110Z
- Also known as: GHSA-j5w8-q4qc-rx2x, GO-2025-4134
- Related: CGA-r6rp-rr52-3cqp, RHSA-2026:7291, RHSA-2026:7385
- Weaknesses: CWE-770, CWE-1284
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Go

## 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.

(As written by CVE List.)

## Affected

- golang.org/x/crypto/ssh: before 0.45.0
- golang.org/x/crypto (Go): before 0.45.0
- golang crypto: before 0.45.0

## Every score

- CISA-ADP: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`
- GitHub: CVSS:3.1 5.3 Medium `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L`

## References

- <https://groups.google.com/g/golang-announce/c/w-oX3UxNcZA> (advisory, mailing-list, web)
- <https://go.dev/cl/721961> (fix, patch, web)
- <https://go.dev/issue/76363> (issue-tracking, report, web)
- <https://pkg.go.dev/vuln/GO-2025-4134> (vendor-advisory, web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-58181> (advisory)

## Sources

- CVE List: [CVE-2025-58181](https://www.cve.org/CVERecord?id=CVE-2025-58181), CVE Terms of Use, modified 2025-11-20
- GitHub Advisory Database: [GHSA-j5w8-q4qc-rx2x](https://github.com/advisories/GHSA-j5w8-q4qc-rx2x), CC-BY-4.0, modified 2026-09-10
- Go Vulnerability Database: [GO-2025-4134](https://pkg.go.dev/vuln/GO-2025-4134), CC-BY-4.0, modified 2026-05-15
- NVD: [CVE-2025-58181](https://nvd.nist.gov/vuln/detail/CVE-2025-58181), Public domain, modified 2026-10-18

---

Page: https://cve.day/CVE-2025-58181 · Whole record: https://cve.day/CVE-2025-58181.json · Rebuilt by cve.day 2026-11-25T22:59:07.851Z
