# Bzip2Decoder doesn't allow setting size restrictions for decompressed data

Advisory record · `GHSA-grg4-wf29-r9vv`

- **Identifiers:** `GHSA-grg4-wf29-r9vv` · `CVE-2021-37136`
- **State:** Confirmed
- **Severity:** CVSS 7.5 High
- **Critical:** No
- **Weakness (CWE):** [CWE-400](https://cwe.mitre.org/data/definitions/400.html)
- **Tags:** [Denial of service](https://agentprime.io/advisories/tag/dos.md)
- **Published:** 9 Sept 2021
- **Updated:** 8 Jul 2026
- **Reviewed by a person:** No

Published by the GitHub Advisory Database at 9 Sept 2021, 17:11 UTC. agentprime has not analysed this yet, so whether it affects any app is not known.

## Affected packages

- `io.netty:netty-codec` (Maven): affected `<4.1.68.Final`; fixed in `4.1.68.Final`
- `org.jboss.netty:netty` (Maven): affected `all versions`; no fixed version yet
- `io.netty:netty` (Maven): affected `all versions`; no fixed version yet

## Machine-written summary

Summary written by Claude Haiku from the source advisory. Not reviewed by a person.

> Netty's io.netty:netty-codec versions before 4.1.68.Final are affected, and the fix is to upgrade to 4.1.68.Final. The Bzip2Decoder does not let users limit the size of decompressed output, so malicious compressed input can trigger excessive memory allocation, causing an OutOfMemoryError and denial of service. Any use of Bzip2Decoder is affected, and the source lists no workaround other than not using it. Packages org.jboss.netty:netty and io.netty:netty are listed with no fixed version.

Written 2 Nov 2026.

## Not analysed yet

We haven’t published our analysis of this Advisory yet. Once a person has reviewed it, this page will say what’s vulnerable, what has to be true for your app to be affected, and how to check.

## Severity and exploitation

- 7.5 High, CVSS 3.1: `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H`, from GitHub Advisory Database

- **CISA KEV:** Not listed.
- **EPSS:** 0.059, the 93rd percentile, on 19 Nov 2026: FIRST’s estimate of the chance of exploitation in the next 30 days.

## Timeline

- 31 Oct 2026, 14:19 UTC: First seen by agentprime
- 31 Oct 2026, 14:19 UTC: [Confirmed by OSV](https://osv.dev/vulnerability/GHSA-grg4-wf29-r9vv)

## Sources

- [GitHub Advisory Database: GHSA-grg4-wf29-r9vv](https://github.com/advisories/GHSA-grg4-wf29-r9vv)
- [OSV: GHSA-grg4-wf29-r9vv](https://osv.dev/vulnerability/GHSA-grg4-wf29-r9vv)
- <https://github.com/netty/netty/security/advisories/GHSA-grg4-wf29-r9vv>
- <https://nvd.nist.gov/vuln/detail/CVE-2021-37136>
- <https://github.com/netty/netty/commit/41d3d61a61608f2223bb364955ab2045dd5e4020>
- <https://www.oracle.com/security-alerts/cpujul2022.html>
- <https://www.oracle.com/security-alerts/cpujan2022.html>
- <https://www.oracle.com/security-alerts/cpuapr2022.html>
- <https://www.debian.org/security/2023/dsa-5316>
- <https://security.netapp.com/advisory/ntap-20220210-0012>
- <https://lists.debian.org/debian-lts-announce/2023/01/msg00008.html>
- <https://lists.apache.org/thread.html/rfb2bf8597e53364ccab212fbcbb2a4e9f0a9e1429b1dc08023c6868e@%3Cdev.tinkerpop.apache.org%3E>
- <https://lists.apache.org/thread.html/rd262f59b1586a108e320e5c966feeafbb1b8cdc96965debc7cc10b16@%3Ccommits.druid.apache.org%3E>
- <https://lists.apache.org/thread.html/r75490c61c2cb7b6ae2c81238fd52ae13636c60435abcd732d41531a0@%3Ccommits.druid.apache.org%3E>

Facts on this page come from the GitHub Advisory Database (CC-BY 4.0), OSV and the other sources listed, as published. We don’t reproduce full advisory descriptions, which can contain exploit code.

## Check whether this affects you

A Match means an installed version is in the affected range above. Most don’t affect the app; agentprime hasn’t analysed this one yet.

- With the agentprime MCP server (<https://api.agentprime.io/mcp>), ask your agent to check the project: `check_lockfile` sends a lockfile, `check_packages` a list of installed packages, and both return the Matches and the upgrades that clear them. `get_advisory` returns this record. Setup: <https://agentprime.io/mcp.md>
- In a browser: <https://agentprime.io/check/> reads your lockfile in the browser, never uploading it.
- Whether it touches your code, with file and line: the Claude Code plugin, <https://agentprime.io/plugin.md>
- As JSON: <https://api.agentprime.io/v1/advisories/GHSA-grg4-wf29-r9vv>, or `POST https://api.agentprime.io/v1/match` with your packages (<https://agentprime.io/api.md>)

---

The web page: <https://agentprime.io/advisories/GHSA-grg4-wf29-r9vv/>. Everything for agents: <https://agentprime.io/llms.txt>.
