Netty
Netty Bzip2Decoder: Infinite Loop in RLE State Machine Leads to Event-Loop Thread Hang
Netty is an asynchronous, event-driven network application framework. Prior to versions 4.1.136.Final and 4.2.16.Final, the `Bzip2Decoder` handler in Netty's compression codec pipeline is vulnerable to a denial-of-service attack through a malformed bzip2 stream that permanently captures the event-loop thread in an infinite loop. The vulnerability exists in the run-length encoding (RLE) state machine within [`Bzip2BlockDecompressor.read()`]. This issue has been fixed in versions 4.1.136.Final and 4.2.16.Final.
Affected versions and mitigation
From the CVE record and the vendor's references.Affected
- >=4.2.0.Final, < 4.2.16.Final
- < 4.1.136.Final
Fixed in 4.2.16.Final, 4.1.136.Final
Mitigation
Upgrade netty to 4.2.16.Final or 4.1.136.Final or later.
References
- Vendor advisory github.com/netty/netty/security/advisories/GHS…
Timeline
Days relative to CVE publicationNo public PoC found yet; not in CISA KEV.
PoC repositories
Found on GitHub.No PoC repositories found yet.