CVE-2025-22874
JSON

7.5high

Usage of ExtKeyUsageAny disables policy validation in crypto/x509

Severity
7.5high CVSS:3.1 by CISA-ADP
Exploit likelihood
0.46% (higher than 32% of CVEs)
Published
Last changed
Assigned by
Go
Also known as
GO-2025-3749BIT-GOLANG-2025-22874

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.

Affected

Product or packageVersionsReported by
crypto/x509from 1.24.0-0 before 1.24.4CVE List
stdlib (Go)from 1.24.0-0 before 1.24.4Go Vulnerability Database
golang (Bitnami)from 1.24.0-0 before 1.24.4Bitnami Vulnerability Database

All scores

CISA-ADP7.5high CVSS:3.1CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N
Bitnami Vulnerability Databasehigh rating

Classification

CWE-295

SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial.

What each source says

CVE List

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.

NVD (es)

Al llamar a Verify con un VerifyOptions.KeyUsages que contiene ExtKeyUsageAny, se deshabilitó involuntariamente la validación de políticas. Esto solo afectó a las cadenas de certificados que contienen gráficos de políticas, lo cual es poco común.

References

Related

Sources

SourceRecordLicence
CVE ListCVE-2025-22874 changed 2025-06-16CVE Terms of Use
Go Vulnerability DatabaseGO-2025-3749 changed 2026-11-23CC-BY-4.0
NVDCVE-2025-22874 changed 2026-06-17Public domain
Bitnami Vulnerability DatabaseBIT-GOLANG-2025-22874 changed 2025-07-09Apache-2.0