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
    • 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-2023-37475

CVE-2023-37475: Avro Go Library DoS Vulnerability

CVE-2023-37475 is a denial of service vulnerability in Hamba Avro Go library where crafted strings can cause memory exhaustion. This post covers the technical details, affected versions, impact, and mitigation steps.

Published: January 28, 2026

CVE-2023-37475 Overview

CVE-2023-37475 is a denial of service vulnerability affecting the Hamba avro library, a Go language encoder/decoder implementation of the Apache Avro codec specification. The vulnerability allows attackers to trigger an unrecoverable memory exhaustion condition by passing a specially crafted string to the github.com/hamba/avro/v2.Unmarshal() function, resulting in a fatal runtime: out of memory error that can crash applications consuming Avro-encoded data.

Critical Impact

Attackers can cause complete denial of service by exploiting unbounded memory allocation during Avro deserialization, crashing Go applications that process untrusted Avro data without any possibility of recovery.

Affected Products

  • Hamba avro for Go versions prior to 2.13.0
  • Applications using github.com/hamba/avro/v2.Unmarshal() to process untrusted input
  • Go services implementing Avro codec deserialization

Discovery Timeline

  • 2023-07-17 - CVE-2023-37475 published to NVD
  • 2024-11-21 - Last updated in NVD database

Technical Details for CVE-2023-37475

Vulnerability Analysis

This vulnerability is classified under CWE-400 (Uncontrolled Resource Consumption). The fundamental issue lies in how the Hamba avro library handles slice allocation during the deserialization process. When processing Avro-encoded data through the Unmarshal() function, the library reads size information directly from the input data to determine memory allocation requirements for byte slices. An attacker who controls the input can specify arbitrarily large size values, causing the Go runtime to attempt allocation of excessive memory amounts, ultimately exhausting available system memory and triggering an unrecoverable fatal error.

The vulnerability is particularly severe because Go's runtime: out of memory panic cannot be caught or recovered using standard error handling mechanisms like recover(), meaning any exploitation attempt results in immediate and complete application termination.

Root Cause

The root cause of CVE-2023-37475 is the absence of bounds checking on size values read from input data before allocating memory for byte slices. The library trusted the size field embedded in Avro-encoded messages without validating whether the requested allocation was reasonable or within safe limits. This allowed malicious input to dictate memory allocation behavior, enabling resource exhaustion attacks.

Attack Vector

The attack vector is network-based, requiring no authentication or user interaction. An attacker can exploit this vulnerability by:

  1. Crafting a malicious Avro-encoded message containing a manipulated size field with an extremely large value
  2. Sending this payload to any service that deserializes Avro data using the vulnerable Unmarshal() function
  3. The library reads the malicious size value and attempts to allocate the specified amount of memory
  4. The Go runtime exhausts available memory and triggers a fatal, unrecoverable panic
  5. The target application crashes completely, achieving denial of service

The security patch introduces a maxByteSliceSize constant to limit slice allocations:

go
 	"github.com/modern-go/reflect2"
 )
 
+const maxByteSliceSize = 1024 * 1024
+
 // DefaultConfig is the default API.
 var DefaultConfig = Config{}.Freeze()

Source: GitHub Commit b4a402f4

The patch also adds string handling improvements in reader.go:

go
 	"errors"
 	"fmt"
 	"io"
+	"strings"
 	"unsafe"
 )

Source: GitHub Commit b4a402f4

Detection Methods for CVE-2023-37475

Indicators of Compromise

  • Sudden application crashes with fatal error: runtime: out of memory messages in logs
  • Abnormal memory consumption patterns preceding service termination
  • Repeated service restarts or container OOM (Out of Memory) kills
  • Unusual Avro message payloads with disproportionately small data but large declared sizes

Detection Strategies

  • Monitor application logs for Go runtime fatal errors, specifically runtime: out of memory panics
  • Implement memory usage monitoring with alerts for rapid consumption spikes in services processing Avro data
  • Audit dependencies to identify usage of github.com/hamba/avro/v2 versions prior to 2.13.0
  • Deploy network traffic analysis to detect anomalous Avro message sizes relative to payload content

Monitoring Recommendations

  • Configure memory limit alerts at 80% threshold for containers and processes handling Avro deserialization
  • Enable structured logging to capture correlation between incoming requests and memory allocation patterns
  • Set up dependency scanning in CI/CD pipelines to flag vulnerable avro library versions
  • Implement rate limiting on endpoints accepting Avro-encoded input to reduce impact of exploitation attempts

How to Mitigate CVE-2023-37475

Immediate Actions Required

  • Upgrade the Hamba avro library to version 2.13.0 or later immediately
  • Audit all Go applications and microservices for usage of github.com/hamba/avro/v2.Unmarshal()
  • Review network exposure of services processing Avro-encoded data and restrict access where possible
  • Implement container memory limits to prevent single service crashes from affecting entire hosts

Patch Information

The vulnerability has been addressed in commit b4a402f4 which introduces a maximum byte slice size configuration option. This fix is included in release version 2.13.0. The patch adds a hard limit of 1MB (1024 * 1024 bytes) as the default maximum for byte slice allocations, preventing attackers from triggering unbounded memory consumption.

For detailed patch information, refer to:

  • GitHub Commit Details
  • GitHub Security Advisory GHSA-9x44-9pgq-cf45

Workarounds

  • There are no known workarounds for this vulnerability; upgrading to version 2.13.0 or later is required
  • As a temporary measure, restrict network access to services processing Avro data to trusted sources only
  • Deploy the affected services behind API gateways with request size limits and rate limiting
  • Consider running vulnerable services in isolated environments with strict memory quotas to limit blast radius
bash
# Update the Hamba avro dependency to the patched version
go get github.com/hamba/avro/v2@v2.13.0

# Verify the installed version
go list -m github.com/hamba/avro/v2

# Run go mod tidy to clean up dependencies
go mod tidy

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechAvro

  • SeverityHIGH

  • CVSS Score7.5

  • EPSS Probability0.22%

  • 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-400
  • Vendor Resources
  • GitHub Commit Details

  • GitHub Security Advisory GHSA-9x44-9pgq-cf45
  • Latest CVEs
  • CVE-2025-70797: LimeSurvey XSS Vulnerability

  • CVE-2025-30650: Juniper Junos OS Auth Bypass Vulnerability

  • CVE-2026-35471: Goshs Path Traversal Vulnerability

  • CVE-2026-35393: Goshs Path Traversal 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