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?
Debian, Ubuntu or Red Hat sometimes backport a fix without changing the upstream version number: such a version reads « to verify », never « 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- 2025-06-1117:15CVE publishedNVD
Versions per branch
OSV| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 1.24 | ≥ 1.24.0-0, < 1.24.4 | 1.24.4 | OSV |
| Branch | Affected | Fixed in | Source |
|---|---|---|---|
| 1.24 | ≥ 1.24.0-0, < 1.24.4 | 1.24.4 | OSV |
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
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
Red Hat Security Advisory: go-toolset:rhel8 security, bug fix, and enhancement update
Red Hat Security Advisory: go-toolset:rhel8 security, bug fix, and enhancement update
Red Hat Security Advisory: golang security, bug fix, and enhancement update
Red Hat Security Advisory: golang security, bug fix, and enhancement update
Red Hat Security Advisory: Red Hat Lightspeed (formerly Insights) for Runtimes 1.0.0: new RHEL 9 container image security update
16 more advisories
Fix
- Update golang to 1.24.4
- 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
- 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
- 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.…
- 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
- 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…
- 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
- PoC-in-GitHubno public repository identifiedread 2026-11-08
- Metasploit modules
- none listed Metasploit Framework
Sources
- NVDCVE recordread 2026-10-23
- CISA-ADPSSVC decisionnone2025-06-11
- CISA-ADPCVSS 3.17.52025-06-11
- FIRST EPSSEPSS score0.4 %2026-11-08
- OSVaffected packages—
- GitHub Advisoriesadvisory—
Identifiers
- AZL-63872same flawAzure Linux · MIT
- AZL-72104same flawAzure Linux · MIT
- AZL-78986same flawAzure Linux · MIT
- AZL-98865same flawAzure Linux · MIT
- BIT-golang-2025-22874same flawBitnami · Apache-2.0
- CGA-222m-q549-28r6same flawChainguard · CC-BY-NC-ND-4.0
- CGA-223c-mq46-7cpgsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-224f-g4w2-7w39same flawChainguard · CC-BY-NC-ND-4.0
- CGA-228c-gg7w-2h72same flawChainguard · CC-BY-NC-ND-4.0
- CGA-22gw-6wj4-wh44same flawChainguard · CC-BY-NC-ND-4.0
- CGA-2328-rfc9-j8g5same flawChainguard · CC-BY-NC-ND-4.0
- CGA-2345-4f8r-2q7vsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-238f-p5f6-v43xsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-238h-vpxp-r3jmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-23m6-f82h-398jsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-23r5-52c9-22wrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-244j-2cgv-mrhxsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-244w-q92w-6g4vsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-2452-ww9p-r899same flawChainguard · CC-BY-NC-ND-4.0
- CGA-245c-pfx4-m4jwsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-245w-hpmx-p7p7same flawChainguard · CC-BY-NC-ND-4.0
- CGA-249m-fg2f-ww65same flawChainguard · CC-BY-NC-ND-4.0
- CGA-249r-2m7f-779csame flawChainguard · CC-BY-NC-ND-4.0
- CGA-24gg-8jpp-9qprsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-24gr-qjhf-62vrsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-24hc-jqw8-629csame flawChainguard · CC-BY-NC-ND-4.0
- CGA-24hm-8gp9-x3qhsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-24jx-6c9h-5v7vsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-24m7-whfx-4895same flawChainguard · CC-BY-NC-ND-4.0
- CGA-24p8-9fhp-2mwmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-24x9-79fg-qpm3same flawChainguard · CC-BY-NC-ND-4.0
- CGA-252r-846q-47jhsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-257p-wfmx-qx56same flawChainguard · CC-BY-NC-ND-4.0
- CGA-2582-f2p6-j534same flawChainguard · CC-BY-NC-ND-4.0
- CGA-2583-3c3w-wmhmsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-25g7-wpf7-29v8same flawChainguard · CC-BY-NC-ND-4.0
- CGA-25h3-8vf2-592msame flawChainguard · CC-BY-NC-ND-4.0
- CGA-25j4-35mx-mfg6same flawChainguard · CC-BY-NC-ND-4.0
- CGA-25jm-6jr2-ghvhsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-25mh-5m62-fr82same flawChainguard · CC-BY-NC-ND-4.0
- CGA-25q5-r729-c9wqsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-25r7-3fjq-78m2same flawChainguard · CC-BY-NC-ND-4.0
- CGA-25rc-9c6g-9fr9same flawChainguard · CC-BY-NC-ND-4.0
- CGA-25vc-5whp-25cpsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-25vf-jq7c-56x5same flawChainguard · CC-BY-NC-ND-4.0
- CGA-267p-vff6-cp5csame flawChainguard · CC-BY-NC-ND-4.0
- CGA-269j-jm3v-vwvjsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-26cm-67xg-hr8psame flawChainguard · CC-BY-NC-ND-4.0
- CGA-26cp-72p4-9c9gsame flawChainguard · CC-BY-NC-ND-4.0
- CGA-26f6-pmpp-vp49same flawChainguard · CC-BY-NC-ND-4.0
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?
Is CVE-2025-22874 actively exploited?
What is the CVSS score for CVE-2025-22874?
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
Go further
- Following what attackers exploit right now? The CISA KEV additions of the month, with their patch deadlines.
- Running this software? Vulnerability monitoring alerts you to new vulnerabilities in your products.
Related vulnerabilities
Same product first, then the same vendor advisory and the same publication week.
Sources for this record
- CVE Program · CVE Program Terms of Use
- FIRST EPSS · EPSS terms of use (free use, attribution requested)
- GitHub Advisory Database · CC-BY-4.0 · GHSA-6f52-wpx2-hvf2
- NVD · Public domain (17 U.S.C. § 105) for NVD-authored data; third-party content under its own terms
- OpenCVE · OpenCVE terms of service · terms restrict redistribution
- OSV.dev · Per record, as its publisher states it: each row carries the label in sourceLicense when one is served
- Red Hat Product Security (CSAF and VEX) · CC-BY-4.0
- CISA Vulnrichment · CC0-1.0