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

CVE-2025-58057: Netty BrotliDecoder DoS Vulnerability

CVE-2025-58057 is a denial of service flaw in Netty's BrotliDecoder that causes excessive memory allocation through crafted input. This article covers technical details, affected versions, security impact, and mitigation.

Published: March 11, 2026

CVE-2025-58057 Overview

CVE-2025-58057 is a denial of service vulnerability in the Netty asynchronous event-driven network application framework. The vulnerability affects the BrotliDecoder and other decompression decoders in the netty-codec-compression and netty-codec components. When processing specially crafted input, these decoders allocate an unbounded number of reachable byte buffers, leading to memory exhaustion and denial of service conditions.

The core issue lies in the BrotliDecoder.decompress method, which has no limit on how often it calls the pull function, decompressing data in 64KB chunks. These buffers accumulate in an output list and remain reachable until an OutOfMemory (OOM) error occurs, effectively crashing the application.

Critical Impact

Applications using Netty's compression codecs are vulnerable to resource exhaustion attacks where malicious actors can trigger out-of-memory conditions by sending specially crafted compressed data, resulting in denial of service.

Affected Products

  • Netty netty-codec-compression versions 4.1.124.Final and below
  • Netty netty-codec versions 4.2.4.Final and below
  • Applications using affected Netty decompression handlers

Discovery Timeline

  • September 4, 2025 - CVE-2025-58057 published to NVD
  • September 8, 2025 - Last updated in NVD database

Technical Details for CVE-2025-58057

Vulnerability Analysis

This vulnerability is classified as CWE-409 (Improper Handling of Highly Compressed Data), commonly known as a "decompression bomb" or "zip bomb" vulnerability. The issue stems from improper resource management in Netty's decompression handlers.

The BrotliDecoder component processes compressed data by repeatedly calling the pull method to decompress 64KB chunks. However, there is no mechanism to limit the total number of decompression iterations or the aggregate size of allocated buffers. An attacker can craft a small compressed payload that expands to an extremely large size, causing the decoder to allocate memory continuously until the JVM runs out of heap space.

This network-accessible vulnerability requires no authentication and can be exploited remotely by any client capable of sending compressed data to the vulnerable service.

Root Cause

The root cause is the absence of decompression limits in the BrotliDecoder and similar decompression decoders. The decompress method lacks:

  1. A maximum decompression ratio check
  2. An upper bound on the total output buffer size
  3. Limits on the number of decompression iterations

The decompressed buffers are stored in an output list and remain reachable by the garbage collector, preventing memory reclamation until the OOM condition is reached.

Attack Vector

The attack vector is network-based, allowing remote exploitation without authentication. An attacker can exploit this vulnerability by:

  1. Establishing a connection to a Netty-based service that uses affected compression handlers
  2. Sending a small, highly compressed payload (decompression bomb)
  3. Triggering the unbounded decompression loop, causing rapid memory allocation
  4. Exhausting the server's available memory, leading to service unavailability

The following code snippets from the security patch demonstrate the fix implementation:

java
// From BrotliDecoder.java - Removing direct ByteBufAllocator usage
 
import com.aayushatharva.brotli4j.decoder.DecoderJNI;
import io.netty.buffer.ByteBuf;
-import io.netty.buffer.ByteBufAllocator;
import io.netty.channel.ChannelHandlerContext;
import io.netty.handler.codec.ByteToMessageDecoder;
import io.netty.util.internal.ObjectUtil;

Source: GitHub Commit

java
// From JZlibDecoder.java - Adding read control flag
 
    private final Inflater z = new Inflater();
    private byte[] dictionary;
+    private boolean needsRead;
    private volatile boolean finished;

    /**

Source: GitHub Commit

Detection Methods for CVE-2025-58057

Indicators of Compromise

  • Abnormal memory consumption patterns in Java heap, particularly rapid growth during request processing
  • OutOfMemoryError exceptions in application logs related to Netty handlers
  • Unusual network traffic containing small payloads with high compression ratios
  • Service crashes or restarts coinciding with specific client connections

Detection Strategies

  • Monitor JVM heap usage metrics for sudden spikes during network I/O operations
  • Implement application-level logging for decompression operations to track buffer allocation sizes
  • Configure alerts for java.lang.OutOfMemoryError events in log aggregation systems
  • Deploy network intrusion detection rules to identify known decompression bomb patterns

Monitoring Recommendations

  • Set up JMX monitoring for Netty's buffer pool metrics and memory allocation rates
  • Implement circuit breakers to limit decompression operations per connection
  • Configure heap dump generation on OOM events for forensic analysis
  • Monitor connection-level statistics for clients sending abnormally small but resource-intensive requests

How to Mitigate CVE-2025-58057

Immediate Actions Required

  • Upgrade netty-codec to version 4.1.125.Final or later
  • Upgrade netty-codec-compression to version 4.2.5.Final or later
  • Review and update all Maven/Gradle dependencies that transitively include Netty
  • Test updated dependencies in staging environments before production deployment

Patch Information

The Netty project has released fixed versions that address this vulnerability:

  • netty-codec: Version 4.1.125.Final (fixes versions 4.1.124.Final and below)
  • netty-codec-compression: Version 4.2.5.Final (fixes versions 4.2.4.Final and below)

The fix introduces proper read control mechanisms in the decompression handlers to prevent unbounded buffer allocation. For detailed patch information, refer to the GitHub Security Advisory and the security patch commit.

Workarounds

  • Implement application-level limits on decompressed data size before passing to Netty decoders
  • Disable Brotli decompression if not required by your application
  • Deploy a reverse proxy or WAF that can inspect and limit compressed payload ratios
  • Configure JVM memory limits to prevent complete system exhaustion during attacks
bash
# Maven dependency update example
# Update pom.xml to use fixed Netty versions
mvn versions:use-latest-versions -Dincludes=io.netty:netty-codec*

# Gradle dependency update
# In build.gradle, force the patched version
implementation 'io.netty:netty-codec:4.1.125.Final'
implementation 'io.netty:netty-codec-compression:4.2.5.Final'

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

  • Vulnerability Details
  • TypeDOS

  • Vendor/TechNetty

  • SeverityMEDIUM

  • CVSS Score6.9

  • EPSS Probability0.06%

  • Known ExploitedNo
  • CVSS Vector
  • CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N/E:X/CR:X/IR:X/AR:X/MAV:X/MAC:X/MAT:X/MPR:X/MUI:X/MVC:X/MVI:X/MVA:X/MSC:X/MSI:X/MSA:X/S:X/AU:X/R:X/V:X/RE:X/U:X
  • Impact Assessment
  • ConfidentialityLow
  • IntegrityNone
  • AvailabilityLow
  • CWE References
  • CWE-409
  • Vendor Resources
  • GitHub Commit Update

  • GitHub Security Advisory GHSA-3p8m-j85q-pgmj
  • Related CVEs
  • CVE-2026-33871: Netty HTTP/2 DoS Vulnerability

  • CVE-2025-55163: Netty HTTP/2 MadeYouReset DoS Vulnerability

  • CVE-2024-29025: Netty HttpPostRequestDecoder DoS Flaw

  • CVE-2025-24970: Netty Framework Native Crash DoS Flaw
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