Allocation of Resources Without Limits or Throttling Affecting std/crypto/x509 package, versions <1.24.11>=1.25.0 <1.25.5


Severity

Recommended
0.0
medium
0
10

CVSS assessment by Snyk's Security Team. Learn more

Threat Intelligence

EPSS
0.46% (38th percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications

Snyk Learn

Learn about Allocation of Resources Without Limits or Throttling vulnerabilities in an interactive lesson.

Start learning
  • Snyk IDSNYK-GOLANG-STDCRYPTOX509-14545541
  • published6 Jan 2026
  • disclosed2 Dec 2025
  • creditPhilippe Antoine

Introduced: 2 Dec 2025

CVE-2025-61729  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

Upgrade std/crypto/x509 to version 1.24.11, 1.25.5 or higher.

Overview

std/crypto/x509 is a Go standard library package std/crypto/x509

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling.

Go Vulnerability Report:
A memory exhaustion vulnerability in the Error function of HostnameError when constructing an error string. An attacker can cause excessive resource consumption by providing a certificate with a large number of hosts, resulting in repeated string concatenation and quadratic runtime.

CVSS Base Scores

version 4.0
version 3.1