Skip to content
CVE PROGRAM SOURCE RECORD7.5 High

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

Version statuses are supplied by the assigning organization. Consult the original record for detailed ranges and platform conditions.

Go standard library crypto/x509

Default version status: unaffected

  • 0 to < 1.24.9affected
  • 1.25.0 to < 1.25.3affected

References