Skip to content
7.5 High

CVE-2025-61729 Within HostnameError.Error(), when constructing an error string, there is no limit to the number of hosts that will be…

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 products and versions

Product Affected versions Fixed in
crypto/x509 1.25 1.25.0 → < 1.25.5 1.25.5
crypto/x509 1.24 earliest → < 1.24.11 1.24.11

References

Timeline

  1. Published
  2. Last modified
The 15 CVEs of crypto/x509 →
Track this CVE