Skip to main content
No exploitation reportedFix available

CVE-2025-22874

Usage of ExtKeyUsageAny disables policy validation in crypto/x509

No exploitation reported by the sources we read.

  • Published2025-06-11
  • Fixed in1.24.4

Am I affected?

With a domain, we read the version its public headers and pages expose. A distribution build can carry the fix under an older number.

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.

Timeline

dates in UTC
  1. 2025-06-1117:15CVE publishedNVD

Versions per branch

OSV
golang
BranchAffectedFixed in
1.24≥ 1.24.0-0, < 1.24.41.24.4
stdlib
BranchAffectedFixed in
1.24≥ 1.24.0-0, < 1.24.41.24.4

as publishedRanges as NVD and OSV publish them; a distribution’s build can be fixed under an older number.

Products declared by the CNA1 product

As Go, the CNA that assigned this CVE, declared them in the CVE record; versions as written.

  • Go standard library crypto/x509other versions: not affected

    package crypto/x509https://pkg.go.dev

    Affected
    • ≥ 1.24.0-0, < 1.24.4fixed in 1.24.4semver

Source: the CNA record (CVE Program), © The MITRE Corporation,CVE Terms of UseCVE recordupdated 2025-06-16

Distribution builds and vendor advisories

Packages from OSV.dev and products from the vendors' CSAF advisories.

version not verifiedVersions not verified: read as OSV.dev and the vendors publish them, not checked against each vendor's release list.

Packages

  • amassWolfiall versions · fixed in 4.2.0-r24
  • amassChainguardall versions · fixed in 4.2.0-r24
  • amazon-cloudwatch-agentWolfiall versions · fixed in 1.300056.1-r1and 3 other packages
  • amazon-cloudwatch-agentChainguardall versions · fixed in 1.300056.1-r1and 3 other packages
  • amazon-k8s-cniWolfiall versions · fixed in 1.19.5-r1and 3 other packages
  • amazon-k8s-cniChainguardall versions · fixed in 1.19.5-r1and 3 other packages
  • apkoWolfiall versions · fixed in 0.27.9-r1
  • apkoChainguardall versions · fixed in 0.27.9-r1

601 more package ranges on OSV.dev

Vendor advisories

  • CVE-2025-22874 Red Hat Product Security1,000 products fixed · 57 known affected

    crypto/x509: Usage of ExtKeyUsageAny disables policy validation in crypto/x509

    rhai/assisted-installer-agent-rhel9 as a component of Assisted Installer for Red Hat OpenShift Container Platform 2 · rhai/assisted-installer-controller-rhel9 as a component of Assisted Installer for Red Hat OpenShift Container Platform 2 · rhai/assisted-installer-rhel9 as a component of Assisted Installer for Red Hat OpenShift Container Platform 2 · +54 more

  • RHSA-2026:87245 Red Hat Product Security33 products fixed

    Red Hat Security Advisory: go-toolset:rhel8 security, bug fix, and enhancement update

  • RHSA-2026:87246 Red Hat Product Security26 products fixed

    Red Hat Security Advisory: go-toolset:rhel8 security, bug fix, and enhancement update

  • RHSA-2026:47712 Red Hat Product Security17 products fixed

    Red Hat Security Advisory: golang security, bug fix, and enhancement update

  • RHSA-2026:47719 Red Hat Product Security18 products fixed

    Red Hat Security Advisory: golang security, bug fix, and enhancement update

  • RHSA-2025:23236 Red Hat Product Security4 products fixed

    Red Hat Security Advisory: Red Hat Lightspeed (formerly Insights) for Runtimes 1.0.0: new RHEL 9 container image security update

16 more advisories

Full record on NVD

Fix

  1. Update golang to 1.24.4
  2. Vendor fix Red Hat Product Security RHSA-2026:87245 · 33 productsFor details on how to apply this update, which includes the changes described in this advisory, refer to: https://access.redhat.com/articles/11258
  3. Vendor fix Red Hat Product Security RHSA-2025:23236 · 4 productsBefore applying this update, make sure all previously released errata relevant to your system have been applied. For details on how to apply this update, refer to: https://access.redhat.com/articles/11258
  4. Vendor fix Red Hat Product Security RHSA-2025:19890 · 144 productsFor OpenShift Container Platform 4.20 see the following documentation, which will be updated shortly for this release, for important instructions on how to upgrade your cluster and fully apply this asynchronous errata update: https://docs.redhat.com/en/documentation/openshift_container_platform/4.…
  5. Vendor fix Red Hat Product Security RHSA-2025:17043 · 4 productsFor details on how to apply this update, refer to: https://docs.redhat.com/en/documentation/openshift_container_platform/latest/html/operators/administrator-tasks#olm-upgrading-operators
  6. Vendor fix Red Hat Product Security RHSA-2025:14484 · 1 productRed Hat Trusted Artifact Signer simplifies cryptographic signing and verifying of software artifacts such as container images, binaries and source code changes. It is a self-managed on-premise deployment of the Sigstore project available at https://sigstore.dev Platform Engineers, Software Develop…
  7. Vendor fix Red Hat Product Security RHSA-2025:13932 · 4 productsIt is recommended that existing users of Red Hat OpenShift Builds 1.5.0 upgrades to to 1.5.1

Detection

Nuclei template
none so far
ProjectDiscovery
Exploit-DB
no entry
Exploit-DB
Proof of concept
Metasploit modules
none listed
Metasploit Framework

Sources

Identifiers

Technical details

CVSS v3 Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Published
2025-06-11
Last Modified
2026-06-17
NVD status
Deferred
GitHub Advisory
GHSA-6f52-wpx2-hvf2

Frequently asked questions

What is CVE-2025-22874?

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.

Is CVE-2025-22874 actively exploited?

Active exploitation of CVE-2025-22874 has not been confirmed. Its EPSS score was 0.4% on 2026-11-08, the estimated probability of exploitation in the next 30 days.

What is the CVSS score for CVE-2025-22874?

CVE-2025-22874 has a CVSS v3 base score of 7.5 (HIGH severity), with vector string CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.

Running crypto/x509? Hear about its next vulnerability

Surveillance reads the versions in your stack — a domain, a lockfile or a list — checks each CVE against the ranges its sources publish, and alerts you when one you run is exploited or enters CISA KEV. A version it cannot read stays « version not verified ».

No credit card required · No monthly cap on website lookups · 250 API requests/month

Sources for this record