Policy Validation Bypass in Go's Certificate Handling
CVE-2025-22874

7.5HIGH

Key Information:

Vendor
CVE Published:
11 June 2025

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

References

CVSS V3.1

Score:
7.5
Severity:
HIGH
Confidentiality:
None
Integrity:
High
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Krzysztof Skrzętnicki (@Tener) of Teleport
.
CVE-2025-22874 : Policy Validation Bypass in Go's Certificate Handling