Description
Validating certificate chains which use policies is unexpectedly inefficient when certificates in the chain contain a very large number of policy mappings, possibly causing denial of service. This only affects validation of otherwise trusted certificate chains, issued by a root CA in the VerifyOptions.Roots CertPool, or in the system certificate pool.
Problem types
CWE-407: Inefficient Algorithmic Complexity
Product status
Any version before 1.25.9
1.26.0-0 (semver) before 1.26.2
Credits
Jakub Ciolek - https://ciolek.dev
References
groups.google.com/g/golang-announce/c/0uYbvbPZRWU