Vulnerability · Published Jun 11, 2025 · Assigned by Go

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

High 7.5

In plain English

A high-severity security flaw in crypto/x509 from Go standard library. There are no confirmed reports of exploitation so far. The chance it is exploited in the next 30 days is estimated at 0.4% (higher than 32% of all known vulnerabilities). Fixed versions are available - upgrade the affected package.

Severity (CVSS 3.1)7.5High
Exploit odds (30 days)0.4%top 68.4% of all CVEs
Exploited in the wildNo reportsCISA SSVC: none
Attack toolingNoneno public tooling known

Official 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.

Affected packages & fixed versions

EcosystemPackageFixed inAdvisory
AlmaLinux:10golang-docs1.24.4-1.el10_0.alma.1ALSA-2025:10677
AlmaLinux:10golang-misc1.24.4-1.el10_0.alma.1ALSA-2025:10677
AlmaLinux:10golang-src1.24.4-1.el10_0.alma.1ALSA-2025:10677
AlmaLinux:10golang-tests1.24.4-1.el10_0.alma.1ALSA-2025:10677
Alpine:v3.22go1.24.4-r0ALPINE-CVE-2025-22874
Alpine:v3.23go1.24.4-r0ALPINE-CVE-2025-22874
Alpine:v3.24go1.24.4-r0ALPINE-CVE-2025-22874
Debian:13golang-1.241.24.4-1DEBIAN-CVE-2025-22874
Gostdlib1.24.4GO-2025-3749
Ubuntu:22.04:LTSgolang-1.17no fix listedUBUNTU-CVE-2025-22874
Ubuntu:22.04:LTSgolang-1.18no fix listedUBUNTU-CVE-2025-22874
Ubuntu:22.04:LTSgolang-1.20no fix listedUBUNTU-CVE-2025-22874
Ubuntu:22.04:LTSgolang-1.21no fix listedUBUNTU-CVE-2025-22874
Ubuntu:24.04:LTSgolang-1.21no fix listedUBUNTU-CVE-2025-22874
Ubuntu:22.04:LTSgolang-1.23no fix listedUBUNTU-CVE-2025-22874
Ubuntu:24.04:LTSgolang-1.23no fix listedUBUNTU-CVE-2025-22874
Ubuntu:25.10golang-1.23no fix listedUBUNTU-CVE-2025-22874
Ubuntu:26.04:LTSgolang-1.23no fix listedUBUNTU-CVE-2025-22874
Ubuntu:22.04:LTSgolang-1.24no fix listedUBUNTU-CVE-2025-22874
Ubuntu:24.04:LTSgolang-1.24no fix listedUBUNTU-CVE-2025-22874
Ubuntu:25.10golang-1.24no fix listedUBUNTU-CVE-2025-22874
Ubuntu:26.04:LTSgolang-1.24no fix listedUBUNTU-CVE-2025-22874

Affected products (as reported)

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

References