Skip to main content
VulnerabilityPublished Updated

CVE-2025-58187: Go standard library crypto/x509 · Inefficient Algorithmic Complexity

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, 09:15 UTC

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

Exploitation evidence

  1. Disclosed: evidence found.

    CVE published 29 Oct 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 26 Oct 2026.

What to do

Affected software

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

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.

References

Community reviews

Loading reviews…