Skip to content
CVE PROGRAM SOURCE RECORD7.5 High

CVE-2025-61729

Excessive resource consumption when printing error string for host certificate validation in crypto/x509

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

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Go standard library crypto/x509

Default version status: unaffected

  • 0 to < 1.24.11affected
  • 1.25.0 to < 1.25.5affected

References