CVE-2025-58057
Netty's BrotliDecoder is vulnerable to DoS via zip bomb style attack
Also known as GHSA-3p8m-j85q-pgmj
Mitigation
- Upgrade io.netty:netty-codec-compression to 4.2.5.Final or later.
- Upgrade io.netty:netty-codec to 4.1.125.Final or later.
Who should check
- Projects that depend on Maven package io.netty:netty-codec-compression (>= 4.2.0.Alpha1, < 4.2.5.Final)
- Projects that depend on Maven package io.netty:netty-codec (< 4.1.125.Final)
- Anyone running netty <= 4.1.124.Final, < 4.1.125.Final; <= 4.2.4.Final, < 4.2.5.Final
Vulnerability facts
- Affected
- io.netty:netty-codec-compression >= 4.2.0.Alpha1, < 4.2.5.Final; io.netty:netty-codec < 4.1.125.Final
- Fixed in
- 4.2.5.Final, 4.1.125.Final
- Exploited in the wild
- Not in CISA KEV
- Public exploit / PoC
- None known
- Remote exploitation
- Remote, no login needed
- CVSS
- 6.9 (v4.0, CNA)CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:NOpen in CVSS calculator
Show all 11 CVSS metrics
- Attack vector: Network
- Attack complexity: Low
- Attack requirements: None
- Privileges required: None
- User interaction: None
- Confidentiality impact: None
- Integrity impact: None
- Availability impact: Low
- Confidentiality impact on other systems: None
- Integrity impact on other systems: None
- Availability impact on other systems: None
- EPSS
- 0.73% chance of exploitation in 30 days (percentile 50, 2026-11-26)
- CWE
- CWE-409
- Modified
Description
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.
Affected and fixed versions
| Package / product | Affected | Fixed | Source |
|---|---|---|---|
| Maven io.netty:netty-codec-compression | >= 4.2.0.Alpha1, < 4.2.5.Final | 4.2.5.Final | osv |
| Maven io.netty:netty-codec | < 4.1.125.Final | 4.1.125.Final | osv |
| netty | <= 4.1.124.Final, < 4.1.125.Final; <= 4.2.4.Final, < 4.2.5.Final | — | cvelist |
Check your systems with an agent
Paste this into Claude Code, Cursor or another coding agent. It only reads; it changes nothing.
Check whether anything I run is affected by CVE-2025-58057. Work read-only: do not install, upgrade, delete or change anything. Details: https://flawdb.com/CVE-2025-58057.md Affected: io.netty:netty-codec-compression >= 4.2.0.Alpha1, < 4.2.5.Final; io.netty:netty-codec < 4.1.125.Final Fixed in: 4.2.5.Final, 4.1.125.Final Steps: 1. Search this machine and project for io.netty:netty-codec-compression (Maven), io.netty:netty-codec (Maven), netty: dependency manifests and lockfiles, installed packages, container images and running services. 2. For each match, note the installed version and whether it is inside the affected range. 3. Report a table: location, installed version, affected (yes / no / unsure), evidence. If affected, say which fixed version or mitigation from the details link applies, but don't apply it.
References
Vendor advisories
FAQ
Is CVE-2025-58057 being exploited?
There is no confirmed exploitation: CVE-2025-58057 is not in the CISA Known Exploited Vulnerabilities catalog. No public exploit code is known. EPSS estimates a 0.73% chance of exploitation in the next 30 days (as of 2026-11-26).
How serious is CVE-2025-58057?
Medium: CVSS 6.9 (v4.0, scored by CNA). Remote, no login needed.
Which versions are affected by CVE-2025-58057?
io.netty:netty-codec-compression >= 4.2.0.Alpha1, < 4.2.5.Final; io.netty:netty-codec < 4.1.125.Final.
Is there a fix for CVE-2025-58057?
Yes. Fixed in 4.2.5.Final, 4.1.125.Final. Upgrade io.netty:netty-codec-compression to 4.2.5.Final or later. Upgrade io.netty:netty-codec to 4.1.125.Final or later.
How do I check if I'm affected by CVE-2025-58057?
Find where you use the affected software (dependency lockfiles, installed packages, container images, servers) and compare the installed version with the affected range above. The agent prompt on this page does this read-only.