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

- Severity: High 7.5 (CVSS:3.1, scored by CISA-ADP) `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.46%, higher than 32% of CVEs (2026-11-30)
- Published: 2025-06-11T16:23:50.000Z
- Modified: 2026-11-23T21:12:28.653Z
- Also known as: GO-2025-3749, BIT-GOLANG-2025-22874
- Related: RHSA-2025:10676, RHSA-2025:10677, RHSA-2026:47712, RHSA-2026:47719, RHSA-2026:87245, RHSA-2026:87246, RHSA-2026:90994
- Weaknesses: CWE-295
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: Go

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

(As written by CVE List.)

## Affected

- crypto/x509: from 1.24.0-0 before 1.24.4
- stdlib (Go): from 1.24.0-0 before 1.24.4
- golang (Bitnami): from 1.24.0-0 before 1.24.4

## Every score

- CISA-ADP: 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`
- Bitnami Vulnerability Database: rating High

## References

- <https://go.dev/cl/670375> (fix, web)
- <https://go.dev/issue/73612> (report, web)
- <https://groups.google.com/g/golang-announce/c/ufZ8WpEsA3A> (web)
- <https://pkg.go.dev/vuln/GO-2025-3749> (web)
- <https://nvd.nist.gov/vuln/detail/CVE-2025-22874> (web)

## Sources

- CVE List: [CVE-2025-22874](https://www.cve.org/CVERecord?id=CVE-2025-22874), CVE Terms of Use, modified 2025-06-16
- Go Vulnerability Database: [GO-2025-3749](https://pkg.go.dev/vuln/GO-2025-3749), CC-BY-4.0, modified 2026-11-23
- NVD: [CVE-2025-22874](https://nvd.nist.gov/vuln/detail/CVE-2025-22874), Public domain, modified 2026-06-17
- Bitnami Vulnerability Database: [BIT-GOLANG-2025-22874](https://osv.dev/vulnerability/BIT-GOLANG-2025-22874), Apache-2.0, modified 2025-07-09

---

Page: https://cve.day/CVE-2025-22874 · Whole record: https://cve.day/CVE-2025-22874.json · Rebuilt by cve.day 2026-11-25T22:58:59.151Z
