CVE-2025-58187
JSON

7.5high

Quadratic complexity when checking name constraints in crypto/x509

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

Description

Due to the design of the name constraint checking algorithm, the processing time of some inputs scale non-linearly with respect to the size of the certificate. This affects programs which validate arbitrary certificate chains.

Affected

Product or packageVersionsReported by
crypto/x509before 1.24.9, from 1.25.0 before 1.25.3CVE List
stdlib (Go)before 1.24.9, from 1.25.0 before 1.25.3Go Vulnerability Database
golang gobefore 1.24.9, from 1.25.0 before 1.25.3NVD
golang (Bitnami)before 1.24.9, from 1.25.0 before 1.25.3Bitnami 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-407

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

What each source says

CVE List

Due to the design of the name constraint checking algorithm, the processing time of some inputs scale non-linearly with respect to the size of the certificate. This affects programs which validate arbitrary certificate chains.

NVD (es)

Debido al diseño del algoritmo de verificación de restricciones de nombre, el tiempo de procesamiento de algunas entradas escala de forma no lineal con respecto al tamaño del certificado. Esto afecta a programas que validan cadenas de certificados arbitrarias.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2025-58187 changed 2025-11-20CVE Terms of Use
Go Vulnerability DatabaseGO-2025-4007 changed 2026-05-15CC-BY-4.0
NVDCVE-2025-58187 changed 2026-10-08Public domain
Bitnami Vulnerability DatabaseBIT-GOLANG-2025-58187 changed 2026-09-08Apache-2.0