Skip to main content
CVE-2025-22874VulnerabilityPublished Updated

CVE-2025-22874: Go standard library crypto/x509 · Improper Certificate Validation

Affects Go standard library crypto/x509Source CVE Database V5

0

Not known to be exploited · CVSS 7.5 High.

Data as of 26 Oct 2026, 06:26 UTC

CVSS 3.1 base score
7.5High
How severe the flaw is on the 0–10 CVSS scale.
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:N

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 11 Jun 2025

  2. Detectable: no evidence on record.

    No public nuclei template indexed

  3. Weaponised: no evidence on record.

    No public exploit code indexed in Metasploit or Exploit-DB

  4. Exploited in the wild: no evidence on record.

    Not in CISA KEV and no source reports exploitation

  5. Observed by OffSeq 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

ProductAffectedFixed in
Gogithub.com/golang/go/src/crypto/x509pkg:golang/github.com/golang/go/src/crypto/x509Other threatsAffected
  • =1.24.0-0
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.

References

Community reviews

Loading reviews…