# CVE-2025-61729: Excessive resource consumption when printing error string for host certificate validation in crypto/x509

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.49%, higher than 43% of CVEs (2026-12-01)
- Published: 2025-12-02T18:30:24.000Z
- Modified: 2026-11-25T10:42:40.844Z
- Also known as: GO-2025-4155, BIT-GOLANG-2025-61729
- Related: RHSA-2026:0921, RHSA-2026:0922, RHSA-2026:0923, RHSA-2026:102902, RHSA-2026:11749, RHSA-2026:12028, RHSA-2026:12029, RHSA-2026:12030, RHSA-2026:12031, RHSA-2026:12032, RHSA-2026:12033, RHSA-2026:1249, RHSA-2026:1344, RHSA-2026:14868, RHSA-2026:1497, RHSA-2026:1506, RHSA-2026:1518, RHSA-2026:16102, RHSA-2026:16696, RHSA-2026:17040, RHSA-2026:17084, RHSA-2026:1715, RHSA-2026:17446, RHSA-2026:17595, RHSA-2026:1813, RHSA-2026:1814, RHSA-2026:18913, RHSA-2026:19013, RHSA-2026:1907, RHSA-2026:1908, RHSA-2026:19634, RHSA-2026:2124, RHSA-2026:2217, RHSA-2026:2218, RHSA-2026:2219, RHSA-2026:2223, RHSA-2026:2265, RHSA-2026:2320, RHSA-2026:2323, RHSA-2026:2334, RHSA-2026:2441, RHSA-2026:25248, RHSA-2026:25250, RHSA-2026:25251, RHSA-2026:25252, RHSA-2026:25253, RHSA-2026:26527, RHSA-2026:26541, RHSA-2026:27076, RHSA-2026:2769, RHSA-2026:28047, RHSA-2026:28886, RHSA-2026:28961, RHSA-2026:2914, RHSA-2026:2920, RHSA-2026:3035, RHSA-2026:3040, RHSA-2026:3053, RHSA-2026:3287, RHSA-2026:3288, RHSA-2026:3289, RHSA-2026:3291, RHSA-2026:3297, RHSA-2026:3298, RHSA-2026:3336, RHSA-2026:3337, RHSA-2026:3340, RHSA-2026:3341, RHSA-2026:3343, RHSA-2026:3428, RHSA-2026:3506, RHSA-2026:36796, RHSA-2026:3752, RHSA-2026:3753, RHSA-2026:3812, RHSA-2026:3815, RHSA-2026:3816, RHSA-2026:3817, RHSA-2026:3818, RHSA-2026:3820, RHSA-2026:3821, RHSA-2026:3822, RHSA-2026:3831, RHSA-2026:3833, RHSA-2026:3835, RHSA-2026:3836, RHSA-2026:3838, RHSA-2026:3839, RHSA-2026:3840, RHSA-2026:3841, RHSA-2026:3843, RHSA-2026:3854, RHSA-2026:3864, RHSA-2026:3879, RHSA-2026:3880, RHSA-2026:3928, RHSA-2026:3929, RHSA-2026:3930, RHSA-2026:3931, RHSA-2026:3932, RHSA-2026:3970, RHSA-2026:3971, RHSA-2026:3972, RHSA-2026:3973, RHSA-2026:3974, RHSA-2026:39810, RHSA-2026:41019, RHSA-2026:4164, RHSA-2026:4166, RHSA-2026:4211, RHSA-2026:4464, RHSA-2026:4753, RHSA-2026:4892, RHSA-2026:4901, RHSA-2026:4907, RHSA-2026:4952, RHSA-2026:49944, RHSA-2026:5022, RHSA-2026:5030, RHSA-2026:5031, RHSA-2026:5076, RHSA-2026:5077, RHSA-2026:5078, RHSA-2026:5079, RHSA-2026:51288, RHSA-2026:5146, RHSA-2026:5327, RHSA-2026:5461, RHSA-2026:54757, RHSA-2026:5533, RHSA-2026:5544, RHSA-2026:5852, RHSA-2026:5853, RHSA-2026:5866, RHSA-2026:5968, RHSA-2026:7291, RHSA-2026:7385, RHSA-2026:7676, RHSA-2026:7854, RHSA-2026:9097, RHSA-2026:9098, RHSA-2026:9108, RHSA-2026:9109
- Weaknesses: CWE-295, CWE-400
- SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial
- Assigned by: Go

## 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.

(As written by CVE List.)

## Affected

- crypto/x509: before 1.24.11; from 1.25.0 before 1.25.5
- stdlib (Go): before 1.24.11; from 1.25.0 before 1.25.5
- golang go: before 1.24.11; from 1.25.0 before 1.25.5
- golang (Bitnami): before 1.24.11; from 1.25.0 before 1.25.5

## Every score

- CISA-ADP: CVSS:3.1 7.5 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`
- Bitnami Vulnerability Database: rating High

## 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)

## Sources

- CVE List: [CVE-2025-61729](https://www.cve.org/CVERecord?id=CVE-2025-61729), CVE Terms of Use, modified 2025-12-03
- Go Vulnerability Database: [GO-2025-4155](https://pkg.go.dev/vuln/GO-2025-4155), CC-BY-4.0, modified 2026-11-25
- NVD: [CVE-2025-61729](https://nvd.nist.gov/vuln/detail/CVE-2025-61729), Public domain, modified 2026-10-18
- Bitnami Vulnerability Database: [BIT-GOLANG-2025-61729](https://osv.dev/vulnerability/BIT-GOLANG-2025-61729), Apache-2.0, modified 2026-09-08

---

Page: https://cve.day/CVE-2025-61729 · Whole record: https://cve.day/CVE-2025-61729.json · Rebuilt by cve.day 2026-11-25T22:59:08.207Z
