CVE-2025-61729

NameCVE-2025-61729
DescriptionWithin 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.
SourceCVE (at NVD; CERT, ENISA, LWN, oss-sec, fulldisc, Debian ELTS, Red Hat, Ubuntu, Gentoo, SUSE bugzilla/CVE, GitHub advisories/code/issues, web search, more)
Debian Bugs1121847, 1121848

Vulnerable and fixed packages

The table below lists information on source packages.

Source PackageReleaseVersionStatus
golang-1.15 (PTS)bullseye1.15.15-1~deb11u4vulnerable
golang-1.19 (PTS)bookworm1.19.8-2vulnerable
golang-1.24 (PTS)trixie1.24.4-1vulnerable
forky, sid1.24.9-1vulnerable
golang-1.25 (PTS)forky, sid1.25.3-1vulnerable

The information below is based on the following data on fixed versions.

PackageTypeReleaseFixed VersionUrgencyOriginDebian Bugs
golang-1.15source(unstable)(unfixed)
golang-1.19source(unstable)(unfixed)
golang-1.24source(unstable)(unfixed)1121848
golang-1.25source(unstable)(unfixed)1121847

Notes

[bookworm] - golang-1.19 <no-dsa> (Minor issue)
https://groups.google.com/g/golang-announce/c/8FJoBkPddm4
https://go-review.googlesource.com/c/go/+/725920
https://github.com/golang/go/issues/76445
Fixed by: https://github.com/golang/go/commit/f7bce4bd6f7b13de8d9f06f7f262e3b60381e7e9 (go1.25.5)
Fixed by: https://github.com/golang/go/commit/3a842bd5c6aa8eefa13c0174de3ab361e50bd672 (go1.24.11)

Search for package or bug name: Reporting problems