What’s Vulnerable › Vulnerabilities

CVE-2025-22874: Usage of ExtKeyUsageAny disables policy validation in crypto/x509

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.

Affected products

How to fix

Upgrade to a fixed version: Go standard library crypto/x509 1.24.4. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2025-22874 or the next vulnerability affects your stack