CVE-2025-61729
JSON

7.5high

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

Severity
7.5high CVSS:3.1 by CISA-ADP
Exploit likelihood
0.49% (higher than 43% of CVEs; EPSS, by FIRST)
Published
Last changed
Assigned by
Go
Also known as
GO-2025-4155BIT-GOLANG-2025-61729

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

Product or packageVersionsReported by
crypto/x509before 1.24.11, from 1.25.0 before 1.25.5CVE List
stdlib (Go)before 1.24.11, from 1.25.0 before 1.25.5Go Vulnerability Database
golang gobefore 1.24.11, from 1.25.0 before 1.25.5NVD
golang (Bitnami)before 1.24.11, from 1.25.0 before 1.25.5Bitnami Vulnerability Database

All scores

CISA-ADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Bitnami Vulnerability Databasehigh rating

Classification

CWE-295CWE-400

SSVC (CISA-ADP): exploitation none, automatable no, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Dentro de HostnameError.Error(), al construir una cadena de error, no hay límite en el número de hosts que se imprimirán. Además, la cadena de error se construye mediante la concatenación repetida de cadenas, lo que lleva a un tiempo de ejecución cuadrático. Por lo tanto, un certificado proporcionado por un actor malicioso puede resultar en un consumo excesivo de recursos.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2025-61729 changed 2025-12-03CVE Terms of Use
Go Vulnerability DatabaseGO-2025-4155 changed 2026-11-25CC-BY-4.0
NVDCVE-2025-61729 changed 2026-10-18Public domain
Bitnami Vulnerability DatabaseBIT-GOLANG-2025-61729 changed 2026-09-08Apache-2.0