VDB
Sign up

GO-2026-4946

Inefficient policy validation in crypto/x509

Quick fix

GO-2026-4946 — stdlib: upgrade to the fixed version with the command below.

go get stdlib@v1.25.9

Details

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.

Are you affected?

Enter the version of the package you're using.

Affected packages

Go/stdlib
Introduced in: 0Fixed in: 1.25.9
Fixgo get stdlib@v1.25.9

References