5.3medium
Netty HttpPostRequestDecoder can OOM
- Severity
- 5.3medium CVSS:3.1 by GitHub_M
- Exploit likelihood
- 1.38% (higher than 72% of CVEs; EPSS, by FIRST)
- Published
- Last changed
- Assigned by
- GitHub_M
- Also known as
- GHSA-5jpm-x58v-624v
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.
Affected
| Product or package | Versions | Reported by |
|---|---|---|
| netty netty | < 4.1.108.Final, before 4.1.108.Final, before 4.1.108 | CVE List, NVD |
| io.netty:netty-codec-http (Maven) | before 4.1.108.Final | GitHub Advisory Database |
| debian debian_linux | 10.0 | NVD |
All scores
| GitHub_M | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
| GitHub | 5.3medium CVSS:3.1 | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L |
Classification
SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial.
What each source says
CVE List
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.
GitHub Advisory Database
Summary
The HttpPostRequestDecoder can be tricked to accumulate data. I have spotted currently two attack vectors
Details
- 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
bodyListHttpDatalist. - The decoder cumulates bytes in the
undecodedChunkbuffer until it can decode a field, this field can cumulate data without limits
PoC
Here is a Netty branch that provides a fix + tests : https://github.com/vietj/netty/tree/post-request-decoder
Here is a reproducer with Vert.x (which uses this decoder) https://gist.github.com/vietj/f558b8ea81ec6505f1e9a6ca283c9ae3
Impact
Any Netty based HTTP server that uses the HttpPostRequestDecoder to decode a form.
NVD (es)
Netty es un framework de aplicación de red asíncrono impulsado por eventos para el desarrollo rápido de servidores y clientes de protocolo de alto rendimiento mantenibles. Se puede engañar al `HttpPostRequestDecoder` para que acumule datos. Si bien el decodificador puede almacenar elementos en el disco si está configurado así, no hay límites para la cantidad de campos que puede tener el formulario, un adjunto puede enviar una publicación fragmentada que consta de muchos campos pequeños que se acumularán en la lista `bodyListHttpData`. El decodificador acumula bytes en el búfer `undecodedChunk` hasta que puede decodificar un campo, este campo puede acumular datos sin límites. Esta vulnerabilidad se soluciona en 4.1.108.Final.
References
| https://github.com/netty/netty/security/advisories/GHSA-5jpm-x58v-624v | exploit, vendor-advisory, web | |
| https://github.com/netty/netty/commit/0d0c6ed782d13d423586ad0c71737b2c7d02058c | patch, web | |
| https://gist.github.com/vietj/f558b8ea81ec6505f1e9a6ca283c9ae3 | exploit, web | |
| https://lists.debian.org/debian-lts-announce/2024/06/msg00015.html | mailing-list, third-party-advisory, web | |
| https://nvd.nist.gov/vuln/detail/CVE-2024-29025 | advisory | |
| https://github.com/netty/netty | package | |
| https://github.com/vietj/netty/tree/post-request-decoder | web | |
Sources
| Source | Record | Licence |
|---|---|---|
| CVE List | CVE-2024-29025 changed 2025-02-13 | CVE Terms of Use |
| GitHub Advisory Database | GHSA-5jpm-x58v-624v changed 2026-09-10 | CC-BY-4.0 |
| NVD | CVE-2024-29025 changed 2026-06-17 | Public domain |