Resource Consumption Vulnerability in Go's Error Handling

Check todayDenial of service over the network, no login needed.
7.5HIGH

CVE-2025-61729

Key Information:

Vendor

Go Standard Library

Status
Crypto/x509
CVE ID
CVE ID:
CVE-2025-61729
Vendor
CVE Published:
2 December 2025
Fixed in
Fixed in:
1.24.11, 1.25.5

Timeline

Trending 1 day after it was published

  • πŸ“ˆ

    Vulnerability started trending

  • Vulnerability published

  • Vulnerability Reserved

Badges

πŸ“ˆ TrendedπŸ“ˆ Score: 2,060

How risky is it?

  • Yes: Works over the network, no login needed
  • No: No public exploit yet
  • No: Not on CISA's exploited list
  • No: No ransomware use seen

Our verdict

Check today

Find out if you're affected. If you are, patch.

What to do

1Update to a fixed version
crypto/x509 0 to below 1.24.11 is vulnerable
crypto/x509 1.25.0 to below 1.25.5 is vulnerable

Install the crypto/x509 release that fixes your version line, or later:

1.24.111.25.5
2Can't patch yet? Reduce exposure

It can be reached over the network, so limit who can reach crypto/x509. Block it from the internet, allow only trusted hosts or a VPN, and turn off the affected feature if you don't use it, until you can update.

3Why it's rated "Check today"
  • It can be exploited remotely without credentials.
  • Its CVSS severity is high (7.5).

What is CVE-2025-61729?

CVE-2025-61729 is a vulnerability in the Go Standard Library's Crypto/x509 package, specifically within the HostnameError.Error() function. This flaw occurs when constructing an error string without a limit on the number of hosts printed. An attacker can exploit this by providing a certificate that triggers excessive resource consumption through repeated string concatenation, leading to performance degradation.

Potential Impact of CVE-2025-61729

  1. Excessive resource consumption: An attacker can cause the application to consume an excessive amount of CPU and memory resources, potentially leading to denial of service.

References

Certificate Trust Issue in Go Affecting Security

CVE-2026-111943
Go Standard LibraryCrypto/x509πŸ˜„πŸ‘Ύ6.8MEDIUM

Insufficient Host Validation in Go's URL Parsing Component

CVE-2026-25679
Go Standard LibraryNet/urlπŸ”₯πŸ˜„7.5HIGH

Cross-Origin Redirect Flaw in Go's Proxy Headers

CVE-2025-4673
Go Standard LibraryNet/httpπŸ˜„6.8MEDIUM
View more Go Standard Library vulnerabilities...

Facts on this page come from the sources listed above; the writeup is AI-assisted. How we rate vulnerabilities Β· Report a correction

CVSS V3.1

Score:
7.5
Severity:
HIGH
Confidentiality:
None
Integrity:
None
Availability:
None
Attack Vector:
Network
Attack Complexity:
Low
Privileges Required:
None
User Interaction:
None
Scope:
Unchanged

Credit

Philippe Antoine (Catena cyber)
.