7.5High

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

Go standard library crypto/x509 Published: (1 year ago)

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.

Weakness (CWE): CWE-295

Data: CVE.org, NVD, CISA KEV, FIRST EPSS, Ubuntu. Published as the sources state it, in English.

Affected products and versions

VendorProductVersions
Go standard library crypto/x509 1.24.0-0 – < 1.24.4

References and patches