CVE-2025-61729: Golang 1.24 · Within HostnameError.Error(), when constructing an error string, there is no limit to
Affects golang-1.24Source GCVE Database
Not known to be exploited · CVSS 7.5 High.
Data as of 17 Nov 2026, 20:51 UTC
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 2 Dec 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponized: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 17 Nov 2026.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Ubuntu 26.04 LTSgolang-1.24pkg:deb/ubuntu/golang-1.24?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 26.04 LTSgolang-1.25pkg:deb/ubuntu/golang-1.25?arch=source&distro=resoluteOther threats | Affected
| Fixed in– |
Ubuntu 25.10golang-1.24pkg:deb/ubuntu/golang-1.24?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 25.10golang-1.25pkg:deb/ubuntu/golang-1.25?arch=source&distro=questingOther threats | Affected
| Fixed in– |
Ubuntu 24.04 LTSgolang-1.24pkg:deb/ubuntu/golang-1.24?arch=source&distro=nobleOther threats | Affected
| Fixed in– |
Ubuntu 22.04 LTSgolang-1.24pkg:deb/ubuntu/golang-1.24?arch=source&distro=jammyOther threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Until a fix is available, consider limiting input sizes or applying runtime resource constraints to mitigate potential denial of service.
Description
A vulnerability in Golang 1.24's HostnameError.Error() function allows unbounded string construction when formatting error messages. This can lead to excessive resource consumption due to quadratic runtime behavior when processing malicious certificates containing many hosts.
References
- ubuntu.com/security/CVE-2025-61729 (opens in a new tab)
- cve.org/CVERecord?id=CVE-2025-61729 (opens in a new tab)
- groups.google.com/g/golang-announce/c/8FJoBkPddm4 (opens in a new tab)
- go-review.googlesource.com/c/go/+/725920 (opens in a new tab)
- github.com/golang/go/issues/76445 (opens in a new tab)
- go.dev/cl/725920 (opens in a new tab)
- go.dev/issue/76445 (opens in a new tab)
- pkg.go.dev/vuln/GO-2025-4155 (opens in a new tab)