What’s Vulnerable › Vulnerabilities

CVE-2025-58187: Quadratic complexity when checking name constraints in crypto/x509

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 products

How to fix

Upgrade to a fixed version: Go 1.24.9, 1.25.3. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-58187 or the next vulnerability affects your stack