All CVEs / Go standard library
CVE-2025-22874Go standard library crypto/x509
High 7.5 No auth needed
Follow: this CVE · Go standard library · Go standard library crypto/x509 We alert you by email or Slack (account required).
- Priority
- 60
- CVSS 3.1
- 7.5
- EPSS
- —
- Auth required
- No
- Published
- Jun 11, 2025
- Updated
- Jun 17, 2026
- Category
- Application · Cross-platform
- SSVC (CISA)
- Exploitation: none · Automatable: yes · Technical impact: partial
- Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
What happens
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
- Apply the vendor's security update for crypto/x509.
- It can be exploited without authentication: if you cannot patch now, restrict Internet access to the affected service.
Affected packages
| Ecosystem | Package | Affected versions | Fixed in | How to upgrade |
|---|---|---|---|---|
| Go | stdlib |
≥ 1.24.0-0 < 1.24.4 |
1.24.4 |
go get stdlib@v1.24.4 |
Per OSV / GitHub Advisories (GO-2025-3749). Check the version in your lockfile before upgrading.
Affected products
- Go standard library · crypto/x509
As reported by the CNA that published the CVE. NVD has not added CPEs with versions yet.
Official advisories
- Red Hat Security Advisory: go-toolset:rhel8 security, bug fix, and enhancement update · Red Hat · RHSA-2026:90994 · Nov 23, 2026 High
- Red Hat Security Advisory: go-toolset:rhel8 security, bug fix, and enhancement update · Red Hat · RHSA-2026:87245 · Nov 23, 2026 High
- Red Hat Security Advisory: go-toolset:rhel8 security, bug fix, and enhancement update · Red Hat · RHSA-2026:87246 · Nov 23, 2026 High
Also: Red Hat (+2)
Vendor, CERT and distribution advisories that name this CVE. Original titles.
Official sources
References
Links published by the sources. Open them with care.