CVEfocus › CVE database › CVE-2025-22874

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

CVSS 7.5 HighEPSS 0.5% (higher than 32% of CVEs)Published 2025-06-11Updated 2025-06-16Assigner: Go

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.

What to do

Fixed builds are available from AlmaLinux, Alpine, Debian, Go, Red Hat: see the table below for the fixed version per release.

Red Hat, Ubuntu have not shipped a fix for every release yet.

Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.

curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \
  -H "Content-Type: text/plain" --data-binary @inventory.txt

Vendor status at a glance

25Fixed
27Fix pending
11Under investigation
2Will not fix
2Not affected

Status by vendor and release

From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.

ReleasePackageStatusFixed versionAdvisory
Ubuntu 26.04golang-1.23Under investigationUBUNTU-CVE-2025-22874
Ubuntu 26.04golang-1.24Under investigationUBUNTU-CVE-2025-22874
Ubuntu 25.10golang-1.23Will not fix
Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list packages that need rebuilding outside of…
UBUNTU-CVE-2025-22874
Ubuntu 25.10golang-1.24Will not fix
Packages built using golang need to be rebuilt once the vulnerability has been fixed. This CVE entry does not list packages that need rebuilding outside of…
UBUNTU-CVE-2025-22874
Ubuntu 24.04golang-1.21Under investigationUBUNTU-CVE-2025-22874
Ubuntu 24.04golang-1.22Not affected
vulnerable_code_not_present
Ubuntu 24.04golang-1.23Under investigationUBUNTU-CVE-2025-22874
Ubuntu 24.04golang-1.24Under investigationUBUNTU-CVE-2025-22874
Ubuntu 22.04golang-1.13Fix pendingUBUNTU-CVE-2025-22874
Ubuntu 22.04golang-1.17Under investigationUBUNTU-CVE-2025-22874
Ubuntu 22.04golang-1.18Under investigationUBUNTU-CVE-2025-22874
Ubuntu 22.04golang-1.20Under investigationUBUNTU-CVE-2025-22874
Ubuntu 22.04golang-1.21Under investigationUBUNTU-CVE-2025-22874
Ubuntu 22.04golang-1.22Not affected
vulnerable_code_not_present
Ubuntu 22.04golang-1.23Under investigationUBUNTU-CVE-2025-22874
Ubuntu 22.04golang-1.24Under investigationUBUNTU-CVE-2025-22874
Ubuntu 20.04golang-1.13Fix pendingUBUNTU-CVE-2025-22874
Ubuntu 20.04golang-1.14Fix pendingUBUNTU-CVE-2025-22874
Ubuntu 20.04golang-1.16Fix pendingUBUNTU-CVE-2025-22874
Ubuntu 20.04golang-1.18Fix pendingUBUNTU-CVE-2025-22874
Ubuntu 20.04golang-1.20Fix pendingUBUNTU-CVE-2025-22874
Ubuntu 20.04golang-1.21Fix pendingUBUNTU-CVE-2025-22874
Ubuntu 18.04golang-1.10Fix pendingUBUNTU-CVE-2025-22874
Ubuntu 18.04golang-1.13Fix pendingUBUNTU-CVE-2025-22874
Ubuntu 18.04golang-1.16Fix pendingUBUNTU-CVE-2025-22874
Ubuntu 18.04golang-1.18Fix pendingUBUNTU-CVE-2025-22874
Ubuntu 18.04golang-1.8Fix pendingUBUNTU-CVE-2025-22874
Ubuntu 18.04golang-1.9Fix pendingUBUNTU-CVE-2025-22874
Ubuntu 16.04golang-1.10Fix pendingUBUNTU-CVE-2025-22874
Ubuntu 16.04golang-1.13Fix pendingUBUNTU-CVE-2025-22874
Ubuntu 16.04golang-1.18Fix pendingUBUNTU-CVE-2025-22874
Ubuntu 16.04golang-1.6Fix pendingUBUNTU-CVE-2025-22874
Ubuntu 14.04golang-1.10Fix pendingUBUNTU-CVE-2025-22874
Debian 13golang-1.24Fixed1.24.4-1DEBIAN-CVE-2025-22874
Red Hat Enterprise Linux 10go-toolsetFixed0:1.24.4-1.el10_0RHSA-2025:10677
Red Hat Enterprise Linux 10golangFixed0:1.24.4-1.el10_0RHSA-2025:10677
Red Hat Enterprise Linux 10golang-binFixed0:1.24.4-1.el10_0RHSA-2025:10677
Red Hat Enterprise Linux 10golang-docsFixed0:1.24.4-1.el10_0RHSA-2025:10677
Red Hat Enterprise Linux 10golang-miscFixed0:1.24.4-1.el10_0RHSA-2025:10677
Red Hat Enterprise Linux 10golang-raceFixed0:1.24.4-1.el10_0RHSA-2025:10677
Red Hat Enterprise Linux 10golang-srcFixed0:1.24.4-1.el10_0RHSA-2025:10677
Red Hat Enterprise Linux 10golang-testsFixed0:1.24.4-1.el10_0RHSA-2025:10677
Red Hat Enterprise Linux 9go-toolsetFixed0:1.24.4-1.el9_6RHSA-2025:10676
Red Hat Enterprise Linux 9golangFixed0:1.24.4-1.el9_6RHSA-2025:10676
Red Hat Enterprise Linux 9golang-binFixed0:1.24.4-1.el9_6RHSA-2025:10676
Red Hat Enterprise Linux 9golang-docsFixed0:1.24.4-1.el9_6RHSA-2025:10676
Red Hat Enterprise Linux 9golang-miscFixed0:1.24.4-1.el9_6RHSA-2025:10676
Red Hat Enterprise Linux 9golang-raceFixed0:1.24.4-1.el9_6RHSA-2025:10676
Red Hat Enterprise Linux 9golang-srcFixed0:1.24.4-1.el9_6RHSA-2025:10676
Red Hat Enterprise Linux 9golang-testsFixed0:1.24.4-1.el9_6RHSA-2025:10676
Red Hat Enterprise Linux 8delveFix pending
Affected
Red Hat Enterprise Linux 8go-toolsetFix pending
Affected
Red Hat Enterprise Linux 8golangFix pending
Affected
Red Hat Enterprise Linux 8golang-binFix pending
Affected
Red Hat Enterprise Linux 8golang-docsFix pending
Affected
Red Hat Enterprise Linux 8golang-miscFix pending
Affected
Red Hat Enterprise Linux 8golang-raceFix pending
Affected
Red Hat Enterprise Linux 8golang-srcFix pending
Affected
Red Hat Enterprise Linux 8golang-testsFix pending
Affected
AlmaLinux 10golang-docsFixed1.24.4-1.el10_0.alma.1ALSA-2025:10677
AlmaLinux 10golang-miscFixed1.24.4-1.el10_0.alma.1ALSA-2025:10677
AlmaLinux 10golang-srcFixed1.24.4-1.el10_0.alma.1ALSA-2025:10677
AlmaLinux 10golang-testsFixed1.24.4-1.el10_0.alma.1ALSA-2025:10677
Alpine Linux 3.24goFixed1.24.4-r0ALPINE-CVE-2025-22874
Alpine Linux 3.23goFixed1.24.4-r0ALPINE-CVE-2025-22874
Alpine Linux 3.22goFixed1.24.4-r0ALPINE-CVE-2025-22874
Go librarystdlibFixed1.24.4GO-2025-3749

What the vendor says

As published in the CVE record by Go, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.

References

About this page

Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.