CVE-2025-58187: Go standard library crypto/x509 · Inefficient Algorithmic Complexity
Affects Go standard library crypto/x509Source CVE Database V5
Not known to be exploited · CVSS 7.5 High.
Data as of 26 Oct 2026, 09:15 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 34% 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:N/A:HExploitation evidence
Disclosed: evidence found.
CVE published 29 Oct 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 26 Oct 2026.
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
1. Upgrade to a patched version of the Go standard library once it becomes available, as this is the definitive fix for the vulnerability. 2. Until a patch is released, implement input validation and size limits on certificate chains to prevent processing of excessively large or complex certificates. 3. Employ rate limiting and resource usage monitoring on services performing certificate validation to detect and mitigate abnormal CPU consumption patterns. 4. Consider isolating certificate validation processes in separate containers or sandboxes with strict resource quotas to contain potential DoS impacts. 5. Review and harden TLS termination points and certificate validation logic to reject suspicious or non-standard certificates early. 6. Monitor security advisories from the Go project and related ecosystem tools for updates and patches. 7. Conduct internal audits of all services using Go's crypto/x509 package to identify exposure and prioritize remediation efforts. 8. Educate development and operations teams about the vulnerability and encourage proactive incident response planning.
Description
Due to the design of the name constraint checking algorithm, the processing time of some inputs scale non-linearly with respect to the size of the certificate. This affects programs which validate arbitrary certificate chains.