CVE-2025-61729

GO-2025-4155 · published 2 Dec 2025 · updated 16 Nov 2026

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

7.5HighCVSS 7.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 1.24.11, 1.25.5 and stdlib 1.25.5.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Go standard library<1.24.11, >=1.25.0 <1.25.51.24.11, 1.25.5
go: stdlib>=1.25.0 <1.25.51.25.5

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in stdlib (Go), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-61729 severity on Zeptric[![CVE-2025-61729](https://zeptric.io/badge/cve/CVE-2025-61729.svg)](https://zeptric.io/cve/CVE-2025-61729)