CVE-2025-58187

published 29 Oct 2025 · updated 16 Nov 2026

Quadratic complexity when checking name constraints in crypto/x509

7.5HighCVSS 7.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 1.24.9 and 1.25.3.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Go standard library<1.24.9, >=1.25.0 <1.25.31.24.9, 1.25.3

Timeline

Every event on this vulnerability

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-58187 severity on Zeptric[![CVE-2025-58187](https://zeptric.io/badge/cve/CVE-2025-58187.svg)](https://zeptric.io/cve/CVE-2025-58187)