VulnWatch by ve1ve2
high 7.5 EPSS 0.49%

GO-2025-4155: Excessive resource consumption when printing error string for host certificate validation in crypto/x509

Source:
OSV.dev
Published:
Fetched:
Updated:
Affects:
stdlib

https://osv.dev/vulnerability/GO-2025-4155 ↗

osvgofix-available

Excessive resource consumption when printing error string for host certificate validation in crypto/x509 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: Go:stdlib Fixed in: 1.24.11, 1.25.5 References: https://go.dev/cl/725920 https://go.dev/issue/76445 https://groups.google.com/g/golang-announce/c/8FJoBkPddm4

Linked vulnerabilities (1)

CVE-2025-61729 high 7.5 EPSS 0.49% (p43) NVDCVE.org
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Excessive resource consumption when printing error string for host certificate validation in crypto/x509

CWE: CWE-295NVD: Analyzed