CVE-2024-29025
Java vulnerability analysis and mitigation

Overview

The HttpPostRequestDecoder in Netty, an asynchronous event-driven network application framework, contains a vulnerability (CVE-2024-29025) that allows accumulation of data without proper limits. The vulnerability was discovered in versions prior to 4.1.108.Final and disclosed on March 25, 2024. The issue affects the decoder's handling of form data, where it can be exploited through two attack vectors: unlimited field accumulation in the bodyListHttpData list and unbounded data accumulation in the undecodedChunk buffer (GitHub Advisory).

Technical details

The vulnerability stems from the HttpPostRequestDecoder's lack of hard limits for both the number of fields a form can have and the number of accumulated bytes. An attacker can exploit this by sending a chunked POST request with many small fields that accumulate in the bodyListHttpData list. Additionally, the decoder accumulates bytes in the undecodedChunk buffer until it can decode a field, without any size restrictions. The vulnerability has been assigned a CVSS v3.1 base score of 5.3 (Medium) with vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L (GitHub Advisory).

Impact

The vulnerability can lead to a denial of service through resource exhaustion. When exploited, it affects any Netty-based HTTP server that uses the HttpPostRequestDecoder to decode form data. The impact is primarily on system availability, with no direct effect on confidentiality or integrity (GitHub Advisory).

Mitigation and workarounds

The vulnerability has been fixed in Netty version 4.1.108.Final. The fix implements hard limits for both maxFields (defining the maximum number of fields the form can have) and maxBufferedBytes (defining the maximum number of bytes a field can accumulate). When a limit is reached, a decoder exception is thrown (GitHub Commit).

Community reactions

Various organizations have responded to this vulnerability. Red Hat has included fixes in their security advisories RHSA-2024:4028 and RHSA-2024:6536. Debian has also addressed the vulnerability in their Long Term Support (LTS) advisory DLA-3834-1, providing patches for affected versions (Debian LTS).

Additional resources


SourceThis report was generated using AI

Free Vulnerability Assessment

Benchmark your Cloud Security Posture

Evaluate your cloud security practices across 9 security domains to benchmark your risk level and identify gaps in your defenses.

Request assessment

Get a personalized demo

Ready to see Wiz in action?

"Best User Experience I have ever seen, provides full visibility to cloud workloads."
David EstlickCISO
"Wiz provides a single pane of glass to see what is going on in our cloud environments."
Adam FletcherChief Security Officer
"We know that if Wiz identifies something as critical, it actually is."
Greg PoniatowskiHead of Threat and Vulnerability Management