CVE-2025-58187

Quadratic complexity when checking name constraints in crypto/x509

State
Published
Severity
7.5 High
Published
Oct 29, 2025
Updated
Nov 20, 2025
Reserved
Aug 27, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:HCISA-ADP

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
crypto/x509Go standard library
  • before 1.24.9Affected
  • 1.25.0 to before 1.25.3Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.