CVE-2025-22874Published Jun 11, 2025 · Jun 11Updated Oct 29
Usage of ExtKeyUsageAny disables policy validation in crypto/x509
Go standard library crypto/x509
High7.5Fix available
Affected versions
| Product | Affected | Fixed in |
|---|---|---|
| stdlib Go |
|
|
Original description
Calling Verify with a VerifyOptions.KeyUsages that contains ExtKeyUsageAny unintentionally disabledpolicy validation. This only affected certificate chains which contain policy graphs, which are rather uncommon.
From the CVE record · Go