# CVE-2026-42587: Netty: HttpContentDecompressor maxAllocation bypass via Content-Encoding: br/zstd/snappy enables decompression bomb DoS

> Attackers can cause out-of-memory denial of service in Netty by bypassing decompression limits using Brotli, zstd, or snappy encodings.

- **Severity:** High 7.5 (`CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`)
- **Exploited in the wild:** Not known
- **Login needed:** Not needed
- **Attackable:** Over the internet
- **Victim action needed:** Not needed
- **Fix available:** Yes
- **Published:** 13 May 2026
- **Updated:** 18 Sep 2026
- **Also known as:** CLEANSTART-2026-AN70702, CLEANSTART-2026-GC42713, CLEANSTART-2026-HW60756, CLEANSTART-2026-JP35751, CLEANSTART-2026-UO65217, CLEANSTART-2026-WQ78814, CLSA-2026-1792795681, DEBIAN-CVE-2026-42587, GHSA-f6hv-jmp6-3vwv, MINI-23f3-9gvx-m367, MINI-249j-6927-362v, MINI-29hm-c26v-3rxp, MINI-2ch8-fhfv-46h7, MINI-2q76-7rfj-rrq4, MINI-2x2j-5j56-gjjw, MINI-37jm-9493-g3v3, MINI-3989-6mr9-qwmv, MINI-3fhw-j7gf-3xq6, MINI-3gh8-v56w-3p8w, MINI-3j79-m6qm-gm45, MINI-3xhc-wqhh-pvgw, MINI-42rg-2r2x-3q7p, MINI-4ff2-48m2-3h6f, MINI-4gch-8gp7-fhvr, MINI-4xwq-f47r-45h9, MINI-5236-v33j-gr9h, MINI-53rj-rv7r-vhpj, MINI-563c-v6cr-x222, MINI-57wj-86fm-q954, MINI-5847-9x7c-h29q, MINI-59cm-7q4x-pvhh, MINI-5pm2-hhrj-28mf, MINI-5v97-2788-hjjg, MINI-642r-2458-m953, MINI-64vh-xf7g-4c2c, MINI-6qg6-pj4r-f8m4, MINI-6qwv-xq2f-9rm7, MINI-6xv7-pfpx-69v9, MINI-7375-2cjw-4f48, MINI-74w3-rjwv-2g8c, MINI-76x2-qpw9-vgmf, MINI-7m6f-c49m-vwm9, MINI-7pwf-84f3-qfgr, MINI-7x84-hg82-8gmr, MINI-87vw-hcrj-864q, MINI-885j-7v66-w6q4, MINI-896v-5f4x-f2c9, MINI-898m-q58g-5vw3, MINI-8ccw-h792-6v93, MINI-8rwg-8h2h-vh6x, MINI-9h24-9v46-hfq8, MINI-9jjv-v725-h2qp, MINI-9wmh-6w38-qvrq, MINI-9xqj-rj6g-22ff, MINI-c9xq-jph6-86qw, MINI-chmp-8gr3-cr98, MINI-f2jj-j3jp-jgp4, MINI-f9m6-whr5-pw3w, MINI-fh7w-vq3v-hm7r, MINI-fj8j-98cp-296p, MINI-fqrh-g4q5-767x, MINI-frf6-36mr-j5rp, MINI-fxmh-fj3j-jg8x, MINI-g572-jr45-3qg9, MINI-g5w6-7mf5-53j4, MINI-g987-x84g-xjc5, MINI-g9qm-f2hc-qh24, MINI-gc2m-w9x6-ggjm, MINI-gf9p-q532-6mgq, MINI-ghr9-25xf-q4wp, MINI-gvgr-x259-7m3v, MINI-h3x3-f745-c38f, MINI-hjhr-qm6h-c36w, MINI-hjmg-3hx7-j6x8, MINI-hxqr-h27v-43q5, MINI-j3c7-w9gh-6gc3, MINI-j93r-662q-2h69, MINI-jf95-74wg-79mf, MINI-m4p9-9887-hvqj, MINI-mx49-6986-v68v, MINI-mxjq-35xf-222p, MINI-p64j-fmqj-xjx7, MINI-p6wg-92g5-vjqv, MINI-pf7g-rqq9-q969, MINI-pmc6-f3hq-85mq, MINI-pp8q-ggr2-x422, MINI-q93r-c958-73vp, MINI-qpwr-q3j3-vh2w, MINI-qrfm-chff-q8m6, MINI-r322-2h7p-xvc2, MINI-rh94-v67x-frmg, MINI-vcm6-57rw-v38p, MINI-vf2g-p38f-x59q, MINI-w22f-wcmr-pxhr, MINI-w344-c99m-c4v5, MINI-w8jj-83x5-f8fj, MINI-wc5r-r623-pjcq, MINI-wc95-gqrq-cggr, MINI-wfwm-632j-8857, MINI-wqj8-6f3p-hwhx, MINI-wqr4-fjmp-26wx, MINI-x3gw-5rrx-g7wh, MINI-xrjw-f8h6-r759, MINI-xvcg-f7vv-4qjv, MINI-xwrq-xfwx-843c, ROOT-APP-MAVEN-CVE-2026-42587

## What is CVE-2026-42587?

CVE-2026-42587 is a high-severity denial of service vulnerability in Netty Netty, published on 13 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.

### Official description

