REDHAT-BUG-2515374: High severity maven/io.netty/netty-codec-xml vulnerability
Netty is an asynchronous, event-driven network application framework. Prior to 4.1.136.Final and 4.2.16.Final, io.netty.handler.codec.xml.XmlFrameDecoder.decode() failed to preserve closing-tag parser state across invocations, so an unauthenticated remote attacker could trickle-feed repeated </ sequences that repeatedly rescanned the accumulated buffer and exhausted an EventLoop thread's CPU, causing denial of service with a maxFrameLength of 1 MB. This issue is fixed in versions 4.1.136.Final and 4.2.16.Final.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade
io.netty/nettyto a version that resolves this vulnerability.Fixed in 4.1.136.Final - Upgrade
Upgrade
io.netty/nettyto a version that resolves this vulnerability.Fixed in 4.2.16.Final
Event History
Frequently Asked Questions
Which deployments are exposed to this denial-of-service issue?
Deployments using the netty-codec-xml component with XmlFrameDecoder.decode() before versions 4.1.136.Final or 4.2.16.Final are affected when XmlFrameDecoder processes attacker-controlled XML input. The described CPU exhaustion occurs with maxFrameLength set to 1 MB.
What does an attacker need to exploit the issue?
An unauthenticated remote attacker needs to be able to send XML data to the affected decoder. They can trickle-feed repeated </ sequences, causing repeated rescans of the accumulated buffer and CPU exhaustion of an EventLoop thread.
What is the practical impact?
Successful exploitation can exhaust CPU on an EventLoop thread and cause denial of service. The provided information does not describe confidentiality or integrity impact.
How can the issue be remediated?
Upgrade to Netty version 4.1.136.Final or 4.2.16.Final, which fix the parser-state handling issue in XmlFrameDecoder.decode().