CVE-2025-61729CWE-295

CVE-2025-61729

High · published December 3, 2025

CVSS v3.1
7.5
EPSS
0%
Percentile
38.7
In the wild
Unconfirmed
What it is

⚡ Watch out! There's a sneaky flaw in HostnameError.Error() that can lead to excessive resource consumption from just one crafty certificate! 😱 It's like a restaurant serving an endless stream of appetizers on a busy night — the more hosts it tries to handle, the longer the lines grow, and sooner or later, the whole kitchen collapses under the pressure! An attacker can send a malicious certificate that results in an avalanche of error messages, consuming resources and potentially bringing your application to its knees. This could lead to service outages and a poor user experience, making your operations look unprofessional and unreliable!

Put simply

It's like a restaurant serving an endless stream of appetizers on a busy night — the more hosts it tries to handle, the longer the lines grow, and sooner or later, the whole kitchen collapses under the pressure! This vulnerability allows an attacker to exploit the lack of limits in the error string construction within HostnameError.Error(), causing excessive resource consumption through repeated string concatenation, leading to quadratic runtime complexity.

What to do

An attacker can send a malicious certificate that results in an avalanche of error messages, consuming resources and potentially bringing your application to its knees. This could lead to service outages and a poor user experience, making your operations look unprofessional and unreliable! To mitigate this, ensure you limit the number of hostnames that can be printed in error messages. Consider refactoring the error handling mechanism to avoid repeated string concatenation, which can streamline performance. Always test for potential edge cases! 🔥 You've got this! With a few adjustments, you can fortify your application and keep it running smoothly! 🛡️

The record
Technical detail
CVSS v3.1
7.5 · HIGH
Vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
CVSS v4.0
Not supplied
EPSS
0.00457 · 38.7th percentile
Weakness
CWE-295 · Improper Certificate Validation
Published
2025-12-03T00:15Z
Affected products (2)
ProductVersionsFixed in
golang/go< 1.24.111.24.11
golang/go≥ 1.25.0, < 1.25.51.25.5
References (4)
EPSS history
Timeline
  • 02 DEC 18:54Z
    Excessive resource consumption when printing error string for host certificate validation in crypto/x509
    cvelistv5