CVE-2025-61729: Go standard library crypto/x509 · Uncontrolled Resource Consumption
Affects Go standard library crypto/x509Source CVE Database V5
Not known to be exploited · CVSS 7.5 High.
Data as of 26 Oct 2026, 08:30 UTC
- EPSS
- 0.4% chance of exploitation in 30 days – higher than 39% 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 2 Dec 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. Monitor official Go project channels for patches addressing CVE-2025-61729 and apply updates promptly once available. 2. Until a patch is released, implement application-level controls to limit the number of hostnames processed during certificate validation, such as pre-filtering certificates or rejecting those with unusually large SAN (Subject Alternative Name) fields. 3. Employ resource usage monitoring and rate limiting on services performing certificate validation to detect and mitigate abnormal CPU or memory consumption spikes. 4. Consider deploying Web Application Firewalls (WAFs) or TLS termination proxies that can inspect and filter certificates before they reach vulnerable Go components. 5. Review and harden TLS certificate acceptance policies to restrict certificates from untrusted or unknown sources. 6. Conduct threat modeling and penetration testing focusing on certificate handling to identify potential exploitation paths. 7. Educate development teams about safe string handling and the risks of unbounded concatenation in security-critical code. 8. Where feasible, isolate certificate validation processes in sandboxed or resource-limited environments to contain potential DoS effects.
Description
Within HostnameError.Error(), when constructing an error string, there is no limit to the number of hosts that will be printed out. Furthermore, the error string is constructed by repeated string concatenation, leading to quadratic runtime. Therefore, a certificate provided by a malicious actor can result in excessive resource consumption.