CVE-2025-58057Netty's BrotliDecoder is vulnerable to DoS via zip bomb style attack
Netty is an asynchronous event-driven network application framework for rapid development of maintainable high performance protocol servers & clients. In netty-codec-compression versions 4.1.124.Final and below, and netty-codec versions 4.2.4.Final and below, when supplied with specially crafted input, BrotliDecoder and certain other decompression decoders will allocate a large number of reachable byte buffers, which can lead to denial of service. BrotliDecoder.decompress has no limit in how often it calls pull, decompressing data 64K bytes at a time. The buffers are saved in the output list, and remain reachable until OOM is hit. This is fixed in versions 4.1.125.Final of netty-codec and 4.2.5.Final of netty-codec-compression.
What to do
Fixed builds are available from Debian, Maven, Ubuntu: see the table below for the fixed version per release.
Ubuntu has not shipped a fix for every release yet.
Is your server affected? One read-only command checks every installed package against this CVE and all others, using each vendor's fixed versions. Get started or get a free API key.
curl -sS "https://api.cvefocus.com/v1/check?format=text" -H "Authorization: Bearer $CVEFOCUS_KEY" \ -H "Content-Type: text/plain" --data-binary @inventory.txt
Vendor status at a glance
Status by vendor and release
From each vendor's own security data and VEX statements. "Fixed" means a fixed build is published for that release.
| Release | Package | Status | Fixed version | Advisory |
|---|---|---|---|---|
| Ubuntu 25.10 | netty | Fixed | 1:4.1.48-10ubuntu0.25.10.2 | UBUNTU-CVE-2025-58057 |
| Ubuntu 24.04 | netty | Fixed | 1:4.1.48-9ubuntu0.1 | UBUNTU-CVE-2025-58057 |
| Ubuntu 22.04 | netty | Fixed | 1:4.1.48-4+deb11u2ubuntu0.1 | UBUNTU-CVE-2025-58057 |
| Ubuntu 20.04 | netty | Fix pending | 1:4.1.45-1ubuntu0.1~esm4 (Ubuntu Pro) | UBUNTU-CVE-2025-58057 |
| Ubuntu 18.04 | netty | Fix pending | 1:4.1.7-4ubuntu0.1+esm5 (Ubuntu Pro) | UBUNTU-CVE-2025-58057 |
| Ubuntu 16.04 | netty | Fix pending | UBUNTU-CVE-2025-58057 | |
| Ubuntu 14.04 | netty | Fix pending | UBUNTU-CVE-2025-58057 | |
| Debian 14 | netty | Fixed | 1:4.1.48-12 | DEBIAN-CVE-2025-58057 |
| Debian 13 | netty | Fixed | 1:4.1.48-10+deb13u1 | DEBIAN-CVE-2025-58057 |
| Debian 12 | netty | Fixed | 1:4.1.48-7+deb12u2 | DEBIAN-CVE-2025-58057 |
| Maven library | io.netty:netty-codec | Fixed | 4.1.125.Final | GHSA-3p8m-j85q-pgmj |
| Maven library | io.netty:netty-codec-compression | Fixed | 4.2.5.Final | GHSA-3p8m-j85q-pgmj |
What the vendor says
As published in the CVE record by GitHub_M, the CVE's assigner (usually the vendor). Check the vendor's advisory before acting.
- netty: affected: <= 4.1.124.Final, < 4.1.125.Final, <= 4.2.4.Final, < 4.2.5.Final
References
- https://github.com/netty/netty/security/advisories/GHSA-3p8m-j85q-pgmj
- https://github.com/netty/netty/commit/9d804c54ce962408ae6418255a83a13924f7145d
About this page
Compiled by CVEfocus from the CVE List, the security data and VEX statements of Ubuntu, Debian, Red Hat, AlmaLinux, Rocky Linux and Microsoft, CISA's Known Exploited Vulnerabilities catalog and FIRST EPSS, refreshed several times a day (data status). Information only; see the disclaimer. Official record: cve.org · NVD.