Policy Validation Bypass in Go's Certificate Handling
CVE-2025-22874
7.5HIGH
What is CVE-2025-22874?
A policy validation bypass vulnerability exists in Go's certificate handling, specifically when using Verify with VerifyOptions.KeyUsages that contain ExtKeyUsageAny. This flaw can lead to unintended situations where policy validation is disabled, which may affect certain certificate chains that include policy graphs, though such situations are rare. It is crucial for developers using affected versions to review and update their implementations to mitigate potential security risks.
Affected Version(s)
crypto/x509 0 < 1.23.10
crypto/x509 1.24.0-0 < 1.24.4