cve.bz

CVE-2025-22874 go standard library crypto/x509

7.5 highEPSS 0.4%Fix available

High (7.5) in go standard library crypto/x509. EPSS 0.4% estimated probability of exploitation activity in the next 30 days. Fixed in stdlib 1.24.4.

On this page
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.

Severity

CVSS 3.1

7.5 high
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
EPSS
0.4% (unchanged from 0.4% a week ago; 0.4% 30 days ago) estimated probability of exploitation activity in the next 30 days; 32nd percentile. Scored 2026-11-22. A forecast for this CVE across the internet, not for your own systems.
CISA's assessment (SSVC)
Exploitation: none · Automatable: yes · Technical impact: partial, assessed 2025-06-11. From CISA's Vulnrichment in the CVE List: whether it is exploited, whether exploiting it can be automated, and how much control it gives.
Published
Modified
NVD analysis
Deferred: the NVD does not plan to analyze it
Record from
the NVD, synced

Fix and patched versions

Ask an AI about this CVE

Show the promptExplain CVE-2025-22874 for an engineer deciding whether to act. Use https://cve.bz/api/public/cves/CVE-2025-22874?via=ask-ai-copy and https://cve.bz/cve/CVE-2025-22874?via=ask-ai-copy as the source of truth: what is affected and which versions fix it, whether it is in CISA KEV, public exploits, and its EPSS (an internet-wide 30-day estimate of exploitation activity, not a forecast for my systems). If they give no fixed versions, use the CVE record https://cveawg.mitre.org/api/cve/CVE-2025-22874 or the vendor advisory, not third-party mirrors. Tell me how to check whether I am affected and how to verify a fix. Cite the sources and say where they are uncertain.

Opens a third-party assistant; its answer is its own, not cve.bz's. The prompt holds only this CVE's id and public links.

Affected

Versions

From the CNA's record in the CVE List.

ProductAffected
Go standard library crypto/x509from 1.24.0-0 before 1.24.4

Packages (OSV)

AdvisoryEcosystemPackageAffectedFixed in
GO-2025-3749Gostdlib>=1.24.0-0 <1.24.41.24.4

Linux distributions

DistributionReleasePackageFixed inAdvisory
Debian13golang-1.241.24.4-1DEBIAN-CVE-2025-22874
Ubuntu14.04:LTSgolang-1.10no fix listedUBUNTU-CVE-2025-22874
Ubuntu16.04:LTSgolang-1.6, golang-1.10no fix listedUBUNTU-CVE-2025-22874
Ubuntu18.04:LTSgolang-1.8, golang-1.9, golang-1.10no fix listedUBUNTU-CVE-2025-22874
Ubuntu20.04:LTSgolang-1.13, golang-1.14, golang-1.18 and 2 moreno fix listedUBUNTU-CVE-2025-22874
Ubuntu22.04:LTSgolang-1.17, golang-1.18, golang-1.20 and 3 moreno fix listedUBUNTU-CVE-2025-22874
Ubuntu24.04:LTSgolang-1.21, golang-1.23, golang-1.24no fix listedUBUNTU-CVE-2025-22874
Ubuntu25.10, 26.04:LTSgolang-1.23, golang-1.24no fix listedUBUNTU-CVE-2025-22874
UbuntuPro:16.04:LTSgolang-1.13, golang-1.18no fix listedUBUNTU-CVE-2025-22874
UbuntuPro:18.04:LTSgolang-1.13, golang-1.16, golang-1.18no fix listedUBUNTU-CVE-2025-22874
UbuntuPro:20.04:LTSgolang-1.16no fix listedUBUNTU-CVE-2025-22874
UbuntuPro:22.04:LTSgolang-1.13no fix listedUBUNTU-CVE-2025-22874
Red Hatenterprise_linux:9::appstreamgolang, go-toolset, golang-bin and 5 more0:1.24.4-1.el9_6RHSA-2025:10676
Red Hatenterprise_linux:10.0golang, go-toolset, golang-bin and 5 more0:1.24.4-1.el10_0RHSA-2025:10677
Red Hatrhel_e4s:9.2::appstreamgolang, go-toolset, golang-bin and 5 more0:1.25.9-1.el9_2RHSA-2026:47719
Red Hatrhel_e4s:9.4::appstreamgolang, go-toolset, golang-bin and 4 more0:1.25.9-1.el9_4RHSA-2026:47712
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 11 morego1.241.24.4-150000.1.26.1SUSE-SU-2025:01846-1
SUSEEnterprise Storage 7.1, Linux Enterprise High Performance Computing 15 SP3-LTSS, Linux Enterprise High Performance Computing 15 SP4-ESPOS and 9 morego1.24-openssl1.24.4-150000.1.9.1SUSE-SU-2025:02120-1
SUSELinux Enterprise Module for Development Tools 15 SP6, Linux Enterprise Module for Development Tools 15 SP7go1.24-openssl1.24.6-150600.13.9.1SUSE-SU-2025:03158-1
openSUSELeap 15.6go1.241.24.4-150000.1.26.1SUSE-SU-2025:01846-1
openSUSELeap 15.6go1.24-openssl1.24.6-150600.13.9.1SUSE-SU-2025:03158-1
openSUSETumbleweedgo1.241.24.4-1.1openSUSE-SU-2025:15224-1
openSUSETumbleweedgovulncheck-vulndb0.0.20250612T141001-1.1openSUSE-SU-2025:15225-1
openSUSETumbleweedminio-client20250721T052808Z-1.1openSUSE-SU-2025:15379-1
openSUSETumbleweednova3.11.4-1.1openSUSE-SU-2025:15251-1
openSUSETumbleweedpolaris9.6.4-1.1openSUSE-SU-2025:15263-1
AlmaLinux10golang-src, golang-docs, golang-misc and 1 more1.24.4-1.el10_0.alma.1ALSA-2025:10677
Alpinev3.22, v3.23, v3.24go1.24.4-r0ALPINE-CVE-2025-22874
Azure Linux2msft-golang1.24.1-3AZL-63872
Azure Linux3golangno fix listedAZL-78986 AZL-98865
Azure Linux3golang1.24.4-1AZL-72104
Alpaquita23go1.23.10-r0BELL-CVE-2025-22874
Alpaquita25, streamgo1.24.4-r0BELL-CVE-2025-22874
BellSoft Hardened Containers23go1.23.10-r0BELL-CVE-2025-22874
BellSoft Hardened Containers25, streamgo1.24.4-r0BELL-CVE-2025-22874

