CVE-2025-22874

GO-2025-3749 · published 11 Jun 2025 · updated 16 Nov 2026

Usage of ExtKeyUsageAny disables policy validation in crypto/x509

7.5HighCVSS 7.5EPSS 0%

No exploitation in the wild has been reported. EPSS puts the chance of exploitation in the next 30 days at 0%. Fixed in 1.24.4 and stdlib 1.24.4.

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

Vendors, products and packages with version ranges

VendorProductVersionsFixed
Go standard library>=1.24.0-0 <1.24.41.24.4
go: stdlib>=1.24.0-0 <1.24.41.24.4

Timeline

Every event on this vulnerability

Related

Other vulnerabilities in stdlib (Go), strongest first

Embed

A live severity badge for an advisory, README or ticket

CVE-2025-22874 severity on Zeptric[![CVE-2025-22874](https://zeptric.io/badge/cve/CVE-2025-22874.svg)](https://zeptric.io/cve/CVE-2025-22874)