The SentinelOne Annual Threat Report - A Defenders Guide from the FrontlinesThe SentinelOne Annual Threat ReportGet the Report
Experiencing a Breach?Blog
Get StartedContact Us
SentinelOne
  • Platform
    Platform Overview
    • Singularity Platform
      Welcome to Integrated Enterprise Security
    • AI for Security
      Leading the Way in AI-Powered Security Solutions
    • Securing AI
      Accelerate AI Adoption with Secure AI Tools, Apps, and Agents.
    • How It Works
      The Singularity XDR Difference
    • Singularity Marketplace
      One-Click Integrations to Unlock the Power of XDR
    • Pricing & Packaging
      Comparisons and Guidance at a Glance
    Data & AI
    • Purple AI
      Accelerate SecOps with Generative AI
    • Singularity Hyperautomation
      Easily Automate Security Processes
    • AI-SIEM
      The AI SIEM for the Autonomous SOC
    • AI Data Pipelines
      Security Data Pipeline for AI SIEM and Data Optimization
    • Singularity Data Lake
      AI-Powered, Unified Data Lake
    • Singularity Data Lake for Log Analytics
      Seamlessly Ingest Data from On-Prem, Cloud or Hybrid Environments
    Endpoint Security
    • Singularity Endpoint
      Autonomous Prevention, Detection, and Response
    • Singularity XDR
      Native & Open Protection, Detection, and Response
    • Singularity RemoteOps Forensics
      Orchestrate Forensics at Scale
    • Singularity Threat Intelligence
      Comprehensive Adversary Intelligence
    • Singularity Vulnerability Management
      Application & OS Vulnerability Management
    • Singularity Identity
      Identity Threat Detection and Response
    Cloud Security
    • Singularity Cloud Security
      Block Attacks with an AI-Powered CNAPP
    • Singularity Cloud Native Security
      Secure Cloud and Development Resources
    • Singularity Cloud Workload Security
      Real-Time Cloud Workload Protection Platform
    • Singularity Cloud Data Security
      AI-Powered Threat Detection for Cloud Storage
    • Singularity Cloud Security Posture Management
      Detect and Remediate Cloud Misconfigurations
    Securing AI
    • Prompt Security
      Secure AI Tools Across Your Enterprise
  • Why SentinelOne?
    Why SentinelOne?
    • Why SentinelOne?
      Cybersecurity Built for What’s Next
    • Our Customers
      Trusted by the World’s Leading Enterprises
    • Industry Recognition
      Tested and Proven by the Experts
    • About Us
      The Industry Leader in Autonomous Cybersecurity
    Compare SentinelOne
    • Arctic Wolf
    • Broadcom
    • CrowdStrike
    • Cybereason
    • Microsoft
    • Palo Alto Networks
    • Sophos
    • Splunk
    • Trellix
    • Trend Micro
    • Wiz
    Verticals
    • Energy
    • Federal Government
    • Finance
    • Healthcare
    • Higher Education
    • K-12 Education
    • Manufacturing
    • Retail
    • State and Local Government
  • Services
    Managed Services
    • Managed Services Overview
      Wayfinder Threat Detection & Response
    • Threat Hunting
      World-Class Expertise and Threat Intelligence
    • Managed Detection & Response
      24/7/365 Expert MDR Across Your Entire Environment
    • Incident Readiness & Response
      DFIR, Breach Readiness, & Compromise Assessments
    Support, Deployment, & Health
    • Technical Account Management
      Customer Success with Personalized Service
    • SentinelOne GO
      Guided Onboarding & Deployment Advisory
    • SentinelOne University
      Live and On-Demand Training
    • Services Overview
      Comprehensive Solutions for Seamless Security Operations
    • SentinelOne Community
      Community Login
  • Partners
    Our Network
    • MSSP Partners
      Succeed Faster with SentinelOne
    • Singularity Marketplace
      Extend the Power of S1 Technology
    • Cyber Risk Partners
      Enlist Pro Response and Advisory Teams
    • Technology Alliances
      Integrated, Enterprise-Scale Solutions
    • SentinelOne for AWS
      Hosted in AWS Regions Around the World
    • Channel Partners
      Deliver the Right Solutions, Together
    • SentinelOne for Google Cloud
      Unified, Autonomous Security Giving Defenders the Advantage at Global Scale
    • Partner Locator
      Your Go-to Source for Our Top Partners in Your Region
    Partner Portal→
  • Resources
    Resource Center
    • Case Studies
    • Data Sheets
    • eBooks
    • Reports
    • Videos
    • Webinars
    • Whitepapers
    • Events
    View All Resources→
    Blog
    • Feature Spotlight
    • For CISO/CIO
    • From the Front Lines
    • Identity
    • Cloud
    • macOS
    • SentinelOne Blog
    Blog→
    Tech Resources
    • SentinelLABS
    • Ransomware Anthology
    • Cybersecurity 101
  • About
    About SentinelOne
    • About SentinelOne
      The Industry Leader in Cybersecurity
    • Investor Relations
      Financial Information & Events
    • SentinelLABS
      Threat Research for the Modern Threat Hunter
    • Careers
      The Latest Job Opportunities
    • Press & News
      Company Announcements
    • Cybersecurity Blog
      The Latest Cybersecurity Threats, News, & More
    • FAQ
      Get Answers to Our Most Frequently Asked Questions
    • DataSet
      The Live Data Platform
    • S Foundation
      Securing a Safer Future for All
    • S Ventures
      Investing in the Next Generation of Security, Data and AI
  • Pricing
