GO-2025-4155
Dashboard / Vulnerabilities / GO-2025-4155
GO-2025-4155
Published: 2 Dec 2025Last Modified: 14 Aug 2026
Summary: Excessive resource consumption when printing error string for host certificate validation in crypto/x509
Details: 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.
References: https://go.dev/cl/725920, https://go.dev/issue/76445, https://groups.google.com/g/golang-announce/c/8FJoBkPddm4
Affected packages
Package
Name: stdlib
Purl: pkg:golang/stdlib
Affected ranges
Type: SEMVER
Events:
Introduced- 0
Fixed -1.24.11
Affected versions
Common Vulnerability Scoring System
Attack Vector
Network
Adjacent
Local
Physical
Privileges Required
None
Low
High
User Interaction
None
Required
Scope
Unchanged
Changed
Confidentiality
None
Low
High
Integrity
None
Low
High
Availability
None
Low
High
