ADVISORIES

Go Vulnerability Database

GO-2025-4007

Quadratic complexity when checking name constraints in crypto/x509

Details

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 packages

EcosystemPackageAffected versions
Gostdlib
All versions before 1.24.9 (fixed in 1.24.9)
From 1.25.0 before 1.25.3 (fixed in 1.25.3)

References