Get StartedContact Us
CVE Vulnerability Database
Vulnerability Database/CVE-2025-61729

CVE-2025-61729: Golang Go DOS Vulnerability

CVE-2025-61729 is a denial of service flaw in Golang Go caused by excessive resource consumption when processing malicious certificates. This article covers the technical details, affected versions, and mitigation.

Published: April 21, 2026

CVE-2025-61729 Overview

CVE-2025-61729 is a resource exhaustion vulnerability in Golang's HostnameError.Error() function. 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 complexity. This allows a malicious actor to craft a certificate that causes excessive resource consumption, resulting in a denial of service condition.

Critical Impact

A malicious certificate can trigger unbounded resource consumption through quadratic-time string concatenation in error handling, leading to denial of service against Go applications that process untrusted certificates.

Affected Products

  • Golang Go (all affected versions)

Discovery Timeline

  • 2025-12-02 - CVE CVE-2025-61729 published to NVD
  • 2025-12-19 - Last updated in NVD database

Technical Details for CVE-2025-61729

Vulnerability Analysis

This vulnerability exists within the HostnameError.Error() function in Golang's certificate validation code. The function is responsible for generating human-readable error messages when certificate hostname validation fails. The implementation flaw has two critical aspects that combine to create a denial of service condition.

First, the function does not impose any limit on the number of hostnames that will be included in the error output. When processing a certificate with an abnormally large Subject Alternative Name (SAN) extension containing thousands of hostnames, the function attempts to include all of them in the error message.

Second, the error string construction uses repeated string concatenation operations. In many programming languages including Go (prior to certain optimizations), repeated string concatenation results in quadratic O(n²) time complexity because strings are immutable and each concatenation creates a new string object, copying all previous content.

Root Cause

The root cause is an algorithmic complexity vulnerability (CWE-295: Improper Certificate Validation) in the error message generation code. The HostnameError.Error() function lacks defensive programming measures to bound the size of generated error messages and uses an inefficient string building pattern. When a certificate contains a maliciously large number of Subject Alternative Names, the function enters a computational loop that grows quadratically with the input size, consuming excessive CPU cycles and memory.

Attack Vector

An attacker can exploit this vulnerability by presenting a specially crafted X.509 certificate to a Go application that performs certificate validation. The attack is network-based and requires no authentication or user interaction. The malicious certificate would contain an extremely large number of hostnames in its Subject Alternative Name extension.

When the Go application attempts to validate this certificate against an expected hostname and the validation fails, the HostnameError.Error() function is called to generate an error message. Due to the unbounded iteration and quadratic string concatenation, this causes the application to consume excessive CPU time and memory, potentially leading to denial of service.

The vulnerability is particularly dangerous for servers that accept client certificates or applications that connect to untrusted servers, as the malicious certificate can be delivered over the network during the TLS handshake process.

Detection Methods for CVE-2025-61729

