CVE-2025-22874

Usage of ExtKeyUsageAny disables policy validation in crypto/x509

State
Published
Severity
7.5 High
Published
Jun 11, 2025
Updated
Jun 16, 2025
Reserved
Jan 8, 2025

Read the record on cve.org

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.

Scores

CVSSScoreVectorSource
3.17.5 HighCVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NCISA-ADP

Weaknesses

The record names no weakness.

Affected Products

ProductVersions
crypto/x509Go standard library
  • 1.24.0-0 to before 1.24.4Affected

References

Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.