CVE-2025-61729

Published Dec 2, 2025

Last updated 6 months ago

Overview

AI description

Automated description summarized from trusted sources.

CVE-2025-61729 is a vulnerability within the `crypto/x509` package of the Go standard library. Specifically, the `HostnameError.Error()` method is susceptible to uncontrolled resource consumption. The vulnerability arises because there is no limit to the number of hosts printed when constructing an error string within `HostnameError.Error()`. Furthermore, the error string is built through repeated string concatenation, leading to quadratic runtime. A malicious actor could exploit this by providing a certificate that leads to excessive resource consumption.

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.
Source
security@golang.org
NVD status
Analyzed
Products
go

Risk scores

CVSS 3.1

Type
Secondary
Base score
7.5
Impact score
3.6
Exploitability score
3.9
Vector string
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
Severity
HIGH

Weaknesses

nvd@nist.gov
CWE-295

Social media

Hype score
Not currently trending
  1. Critical security advisory for #Fedora 42 users! ๐Ÿ› ๏ธ The golang-github-openprinting-ipp-usb package (version < 0.9.31) is vulnerable to a DoS attack via CVE-2025-61729. Read more: ๐Ÿ‘‰ https://t.co/L4Kt4ICIs0 #Security https://t.co/CR4Jlv5VFV

    @Cezar_H_Linux

    15 Mar 2026

    151 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  2. Critical Go sec update for #Mageia 9: MGASA-2025-0326 patches CVE-2025-61727 (DNS constraint bypass in crypto/x509) & CVE-2025-61729 (resource exhaustion DoS). Read more: ๐Ÿ‘‰ https://t.co/84x7Bln9EY #Security https://t.co/RYWVRzshYk

    @Cezar_H_Linux

    13 Dec 2025

    34 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  3. openSUSE releases Go 1.24.11 and 1.25.5 updates fixing crypto/x509 flaws CVE-2025-61727 and CVE-2025-61729 that can cause resource exhaustion and cert validation issues. #Vulnerability https://t.co/M1qJQmfpsR

    @threatcluster

    10 Dec 2025

    24 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  4. CVE-2025-61729 Excessive resource consumption when printing error string for host certificate validation in crypto/x509 https://t.co/iFVGnVE8wm #cybersecurity #SecQube

    @SecQube

    9 Dec 2025

    40 Impressions

    0 Retweets

    0 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  5. Go 1.25.5 is out today, including a security fix for GO-2025-4155 (CVE-2025-61729). https://t.co/SYwNGuo5Vg

    @zhangjintao9020

    3 Dec 2025

    667 Impressions

    0 Retweets

    5 Likes

    0 Bookmarks

    0 Replies

    0 Quotes

  6. ๐ŸŽ‰ Go 1.25.5 and 1.24.11 are released! ๐Ÿ” Security: Includes security fixes for crypto/x509 (CVE-2025-61729, CVE-2025-61727). ๐Ÿ—ฃ Announcement: https://t.co/zG9tCI47Nf โฌ‡๏ธ Download: https://t.co/d45S6FsIsY #golang https://t.co/w6hYSx5Upg

    @golang

    2 Dec 2025

    27211 Impressions

    102 Retweets

    662 Likes

    26 Bookmarks

    12 Replies

    10 Quotes

Configurations

  1. A malicious module proxy can exploit a flaw in the go command's validation of module checksums to bypass checksum database validation. This vulnerability affects any user using an untrusted module proxy (GOMODPROXY) or checksum database (GOSUMDB). A malicious module proxy can serve altered versions of the Go toolchain. When selecting a different version of the Go toolchain than the currently installed toolchain (due to the GOTOOLCHAIN environment variable, or a go.work or go.mod with a toolchain line), the go command will download and execute a toolchain provided by the module proxy. A malicious module proxy can bypass checksum database validation for this downloaded toolchain. Since this vulnerability affects the security of toolchain downloads, setting GOTOOLCHAIN to a fixed version is not sufficient. You must upgrade your base Go toolchain. The go tool always validates the hash of a toolchain before executing it, so fixed versions will refuse to execute any cached, altered versions of the toolchain. The go tool trusts go.sum files to contain accurate hashes of the current module's dependencies. A malicious proxy exploiting this vulnerability to serve an altered module will have caused an incorrect hash to be recorded in the go.sum. Users who have configured a non-trusted GOPROXY can determine if they have been affected by running "rm go.sum ; go mod tidy ; go mod verify", which will revalidate all dependencies of the current module. The specific flaw in more detail: The go command consults the checksum database to validate downloaded modules, when a module is not listed in the go.sum file. It verifies that the module hash reported by the checksum database matches the hash of the downloaded module. If, however, the checksum database returns a successful response that contains no entry for the module, the go command incorrectly permitted validation to succeed. A module proxy may mirror or proxy the checksum database, in which case the go command will not connect to the checksum database directly. Checksums reported by the checksum database are cryptographically signed, so a malicious proxy cannot alter the reported checksum for a module. However, a proxy which returns an empty checksum response, or a checksum response for an unrelated module, could cause the go command to proceed as if a downloaded module has been validated.โ€ขCVE-2026-42501