Vulnerability in Golang Go
CVE-2025-61729
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.
Vulnerability class: Improper Certificate Validation
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS 0.005, 42.7th percentile (scored ); unchanged over 30 days. About EPSS.
Affected products
- Golang Go
- Go Standard Library Crypto/x509 — versions 0, 1.25.0
Weakness classification (CWE)
References
- go.dev/cl/725920 (Patch)
- go.dev/issue/76445 (Patch, Issue Tracking)
- groups.google.com/g/golang-announce/c/8FJoBkPddm4 (Mailing List, Release Notes)
- pkg.go.dev/vuln/GO-2025-4155 (Vendor Advisory)