CVE-2025-61729 Details
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.
A vulnerability exists in the Go programming language's standard library, specifically within the crypto/x509 package, in versions prior to 1.24.11 and between 1.25.0 and 1.25.5. The issue arises in the HostnameError.Error() method, where error strings are generated by concatenating hostnames without any limit. This unbounded concatenation can lead to excessive resource usage, as the operation has a quadratic runtime complexity. Consequently, a maliciously crafted certificate can cause significant resource exhaustion.
Users can upgrade to Go versions 1.24.11 or 1.25.5 to address this vulnerability.
Metrics
CVSS 4.0 Severity and Vector Strings:
No CVSS 4.0 data is available for this CVE.
CVSS 3.x Severity and Vector Strings:
No data available for CVSS Version 2.0 on this CVE.
CISA-ADP
Assessed Dec 2, 2025References to Advisories, Solutions, and Tools
By selecting these links, you will be leaving this site. These are references gathered from the official CVE record and are not endorsed by Volerion.
| URL | Source(s) | Tag(s) |
|---|---|---|
| https://go.dev/cl/725920 | [email protected] | Patch |
| https://go.dev/issue/76445 | [email protected] | Issue TrackingPatch |
| https://groups.google.com/g/golang-announce/c/8FJoBkPddm4 | [email protected] | Mailing ListRelease Notes |
| https://pkg.go.dev/vuln/GO-2025-4155 | [email protected] | Vendor Advisory |
Weakness Enumeration
| CWE-ID | CWE Name | Source |
|---|---|---|
| CWE-295 | Improper Certificate Validation | [email protected] |
Affected Products
| Product | Versions |
|---|---|
| golang go | < 1.24.11 >= 1.25.0, < 1.25.5 |
CPE
Remediation
| |
Change History
6 change records found show changes
| Date | Action | Recorded By |
|---|---|---|
| Oct 18, 2026 | CVE Translated | [email protected] |
| Jun 17, 2026 | CVE Modified | [email protected] |
| Jun 17, 2026 | CVE Modified | CISA-ADP |
| Dec 19, 2025 | Initial Analysis | [email protected] |
| Dec 2, 2025 | CVE Modified | CISA-ADP |
| Dec 2, 2025 | New CVE Received | [email protected] |