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-23772

CVE-2022-23772: Golang Go DOS Vulnerability

CVE-2022-23772 is a denial of service vulnerability in Golang Go's math/big package that causes uncontrolled memory consumption. This article covers the technical details, affected versions, impact, and mitigation.

Published: February 17, 2026

CVE-2022-23772 Overview

CVE-2022-23772 is an integer overflow vulnerability in the Rat.SetString function within the math/big package of Go programming language. This flaw affects Go versions before 1.16.14 and 1.17.x before 1.17.7, allowing attackers to trigger uncontrolled memory consumption through specially crafted input. The vulnerability resides in the rational number parsing logic, where improper handling of large exponents can cause the application to allocate excessive memory, leading to denial of service conditions.

Critical Impact

Remote attackers can exploit this vulnerability over the network without authentication to cause denial of service through memory exhaustion in any Go application using the math/big package to parse untrusted rational number input.

Affected Products

  • Golang Go (versions before 1.16.14 and 1.17.x before 1.17.7)
  • NetApp BeeGFS CSI Driver
  • NetApp Cloud Insights Telegraf Agent
  • NetApp Kubernetes Monitoring Operator
  • NetApp StorageGRID
  • Debian Linux 9.0

Discovery Timeline

  • 2022-02-11 - CVE-2022-23772 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2022-23772

Vulnerability Analysis

The vulnerability exists in Go's math/big package, specifically within the Rat.SetString function used for parsing rational numbers from string representations. When processing rational number strings with extremely large exponent values, the function fails to properly validate the exponent bounds before performing memory allocation operations.

The math/big package provides arbitrary-precision arithmetic in Go and is commonly used in cryptographic operations, financial calculations, and scientific computing applications. The Rat type represents rational numbers as a ratio of two arbitrary-precision integers. The SetString method parses a string representation of a rational number and sets the receiver to that value.

The root issue is an integer overflow in the exponent handling logic. When a malicious input contains an extremely large exponent value, the overflow causes the allocation size calculation to produce an unexpectedly large value, resulting in massive memory allocation attempts that can exhaust system resources.

Root Cause

The vulnerability is classified as CWE-190 (Integer Overflow or Wraparound). The Rat.SetString function does not adequately validate the magnitude of the exponent component in rational number strings before using it in memory allocation calculations. When processing strings with extremely large exponents (e.g., "1e999999999999999999"), the internal calculations overflow, leading to attempts to allocate enormous amounts of memory.

The lack of proper bounds checking on the exponent value allows attackers to specify arbitrary exponent sizes that exceed reasonable computational limits, triggering the overflow condition and subsequent memory exhaustion.

Attack Vector

This vulnerability can be exploited remotely over the network without requiring authentication or user interaction. An attacker needs to send a specially crafted string to any Go application that uses Rat.SetString to parse user-supplied input.

The attack is particularly dangerous in scenarios such as:

  • Web applications accepting numeric input that gets parsed as rational numbers
  • API endpoints processing JSON or other data formats containing large numbers
  • Configuration parsers that read external configuration files
  • Any service that processes mathematical expressions from untrusted sources

The vulnerability mechanism involves passing a maliciously crafted string with an extremely large exponent value to the Rat.SetString function. When the function attempts to process this input, the integer overflow in exponent handling causes allocation of excessive memory, potentially crashing the application or degrading system performance. For detailed technical analysis, refer to the Golang Announcement.

Detection Methods for CVE-2022-23772

Indicators of Compromise

  • Unusual memory consumption spikes in Go applications
  • Application crashes with out-of-memory errors
  • Log entries showing allocation failures in processes using math/big package
  • Network requests containing extremely large numeric strings with high exponent values

Detection Strategies

  • Monitor Go applications for abnormal memory usage patterns that may indicate exploitation attempts
  • Implement application-level logging for math/big operations processing external input
  • Use runtime memory profiling to detect sudden allocation spikes
  • Review application logs for parsing errors related to rational number input

Monitoring Recommendations

  • Configure alerting thresholds for memory consumption on systems running vulnerable Go applications
  • Implement network intrusion detection rules to identify requests containing suspiciously large numeric strings
  • Deploy application performance monitoring to track memory allocation patterns in production environments
  • Establish baseline memory usage metrics for Go applications to quickly identify anomalous behavior

How to Mitigate CVE-2022-23772

Immediate Actions Required

  • Upgrade Go to version 1.16.14, 1.17.7, or later immediately
  • Identify all applications built with vulnerable Go versions using software composition analysis
  • Implement input validation to reject numeric strings with unreasonably large exponents before parsing
  • Consider rate limiting requests to services that process numeric input to reduce denial of service impact

Patch Information

The Go development team addressed this vulnerability in Go versions 1.16.14 and 1.17.7. The fix implements proper bounds checking on exponent values before memory allocation calculations occur. Organizations should upgrade to these patched versions or later releases.

Additional patch information is available through multiple vendor advisories:

  • Golang Announcement
  • NetApp Security Advisory ntap-20220225-0006
  • Gentoo GLSA 202208-02
  • Oracle Critical Patch Update July 2022

Workarounds

  • Implement input validation at application boundaries to reject strings with exponents exceeding reasonable thresholds
  • Use input length limits to prevent processing of extremely long numeric strings
  • Deploy web application firewalls with rules to filter requests containing suspicious numeric patterns
  • Isolate vulnerable applications in containers with strict memory limits to contain potential impact
bash
# Example: Set memory limits for Go applications using cgroups
# Create a cgroup with memory limit
sudo cgcreate -g memory:/go_app_limit
sudo cgset -r memory.limit_in_bytes=2G go_app_limit

# Run Go application within memory-limited cgroup
sudo cgexec -g memory:go_app_limit ./your_go_application

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-190
  • Technical References
  • Debian LTS Advisory #20220417

  • Debian LTS Advisory #20220418

  • Gentoo GLSA 202208-02

  • NetApp Security Advisory ntap-20220225-0006

  • Oracle Critical Patch Update July 2022
  • Vendor Resources
  • Golang Announcement
  • 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