Join the Cyber Forum: Threat Intel on May 12, 2026 to learn how AI is reshaping threat defense.Join the Virtual Cyber Forum: Threat IntelRegister Now
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-2022-30634

CVE-2022-30634: Golang Go DOS Vulnerability

CVE-2022-30634 is a denial of service flaw in Golang Go's crypto/rand package on Windows that causes infinite loops with large buffers. This article covers technical details, affected versions, impact, and mitigation.

Published: February 17, 2026

CVE-2022-30634 Overview

CVE-2022-30634 is an infinite loop vulnerability in the crypto/rand package of the Go programming language affecting Windows systems. The vulnerability occurs when an attacker passes a buffer larger than 1 << 32 - 1 bytes (approximately 4GB) to the Read function, causing the application to hang indefinitely. This denial of service condition can impact any Go application running on Windows that processes untrusted input determining the size of random data buffers.

Critical Impact

Applications using Go's crypto/rand.Read() on Windows can be forced into an indefinite hang state, causing complete service unavailability when processing maliciously crafted large buffer requests.

Affected Products

  • Golang Go versions before 1.17.11
  • Golang Go versions 1.18.x before 1.18.3
  • NetApp Cloud Insights Telegraf Agent

Discovery Timeline

  • 2022-07-15 - CVE-2022-30634 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-30634

Vulnerability Analysis

This vulnerability is classified as CWE-835 (Loop with Unreachable Exit Condition), commonly known as an infinite loop. The flaw exists in the Windows-specific implementation of Go's crypto/rand package, which provides cryptographically secure random number generation.

The root issue stems from improper handling of buffer sizes that exceed the 32-bit integer boundary on Windows systems. When the Read function receives a request for random data with a buffer size exceeding 1 << 32 - 1 bytes (4,294,967,295 bytes), the internal loop counter or length calculation overflows or wraps around, creating a condition where the loop's exit condition can never be satisfied.

This vulnerability specifically affects the Windows platform due to differences in how the underlying operating system APIs handle large buffer sizes compared to Unix-like systems. The Go runtime's interaction with Windows cryptographic APIs does not properly validate or truncate oversized buffer requests before entering the read loop.

Root Cause

The root cause is an integer overflow condition in the buffer size handling within the crypto/rand package on Windows. When a buffer larger than 2^32 - 1 bytes is passed to the Read function, the size calculation wraps around due to 32-bit integer limitations in the Windows-specific code path. This wraparound causes the loop termination condition to become unreachable, resulting in an infinite loop that consumes CPU resources indefinitely.

Attack Vector

An attacker can exploit this vulnerability through any network-accessible Go application running on Windows that allows external input to influence the size of random data generation requests. The attack requires the attacker to craft a request that causes the application to call crypto/rand.Read() with a buffer size exceeding the 32-bit boundary.

The exploitation is straightforward—if an application accepts user-controlled parameters that determine buffer allocation for random number generation, an attacker can simply provide an extremely large value. Since the vulnerability causes an infinite loop rather than a crash, the affected process will continue running but become completely unresponsive, consuming CPU resources until manually terminated.

Detection Methods for CVE-2022-30634

Indicators of Compromise

  • Go applications on Windows exhibiting 100% CPU utilization on a single thread without completing expected operations
  • Application processes that become unresponsive and fail to handle new requests while remaining in a running state
  • Abnormally large memory allocation requests logged in application or system monitoring tools

Detection Strategies

  • Monitor Go applications for hung processes with high CPU consumption that do not respond to health checks
  • Implement input validation logging to detect requests attempting to allocate buffers larger than 4GB
  • Use application performance monitoring (APM) tools to identify requests that exceed normal execution time thresholds

Monitoring Recommendations

  • Configure alerts for Go application processes exceeding CPU usage thresholds without corresponding I/O activity
  • Implement request timeout mechanisms at the load balancer or reverse proxy level to terminate long-running requests
  • Monitor application logs for unusually large buffer size requests or memory allocation failures

How to Mitigate CVE-2022-30634

Immediate Actions Required

  • Upgrade Go to version 1.17.11 or later for the 1.17.x branch
  • Upgrade Go to version 1.18.3 or later for the 1.18.x branch
  • Implement input validation to reject buffer size requests exceeding reasonable thresholds before calling crypto/rand.Read()

Patch Information

The Go team has released patches addressing this vulnerability. The fix is included in Go versions 1.17.11 and 1.18.3. The specific code change can be reviewed at the Go Dev Change List and the Go Source Code Change. Additional details are available in the Go Vulnerability Advisory.

Workarounds

  • Implement application-level validation to cap buffer sizes well below the 4GB threshold before calling crypto/rand.Read()
  • Deploy request timeout mechanisms at the infrastructure level to terminate any request that runs longer than expected
  • Consider chunking large random data generation requests into multiple smaller calls if large amounts of random data are legitimately required
bash
# Configuration example
# Verify your Go version and upgrade if necessary
go version
# Expected output should show go1.17.11+ or go1.18.3+

# To upgrade Go on Windows, download the latest installer from:
# https://go.dev/dl/

# After upgrading, rebuild affected applications
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-835
  • Technical References
  • Go Dev Issue Tracker

  • Google Groups Announcement

  • Go Vulnerability Advisory
  • Vendor Resources
  • Go Dev Change List

  • Go Source Code Change
  • 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