Netty is an asynchronous, event-driven network application framework. Prior to 4.2.13.Final and 4.1.133.Final, 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. This vulnerability is fixed in 4.2.13.Final and 4.1.133.Final.

Weakness: CWE-770 (Allocation of Resources Without Limits or Throttling), CWE-400 (Uncontrolled Resource Consumption)

## Which versions are affected by CVE-2026-42587?

8 open source packages ship an affected version, including io.netty:netty-codec-http and io.netty:netty-codec-http2. It affects 1 product.


| Package | Ecosystem | Affected | Fixed in |
| --- | --- | --- | --- |
| `io.netty:netty-codec-http` | Maven | All versions | 4.1.133.Final |
| `io.netty:netty-codec-http` | Maven | All versions | 4.1.133.Final |
| `io.netty:netty-codec-http` | Maven | From 4.2.0.Alpha1 | 4.2.13.Final |
| `io.netty:netty-codec-http` | Maven | From 4.2.0.Alpha1 | 4.2.13.Final |
| `io.netty:netty-codec-http2` | Maven | All versions | 4.1.133.Final |
| `io.netty:netty-codec-http2` | Maven | All versions | 4.1.133.Final |
| `io.netty:netty-codec-http2` | Maven | From 4.2.0.Alpha1 | 4.2.13.Final |
| `io.netty:netty-codec-http2` | Maven | From 4.2.0.Alpha1 | 4.2.13.Final |

Products: Netty Netty.

## How do I fix CVE-2026-42587?

Upgrade io.netty:netty-codec-http to a fixed version for your release line: 4.1.133.Final or 4.2.13.Final.

## Is CVE-2026-42587 being exploited?

It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42587 exists.

## Other vulnerabilities in Netty Netty

- [CVE-2026-75595](https://insights.sbomify.com/CVE-2026-75595/): Netty: SNI Routing Bypass via Fragmented TLS ClientHello Causing Fallback to Default SslContext (critical 9.1)
- [CVE-2026-75596](https://insights.sbomify.com/CVE-2026-75596/): Netty: Fragmented ClientHello records trigger quadratic pre-handshake reassembly in default SNI parsing (high 8.7)
- [CVE-2026-59901](https://insights.sbomify.com/CVE-2026-59901/): Netty Bzip2Decoder: Infinite Loop in RLE State Machine Leads to Event-Loop Thread Hang (high 8.7)
- [CVE-2026-55851](https://insights.sbomify.com/CVE-2026-55851/): Netty codec-haproxy: Signed-Byte Sentinel Collision in HAProxyMessageDecoder Leads to Unbounded Memory Exhaustion (high 8.7)
- [CVE-2026-56745](https://insights.sbomify.com/CVE-2026-56745/): Netty SpdyHttpDecoder: ByteBuf Reference Leak on RST_STREAM Leads to Native Memory Exhaustion (high 8.7)

## Fix prompt for AI coding agents

```text
Check this codebase for CVE-2026-42587 and fix it if it is affected.

What it is: CVE-2026-42587 is a high-severity denial of service vulnerability in Netty Netty, published on 13 May 2026. An attacker can exploit it over the internet without logging in, with no action from the victim.
Exploitation: It is not confirmed as exploited in the wild, but public exploit code for CVE-2026-42587 exists.

Affected packages and fixed versions:
- io.netty:netty-codec-http (Maven): affected all versions; fixed in 4.1.133.Final
- io.netty:netty-codec-http (Maven): affected all versions; fixed in 4.1.133.Final
- io.netty:netty-codec-http (Maven): affected from 4.2.0.Alpha1; fixed in 4.2.13.Final
- io.netty:netty-codec-http (Maven): affected from 4.2.0.Alpha1; fixed in 4.2.13.Final
- io.netty:netty-codec-http2 (Maven): affected all versions; fixed in 4.1.133.Final
- io.netty:netty-codec-http2 (Maven): affected all versions; fixed in 4.1.133.Final
- io.netty:netty-codec-http2 (Maven): affected from 4.2.0.Alpha1; fixed in 4.2.13.Final
- io.netty:netty-codec-http2 (Maven): affected from 4.2.0.Alpha1; fixed in 4.2.13.Final

Task:
1. Search the dependency manifests and lockfiles (for example package.json, package-lock.json, requirements.txt, poetry.lock, uv.lock, pom.xml, build.gradle, go.mod, Cargo.lock, Gemfile.lock) and any Dockerfiles for the affected packages, including transitive dependencies.
2. If an affected version is in use, upgrade it to the fixed version for its release line with the project's package manager, so the lockfile is regenerated. Prefer the smallest upgrade that fixes it.
3. If there is no fix, or the upgrade would break the build, do not guess: explain the risk and the safest workaround instead.
4. Run the tests and summarise what changed and why.
5. If nothing in the project is affected, say so and change nothing.

Reference: https://insights.sbomify.com/CVE-2026-42587/ (Markdown: https://insights.sbomify.com/CVE-2026-42587/index.md)
```

## Sources

- CVE record: https://www.cve.org/CVERecord?id=CVE-2026-42587
- NVD: https://nvd.nist.gov/vuln/detail/CVE-2026-42587
- OSV: https://osv.dev/vulnerability/CVE-2026-42587

---
From sbomify Insights: https://insights.sbomify.com/CVE-2026-42587/
Summaries are generated and may contain mistakes; the official description above is the record.
