Within HostnameError.Error(), when constructing an error string, there is no limit to the number of hosts that will be printed out. Furthermore, the error string is constructed by repeated string concatenation, leading to quadratic runtime. Therefore, a certificate provided by a malicious actor can result in excessive resource consumption.
Fix
Patch, vendor advisory and mitigation references on NVD 3
- https://go.dev/cl/725920 Patch
- https://go.dev/issue/76445 Issue Tracking, Patch
- https://pkg.go.dev/vuln/GO-2025-4155 Vendor Advisory
Every line above is quoted from NVD, CISA, Microsoft, the vendor's own advisory or DISA; nothing is generated.
Change history 1
- First seenCVSS 7.5 · golangNVD modified 2026-10-18 18:10
Affected (CPE criteria) 1
cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
References 4
- https://go.dev/cl/725920 Patch
- https://go.dev/issue/76445 Issue Tracking, Patch
- https://groups.google.com/g/golang-announce/c/8FJoBkPddm4 Mailing List, Release Notes
- https://pkg.go.dev/vuln/GO-2025-4155 Vendor Advisory