CVE-2025-61729

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

Published Dec 2, 2025 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
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.

Remediation

No solution or workaround provided in the CVE record

Tracking

Sign in to view the affected projects.

Advisories

No advisories available
History
Type Values Removed Values Added
First Time appeared Golang
Golang go
Weaknesses CWE-295
CPEs cpe:2.3:a:golang:go:*:*:*:*:*:*:*:*
Vendors & Products Golang
Golang go
Type Values Removed Values Added
First Time appeared Go Standard Library
Go Standard Library crypto Tls
Vendors & Products Go Standard Library
Go Standard Library crypto Tls
Type Values Removed Values Added
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

ssvc

{'options': {'Automatable': 'no', 'Exploitation': 'none', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
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.
Title Excessive resource consumption when printing error string for host certificate validation in crypto/x509
References
Weaknesses

Sources

Status
PUBLISHED
Assigner
Go
Published
Updated
Dec 3, 2025, 7:37 PM
Reserved
Sep 30, 2025, 3:05 PM
Status
Analyzed
Published
Dec 2, 2025, 7:15 PM
Modified
Oct 18, 2026, 6:10 PM
Severity
Important
Public date
Dec 2, 2025, 6:54 PM