Description (CNA)
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.
Affected (CNA)
| Vendor / product | Versions |
|---|---|
| Go standard library / crypto/x509 | affected 0 before 1.24.11; affected 1.25.0 before 1.25.5 |
CWE
No CWE identifiers supplied.
References
- https://go.dev/cl/725920
- https://go.dev/issue/76445
- https://groups.google.com/g/golang-announce/c/8FJoBkPddm4
- https://pkg.go.dev/vuln/GO-2025-4155
ADP enrichment
No English description supplied.
No references supplied.