From the distributions' data via OSV.dev: the Debian Security Tracker; Ubuntu Security Notices © Canonical Ltd., CC BY-SA 4.0; Red Hat Security Data © Red Hat, Inc., CC BY 4.0; SUSE security data, CC BY 4.0; AlmaLinux's OSV database, MIT; the Alpine secdb, CC BY-SA 4.0; Microsoft's Azure Linux vulnerability data, MIT; BellSoft's OSV database, MIT. Modified: reformatted and linked to CVE records. Credits. On the distributions' own pages: Debian · Ubuntu · Red Hat · SUSE · openSUSE · Alpine · Alpaquita · BellSoft Hardened Containers.

Red Hat

Red Hat rates this Important.

Red Hat's statement

This flaw is rated as an Important severity because the vulnerability was found in the certificate validation logic of the Verify function. When VerifyOptions.KeyUsages includes ExtKeyUsageAny, certificate chains containing policy graphs may bypass certificate policy validation. This flaw allows an attacker to trick the system into accepting an invalid certificate, potentially enabling spoofing attacks, the issue weakens trust decisions in affected cases and impacts system integrity. Confidentiality and availability are not affected.

Red Hat Openshift Container Platform openshift-golang-builder-container ships golang 1.23 and does not ship the affected code.

Red Hat's mitigation

Mitigation for this issue is either not available or the currently available options do not meet the Red Hat Product Security criteria comprising ease of use and deployment, applicability to widespread installation base, or stability.

ProductPackageStateAdvisory
Red Hat Enterprise Linux 10golang-0:1.24.4-1.el10_0Fixed 2025-07-09RHSA-2025:10677
Red Hat Enterprise Linux 8.4 Advanced Mission Critical Update Supportgo-toolset:rhel8-8040020261027035356.522a0ee4Fixed 2026-10-27RHSA-2026:90994
Red Hat Enterprise Linux 8.4 Extended Update Support Long-Life Add-Ongo-toolset:rhel8-8040020261027035356.522a0ee4Fixed 2026-10-27RHSA-2026:90994
Red Hat Enterprise Linux 8.6 Advanced Mission Critical Update Supportgo-toolset:rhel8-8060020261020153812.97d7f71fFixed 2026-10-21RHSA-2026:87246
Red Hat Enterprise Linux 8.6 Extended Update Support Long-Life Add-Ongo-toolset:rhel8-8060020261020153812.97d7f71fFixed 2026-10-21RHSA-2026:87246
Red Hat Enterprise Linux 8.8 Telecommunications Update Servicego-toolset:rhel8-8080020261020152326.6b4b45d8Fixed 2026-10-21RHSA-2026:87245
Red Hat Enterprise Linux 8.8 Update Services for SAP Solutionsgo-toolset:rhel8-8080020261020152326.6b4b45d8Fixed 2026-10-21RHSA-2026:87245
Red Hat Enterprise Linux 9golang-0:1.24.4-1.el9_6Fixed 2025-07-09RHSA-2025:10676
Red Hat Enterprise Linux 9.2 Update Services for SAP Solutionsgolang-0:1.25.9-1.el9_2Fixed 2026-07-29RHSA-2026:47719
Red Hat Enterprise Linux 9.4 Update Services for SAP Solutionsgolang-0:1.25.9-1.el9_4Fixed 2026-07-29RHSA-2026:47712
Assisted Installer for Red Hat OpenShift Container Platform 2rhai/assisted-installer-agent-rhel9Affected
Assisted Installer for Red Hat OpenShift Container Platform 2rhai/assisted-installer-controller-rhel9Affected
Assisted Installer for Red Hat OpenShift Container Platform 2rhai/assisted-installer-rhel9Affected
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-controller-rhel9Will not fix
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-git-cloner-rhel9Will not fix
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-image-bundler-rhel9Will not fix
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-image-processing-rhel9Will not fix
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-operator-bundleAffected
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-shared-resource-rhel9Will not fix
Builds for Red Hat OpenShiftopenshift-builds/openshift-builds-shared-resource-webhook-rhel9Will not fix
404 more in the JSON and on Red Hat's page.

Contains Red Hat Security Data © Red Hat, Inc., licensed under CC BY 4.0. Source: https://access.redhat.com/security/data. Modified: reformatted. Red Hat's page for CVE-2025-22874.

References

Check your stackJSON