← back
CVE-2024-29025

Netty HttpPostRequestDecoder can OOM

CVSS 5.3 MEDIUMEPSS 1.4%CWE-770
In short

Netty's HttpPostRequestDecoder can be forced to consume excessive memory when processing HTTP POST requests with many small form fields, causing an application to run out of memory and crash.

Technical detail

The HttpPostRequestDecoder lacks limits on the number of form fields and the size of accumulated data in the undecodedChunk buffer, allowing an attacker to send chunked POST requests with numerous small fields that accumulate in bodyListHttpData without bounds, leading to unbounded memory consumption and potential denial of service.

Summary generated and translated by AI from the official description.
Netty is an asynchronous event-driven network application framework for rapid development of maintainable high performance protocol servers & clients. The `HttpPostRequestDecoder` can be tricked to accumulate data. While the decoder can store items on the disk if configured so, there are no limits to the number of fields the form can have, an attacher can send a chunked post consisting of many small fields that will be accumulated in the `bodyListHttpData` list. The decoder cumulates bytes in the `undecodedChunk` buffer until it can decode a field, this field can cumulate data without limits. This vulnerability is fixed in 4.1.108.Final.
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Affected products
netty · netty

Want to know if your infrastructure is exposed to this?

Talk to TrueHacking →