CVE-2025-58057
BaseFortify
Publication date: 2025-09-04
Last updated on: 2025-09-08
Assigner: GitHub, Inc.
Description
Description
CVSS Scores
EPSS Scores
| Probability: | |
| Percentile: |
Meta Information
Affected Vendors & Products
| Vendor | Product | Version / Range |
|---|---|---|
| netty | netty | to 4.1.125 (exc) |
| netty | netty | From 4.2.0 (inc) to 4.2.5 (exc) |
Helpful Resources
Exploitability
| CWE ID | Description |
|---|---|
| CWE-409 | The product does not handle or incorrectly handles a compressed input with a very high compression ratio that produces a large output. |
Attack-Flow Graph
AI Powered Q&A
Can you explain this vulnerability to me?
This vulnerability exists in certain versions of Netty's codec and codec-compression libraries where the BrotliDecoder and some other decompression decoders, when given specially crafted input, allocate a large number of byte buffers without limits. This happens because BrotliDecoder.decompress repeatedly calls pull to decompress data in 64K chunks, saving these buffers in an output list that remains reachable, potentially leading to excessive memory use and eventually causing a denial of service due to out-of-memory conditions.
How can this vulnerability impact me? :
The vulnerability can lead to a denial of service (DoS) condition by exhausting system memory. An attacker can supply specially crafted input that causes the application using the affected Netty versions to allocate excessive memory buffers, which remain reachable and are not freed, eventually causing the application to run out of memory and crash or become unresponsive.
What immediate steps should I take to mitigate this vulnerability?
Upgrade netty-codec-compression to version 4.1.125.Final or higher and netty-codec to version 4.2.5.Final or higher to apply the fix that prevents excessive buffer allocation and denial of service.