<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:content="http://purl.org/rss/1.0/modules/content/"><channel><title>Netty-Codec-Xml (&lt;= 4.1.135.Final) - CraftedSignal Threat Feed</title><link>https://feed.craftedsignal.io/products/netty-codec-xml--4.1.135.final/</link><description>Trending threats, MITRE ATT&amp;CK coverage, and detection metadata. Fed continuously.</description><generator>Hugo</generator><language>en</language><managingEditor>hello@craftedsignal.io</managingEditor><webMaster>hello@craftedsignal.io</webMaster><lastBuildDate>Fri, 24 Jul 2026 16:59:02 +0000</lastBuildDate><atom:link href="https://feed.craftedsignal.io/products/netty-codec-xml--4.1.135.final/feed.xml" rel="self" type="application/rss+xml"/><item><title>Netty XmlFrameDecoder CPU Exhaustion Denial of Service</title><link>https://feed.craftedsignal.io/briefs/2026-07-netty-xmlframedecoder-dos/</link><pubDate>Fri, 24 Jul 2026 16:59:02 +0000</pubDate><author>hello@craftedsignal.io</author><guid isPermaLink="true">https://feed.craftedsignal.io/briefs/2026-07-netty-xmlframedecoder-dos/</guid><description>An unauthenticated remote attacker can cause a Denial of Service (DoS) in Netty servers utilizing XmlFrameDecoder by sending a specially crafted XML payload containing repeated '&lt;/' characters, leading to CPU exhaustion of the server's EventLoop thread and unresponsiveness.</description><content:encoded><![CDATA[<p>A Denial of Service (DoS) vulnerability has been identified in Netty's <code>XmlFrameDecoder</code> component, tracked under CVE-2024-XXXX (although not explicitly assigned in source, it represents a similar class of vulnerability). This flaw allows an unauthenticated remote attacker to exhaust the CPU resources of a Netty server by sending a specially crafted malicious XML payload. Specifically, when the decoder encounters a <code>&lt;</code> followed by a <code>/</code> character, it attempts to scan the remaining buffer for a closing <code>&gt;</code>. Due to the parser's state not being preserved across <code>decode()</code> invocations, an attacker can deliver a payload with numerous <code>&lt;/</code> character sequences in a trickle-feed manner. This forces the decoder to repeatedly rescan the entire accumulated buffer, causing an endless loop and consuming significant CPU on the server's EventLoop thread, ultimately rendering the server unresponsive. This impacts applications using <code>netty-codec-xml</code> versions within specific ranges.</p>
<h2 id="attack-chain">Attack Chain</h2>
<ol>
<li>An unauthenticated attacker initiates an HTTP POST request targeting a Netty server configured to process XML input via <code>XmlFrameDecoder</code>.</li>
<li>The attacker crafts a malicious XML payload for the request body, specifically designed to include a large number of <code>&lt;/</code> character sequences.</li>
<li>The attacker sends this specially crafted XML payload, potentially in a trickle-feed manner, to the vulnerable Netty server.</li>
<li>The Netty server's <code>XmlFrameDecoder</code> begins processing the incoming XML stream.</li>
<li>Upon encountering the <code>&lt;/</code> sequence within the XML data, the decoder attempts to locate the corresponding closing <code>&gt;</code>.</li>
<li>Due to the decoder's implementation, which does not save its parsing state between <code>decode()</code> calls, it repeatedly rescans the entire accumulated buffer for a closing <code>&gt;</code> each time a <code>&lt;/</code> sequence is processed.</li>
<li>This continuous and inefficient rescanning process consumes an excessive amount of CPU resources on the server's EventLoop thread.</li>
<li>The EventLoop thread becomes unresponsive due to CPU exhaustion, leading to a complete Denial of Service for the Netty server.</li>
</ol>
<h2 id="impact">Impact</h2>
<p>Successful exploitation of this vulnerability results in a Denial of Service via CPU exhaustion. Any application utilizing Netty's <code>XmlFrameDecoder</code> is susceptible to this attack. An unauthenticated remote attacker can trigger the flaw by sending a relatively modest amount of malformed XML data to an exposed port, causing the server to hang completely. This can lead to significant service disruption, unavailability of critical applications, and potential financial losses for affected organizations.</p>
<h2 id="recommendation">Recommendation</h2>
<ul>
<li><strong>Patch <code>netty-codec-xml</code></strong>: Immediately update <code>maven/io.netty:netty-codec-xml</code> to versions beyond <code>4.2.15.Final</code> (for the 4.2.x line) or <code>4.1.135.Final</code> (for the 4.1.x line) as specified in the affected products.</li>
<li><strong>Monitor CPU utilization</strong>: Implement monitoring for high CPU utilization on servers processing XML input with Netty, as sustained high usage could indicate an ongoing DoS attack.</li>
<li><strong>Implement input validation</strong>: Review and enhance input validation mechanisms for all XML processing endpoints to filter or reject malformed XML payloads before they reach the <code>XmlFrameDecoder</code>.</li>
</ul>
]]></content:encoded><category domain="severity">medium</category><category domain="type">advisory</category><category>denial-of-service</category><category>cpu-exhaustion</category><category>network-attack</category><category>vulnerability</category></item></channel></rss>