CVE-2025-22874: Go standard library crypto/x509 · Improper Certificate Validation
Affects Go standard library crypto/x509Source CVE Database V5
Not known to be exploited · CVSS 7.5 High.
Data as of 26 Oct 2026, 06:26 UTC
- EPSS
- 0.3% chance of exploitation in 30 days – higher than 31% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:NExploitation evidence
Disclosed: evidence found.
CVE published 11 Jun 2025
Detectable: no evidence on record.
No public nuclei template indexed
Weaponised: no evidence on record.
No public exploit code indexed in Metasploit or Exploit-DB
Exploited in the wildExploited: no evidence on record.
Not in CISA KEV and no source reports exploitation
Observed by OffSeq MirageSeen by Mirage: no evidence on record.
No attack traffic recorded by OffSeq Mirage sensors
A missing step is not evidence of safety. Sources: cve.org (opens in a new tab), the Metasploit, Exploit-DB and nuclei-templates index as of 2026-10-26.
What to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
Gogithub.com/golang/go/src/crypto/x509pkg:golang/github.com/golang/go/src/crypto/x509Other threats | Affected
| Fixed in– |
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
2) Audit all applications and services using the crypto/x509 package to identify usage of VerifyOptions with ExtKeyUsageAny and certificate chains containing policy graphs. 3) Where possible, avoid using ExtKeyUsageAny in verification options until the vulnerability is patched. 4) Implement additional certificate validation layers or use external libraries/tools that enforce strict policy validation as a temporary workaround. 5) Monitor network traffic and logs for anomalous certificate validation events or unexpected certificate acceptance. 6) Engage with certificate authorities and PKI administrators to review certificate policies and ensure minimal use of complex policy graphs. 7) Educate developers and security teams about the risks associated with this vulnerability and encourage secure coding practices around certificate validation.
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.