Vulnerability GO-2025-4155

Unknown
UNKNOWN RISK
Vulnerabilities without an assigned CVSS score. Severity is not determinable from available data.
11 months ago
December 02, 2025 at 06:30 PM UTC
Excessive resource consumption when printing error string for host certificate validation in crypto/x509
<1.24.11, >=1.25.0 <1.25.5
<1.24.11, >=1.25.0 <1.25.5

Summary

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

Details

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.

Impacted packages

Timeline

Published
11 months ago
December 02, 2025 at 06:30 PM UTC
Last Modified
6 hours ago
November 14, 2026 at 01:12 PM UTC