CVE-2025-22869: golang.org/x/crypto Vulnerable to Denial of Service (DoS) via Slow or Incomplete Key Exchange
SSH servers which implement file transfer protocols are vulnerable to a denial of service attack from clients which complete the key exchange slowly, or not at all, causing pending content to be read into memory, but never transmitted.
Published Apr 12, 2025 · Updated Apr 14, 2025
Affected packages
golang.org/x/crypto
- Ecosystem
- Go
- Affected
- < 0.35.0
- Fixed in
- 0.35.0
- Check
go list -m golang.org/x/crypto
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
SSH servers which implement file transfer protocols are vulnerable to a denial of service attack from clients which complete the key exchange slowly, or not at all, causing pending content to be read into memory, but never transmitted.
References
- https://nvd.nist.gov/vuln/detail/CVE-2025-22869
- https://go.dev/cl/652135
- https://go.dev/issue/71931
- https://pkg.go.dev/vuln/GO-2025-3487
- https://security.netapp.com/advisory/ntap-20250411-0010
- https://github.com/golang/crypto/commit/7292932d45d55c7199324ab0027cc86e8198aa22
- https://go-review.googlesource.com/c/crypto/+/652135
- https://github.com/advisories/GHSA-hcg3-q754-cr77
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Go vulnerabilities
All Go entriesCVE-2026-39827
golang.org/x/crypto: Invoking memory leak when rejecting channels can lead to DoS
medium6.5Jun 25, 2026CVE-2026-39828
golang.org/x/crypto vulnerable to invoking bypass of certificate restrictions
medium6.3Jun 25, 2026CVE-2026-39829
golang.org/x/crypto: Invoking pathological RSA/DSA parameters may cause DoS
high7.5Jun 25, 2026CVE-2026-39830
golang.org/x/crypto: Invoking client can cause server deadlock on unexpected responses
critical9.1Jun 25, 2026CVE-2026-39831
golang.org/x/crypto: FIDO/U2F security key physical presence check can be bypassed
critical9.1Jun 25, 2026CVE-2026-39832
golang.org/x/crypto doesn't drop invoking agent constraints when forwarding keys
critical9.1Jun 25, 2026
