7.5high
Excessive resource consumption when printing error string for host certificate validation in crypto/x509
- Severity
- 7.5high CVSS:3.1 by CISA-ADP
- Exploit likelihood
- 0.49% (higher than 43% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- Go
- Also known as
- GO-2025-4155BIT-GOLANG-2025-61729
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| crypto/x509 | before 1.24.11, from 1.25.0 before 1.25.5 | CVE List |
| stdlib (Go) | before 1.24.11, from 1.25.0 before 1.25.5 | Go Vulnerability Database |
| golang go | before 1.24.11, from 1.25.0 before 1.25.5 | NVD |
| golang (Bitnami) | before 1.24.11, from 1.25.0 before 1.25.5 | Bitnami Vulnerability Database |
All scores
| CISA-ADP | 7.5high CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H |
| Bitnami Vulnerability Database | high rating |
Classification
What each source says
CVE List
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.
NVD (es)
Dentro de HostnameError.Error(), al construir una cadena de error, no hay límite en el número de hosts que se imprimirán. Además, la cadena de error se construye mediante la concatenación repetida de cadenas, lo que lleva a un tiempo de ejecución cuadrático. Por lo tanto, un certificado proporcionado por un actor malicioso puede resultar en un consumo excesivo de recursos.
References
| https://go.dev/cl/725920 | fix, patch | |
| https://go.dev/issue/76445 | fix, issue-tracking, patch, report | |
| https://groups.google.com/g/golang-announce/c/8FJoBkPddm4 | discussion, mailing-list, release-notes, web | |
| https://pkg.go.dev/vuln/GO-2025-4155 | advisory, vendor-advisory | |
| https://nvd.nist.gov/vuln/detail/CVE-2025-61729 | web | |
Related
RHSA-2026:0921RHSA-2026:0922RHSA-2026:0923RHSA-2026:102902RHSA-2026:11749RHSA-2026:12028RHSA-2026:12029RHSA-2026:12030RHSA-2026:12031RHSA-2026:12032RHSA-2026:12033RHSA-2026:1249RHSA-2026:1344RHSA-2026:14868RHSA-2026:1497RHSA-2026:1506RHSA-2026:1518RHSA-2026:16102RHSA-2026:16696RHSA-2026:17040RHSA-2026:17084RHSA-2026:1715RHSA-2026:17446RHSA-2026:17595RHSA-2026:1813RHSA-2026:1814RHSA-2026:18913RHSA-2026:19013RHSA-2026:1907RHSA-2026:1908RHSA-2026:19634RHSA-2026:2124RHSA-2026:2217RHSA-2026:2218RHSA-2026:2219RHSA-2026:2223RHSA-2026:2265RHSA-2026:2320RHSA-2026:2323RHSA-2026:2334
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2025-61729 changed 2025-12-03 | CVE Terms of Use |
| Go Vulnerability Database | GO-2025-4155 changed 2026-11-25 | CC-BY-4.0 |
| NVD | CVE-2025-61729 changed 2026-10-18 | Public domain |
| Bitnami Vulnerability Database | BIT-GOLANG-2025-61729 changed 2026-09-08 | Apache-2.0 |