A Leader in the 2026 Gartner® Magic Quadrant™ for Endpoint Protection. Six years running.Six years. Gartner® Magic Quadrant™ Leader.Find Out Why
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-58185

CVE-2025-58185: Golang Go DOS Vulnerability

CVE-2025-58185 is a denial of service vulnerability in Golang Go caused by malicious DER payload parsing that leads to memory exhaustion. This article covers the technical details, affected versions, and mitigation.

Published: May 26, 2026

CVE-2025-58185 Overview

CVE-2025-58185 affects the Go programming language standard library's Distinguished Encoding Rules (DER) parser. A maliciously crafted DER payload can cause the parser to allocate excessive amounts of memory, leading to memory exhaustion and denial of service. The flaw is tracked upstream as GO-2025-4011 and is categorized under CWE-770: Allocation of Resources Without Limits or Throttling.

The vulnerability is exploitable over the network with low attack complexity and requires no authentication or user interaction. Applications written in Go that decode untrusted DER-encoded data, such as X.509 certificates or other ASN.1 structures, are at risk.

Critical Impact

Remote attackers can send crafted DER input to Go-based services to trigger uncontrolled memory allocation, causing process crashes and service disruption.

Affected Products

  • Golang Go standard library (versions prior to the fix referenced in GO-2025-4011)
  • Go applications and services that parse untrusted DER-encoded payloads using encoding/asn1 or crypto/x509
  • Any downstream software linking the vulnerable Go runtime or libraries

Discovery Timeline

  • 2025-10-08 - Vulnerability disclosed publicly via Openwall OSS-Security Mailing List
  • 2025-10-29 - CVE-2025-58185 published to NVD
  • 2026-02-06 - Last updated in NVD database

Technical Details for CVE-2025-58185

Vulnerability Analysis

The vulnerability resides in Go's DER decoding logic. DER is a binary encoding for ASN.1 data structures used extensively in X.509 certificates, PKCS containers, and other cryptographic formats. The parser reads length fields from the DER stream and allocates buffers based on those values.

When a crafted payload declares an oversized length, the parser pre-allocates memory without first validating that the declared size is consistent with the actual input data available. An attacker can submit a small input that claims to contain very large structures, forcing the process to consume substantial heap memory. Further technical detail is available in the Go.dev Vulnerability Report: GO-2025-4011 and the upstream patch Go.dev Change Log #709856.

Root Cause

The root cause is the absence of effective bounds checks between declared element lengths in the DER stream and the size of the input buffer. The parser trusts attacker-controlled length fields when sizing internal allocations, mapping directly to [CWE-770].

Attack Vector

An attacker delivers a malicious DER blob to any network-accessible endpoint that decodes ASN.1 data. Common entry points include TLS handshakes presenting client or server certificates, certificate validation in API clients, and services that ingest signed payloads or PKCS structures from untrusted sources. Repeated submissions amplify memory pressure and can crash the target process.

No verified public exploit code is available. Refer to the Go.dev Issue Tracker #75671 for the technical reproducer discussion.

Detection Methods for CVE-2025-58185

Indicators of Compromise

  • Sudden spikes in resident memory usage of Go-based services followed by out-of-memory (OOM) terminations
  • Repeated TLS handshake failures or ASN.1 parse errors logged immediately before process crashes
  • Inbound traffic delivering unusually small DER payloads that reference very large internal lengths

Detection Strategies

  • Monitor process memory and OOM-killer events on hosts running Go services that handle external certificates or DER-encoded data
  • Inspect TLS and API gateway logs for malformed certificate or ASN.1 decoding errors from untrusted peers
  • Apply network-layer rate limiting and anomaly detection on endpoints that accept certificate uploads or mTLS connections

Monitoring Recommendations

  • Track Go runtime metrics (runtime.MemStats) and alert on rapid heap growth in services exposed to untrusted input
  • Correlate crash events with the version of Go used to build each binary to prioritize patching
  • Enable cgroup memory limits on containerized Go workloads so a single malicious request cannot exhaust host memory

How to Mitigate CVE-2025-58185

Immediate Actions Required

  • Inventory all Go binaries and identify those built with vulnerable Go toolchain versions referenced in GO-2025-4011
  • Rebuild affected applications using a patched Go release and redeploy to production
  • Restrict exposure of endpoints that accept untrusted DER or X.509 data behind authenticated channels where feasible

Patch Information

The fix is committed in Go.dev Change Log #709856 and tracked in the Go.dev Vulnerability Report: GO-2025-4011. Upgrade to the Go release containing this change and rebuild all dependent applications. The fix is also announced on the Golang Announce Group Post.

Workarounds

  • Enforce strict size limits on inbound DER payloads at reverse proxies or load balancers before they reach Go services
  • Run Go services with memory cgroup limits so memory exhaustion is contained to a single process
  • Validate certificates and ASN.1 structures with size-bounded pre-checks before passing them to encoding/asn1 or crypto/x509
bash
# Verify installed Go version and use govulncheck to identify affected modules
go version
go install golang.org/x/vuln/cmd/govulncheck@latest
govulncheck ./...

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechGolang

  • SeverityMEDIUM

  • CVSS Score5.3

  • EPSS Probability0.04%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-770
  • Technical References
  • Go.dev Issue Tracker #75671

  • Golang Announce Group Post

  • Openwall OSS-Security Mailing List
  • Vendor Resources
  • Go.dev Change Log #709856

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

  • CVE-2025-58187: Golang Go DOS Vulnerability

  • CVE-2025-58188: Golang Go DOS Vulnerability

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

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today 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