GO-2025-4155
Excessive resource consumption when printing error string for host certificate validation in crypto/x509
En bref
- Publiée
- Mise à jour
- CVE
- CVE-2025-61729
- Alias
- BIT-golang-2025-61729
Description
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.
Paquets affectés
| Paquet | Versions |
|---|---|
| Go · stdlib | introduced 0, fixed 1.24.11, introduced 1.25.0, fixed 1.25.5 |
Références
- https://go.dev/cl/725920 FIX
- https://go.dev/issue/76445 REPORT
- https://groups.google.com/g/golang-announce/c/8FJoBkPddm4 WEB
Sources
| Source | Licence |
|---|---|
| OSV.dev | CC-BY 4.0 — Go Vulnerability Database |