Vulnerability in Go Standard Library Crypto/x509

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.

EPSS: 0.003 (22.8th percentile) — read the EPSS interpretation.

CVSS v3 metric

CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:N.

Affected products

Public proof-of-concept exploits

References

Frequently asked questions

What is CVE-2025-22874?
CVE-2025-22874 is a high-severity vulnerability in Go Standard Library Crypto/x509, classified under CWE-295: IMPROPER CERTIFICATE VALIDATION. CVSS score: 7.5/10. Published 2025-06-11.
How severe is CVE-2025-22874?
High severity. CVSS v3 base score is 7.5 out of 10.
Is CVE-2025-22874 known to be exploited?
5 public proof-of-concept repositories are indexed. Not currently listed in the CISA KEV catalog.