GitHub Advisoryadvisory · Maven

GHSA-5jpm-x58v-624v Netty's HttpPostRequestDecoder can OOM

MEDIUM Published 2024-03-25 Modified 2024-06-22 Official page ↗
Aliases
CVE-2024-29025
Ecosystem
Maven
Packages
io.netty:netty-codec-http
Severity
Moderate
CVSS vector
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Weaknesses
CWE-770
Reviewed
2024-03-25

Affected packages

• Maven io.netty:netty-codec-http: < 4.1.108.Final → fixed in 4.1.108.Final

Description

Summary The `HttpPostRequestDecoder` can be tricked to accumulate data. I have spotted currently two attack vectors Details 1. 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. 2. The decoder cumulates bytes in the `undecodedChunk` buffer 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.

Related

Alias · CVE (1)

  • CVE-2024-29025 Netty is an asynchronous event-driven network application framework for rapid development of maintainable high performance protocol servers… vulnerability

Weakness · CWE (1)

  • CWE-770 Allocation of Resources Without Limits or Throttling weakness

References