Indicators of Compromise

  • Unusual CPU spikes during TLS handshake operations or certificate validation
  • Memory consumption increases correlated with incoming certificate processing
  • Application slowdowns or timeouts when handling connections from specific sources
  • Log entries showing certificate validation errors with abnormally long error messages

Detection Strategies

  • Monitor for anomalous CPU utilization patterns in Go applications that process certificates
  • Implement application performance monitoring (APM) to track certificate validation latency
  • Configure alerts for sudden memory consumption increases in services handling TLS connections
  • Review incoming certificates for abnormally large Subject Alternative Name extensions

Monitoring Recommendations

  • Deploy SentinelOne agents to monitor Go application process behavior for resource exhaustion patterns
  • Establish baseline metrics for certificate validation operations and alert on significant deviations
  • Implement network-level certificate inspection where feasible to identify certificates with excessive SANs
  • Enable detailed logging for TLS handshake events to aid in forensic analysis

How to Mitigate CVE-2025-61729

Immediate Actions Required

  • Update Golang to the latest patched version that addresses this vulnerability
  • Review and inventory all Go applications that perform certificate validation in your environment
  • Consider implementing certificate pinning or allowlisting for applications connecting to known endpoints
  • Monitor affected applications for signs of exploitation until patches can be applied

Patch Information

Golang has released a security patch addressing this vulnerability. The fix is tracked in Go.dev Change Log CL 725920. Additional details are available in the Go.dev Issue Tracker #76445 and the official Go.dev Vulnerability Report GO-2025-4155. Organizations should review the Golang Announcement Post for guidance on affected versions and upgrade paths.

Workarounds

  • Implement certificate validation at a gateway or proxy layer before traffic reaches vulnerable Go applications
  • Configure timeouts for certificate validation operations to limit the impact of resource exhaustion
  • Use network-level controls to restrict certificate sources to trusted Certificate Authorities only
  • Consider implementing rate limiting on incoming TLS connections from untrusted sources
bash
# Check current Go version for vulnerability assessment
go version

# Update Go to the latest patched version
# Download from https://go.dev/dl/ and follow installation instructions

# Rebuild affected applications after Go update
go build -o myapp ./cmd/myapp

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechGolang

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.02%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityHigh
  • CWE References
  • CWE-295
  • Technical References
  • Golang Announcement Post
  • Vendor Resources
  • Go.dev Change Log

  • Go.dev Issue Tracker

  • Go.dev Vulnerability Report
  • Related CVEs
  • CVE-2025-47911: Go html.Parse DoS Vulnerability

  • CVE-2025-58190: Golang x/net/html DoS Vulnerability

  • CVE-2025-58187: Golang Go DOS Vulnerability

  • CVE-2025-58188: Golang Go DOS Vulnerability
Default Legacy - Prefooter | Experience the World’s Most Advanced Cybersecurity Platform

Experience the World’s Most Advanced Cybersecurity Platform

See how our intelligent, autonomous cybersecurity platform can protect your organization now and into the future.

Try SentinelOne
  • Get Started
  • Get a Demo
  • Product Tour
  • Why SentinelOne
  • Pricing & Packaging
  • FAQ
  • Contact
  • Contact Us
  • Customer Support
  • SentinelOne Status
  • Language
  • Platform
  • Singularity Platform
  • Singularity Endpoint
  • Singularity Cloud
  • Singularity AI-SIEM
  • Singularity Identity
  • Singularity Marketplace
  • Purple AI
  • Services
  • Wayfinder TDR
  • SentinelOne GO
  • Technical Account Management
  • Support Services
  • Verticals
  • Energy
  • Federal Government
  • Finance
  • Healthcare
  • Higher Education
  • K-12 Education
  • Manufacturing
  • Retail
  • State and Local Government
  • Cybersecurity for SMB
  • Resources
  • Blog
  • Labs
  • Case Studies
  • Videos
  • Product Tours
  • Events
  • Cybersecurity 101
  • eBooks
  • Webinars
  • Whitepapers
  • Press
  • News
  • Ransomware Anthology
  • Company
  • About Us
  • Our Customers
  • Careers
  • Partners
  • Legal & Compliance
  • Security & Compliance
  • Investor Relations
  • S Foundation
  • S Ventures

©2026 SentinelOne, All Rights Reserved.

Privacy Notice Terms of Use

English