Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. io.netty/netty-codec-http
  4. ›
  5. CVE-2026-42587

CVE-2026-42587: Netty: HttpContentDecompressor maxAllocation bypass when Content-Encoding set to br/zstd/snappy leads to decompression bomb DoS

May 7, 2026

HttpContentDecompressor accepts a maxAllocation parameter to limit decompression buffer size and prevent decompression bomb attacks. This limit is correctly enforced for gzip and deflate encodings via ZlibDecoder, but is silently ignored when the content encoding is br (Brotli), zstd, or snappy. An attacker can bypass the configured decompression limit by sending a compressed payload with Content-Encoding: br instead of Content-Encoding: gzip, causing unbounded memory allocation and out-of-memory denial of service.

The same vulnerability exists in DelegatingDecompressorFrameListener for HTTP/2 connections.

References

  • github.com/advisories/GHSA-f6hv-jmp6-3vwv
  • github.com/netty/netty
  • github.com/netty/netty/security/advisories/GHSA-f6hv-jmp6-3vwv
  • nvd.nist.gov/vuln/detail/CVE-2026-42587

Code Behaviors & Features

Detect and mitigate CVE-2026-42587 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions starting from 4.2.0.Alpha1 before 4.2.13.Final, all versions before 4.1.133.Final

Fixed versions

  • 4.2.13.Final
  • 4.1.133.Final

Solution

Upgrade to versions 4.1.133.Final, 4.2.13.Final or above.

Impact 7.5 HIGH

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H

Learn more about CVSS

Weakness

  • CWE-400: Uncontrolled Resource Consumption

Source file

maven/io.netty/netty-codec-http/CVE-2026-42587.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 09 May 2026 00:18:36 +0000.