REDHAT-BUG-2588737: High severity maven/io.netty/netty-codec-xml vulnerability
XmlFrameDecoder in netty-codec-xml does not keep scan progress between decode() calls. Each call rescans the whole accumulated buffer from the reader index. The reader index advances only when a balanced XML element is complete or the size cap is exceeded. A remote peer can open an element and then send content slowly, in very small reads, so the element never balances. Each additional read then triggers a full rescan of a growing buffer, so total CPU work is quadratic in the amount of data sent, bounded by the configured maxFrameLength. This is an incomplete fix for CVE-2026-73507: that fix only changed closing-tag handling, and this input never reaches that code.
The impact is denial of service. An unauthenticated peer that can reach a pipeline containing XmlFrameDecoder can consume CPU on the event-loop thread serving its connection. A small number of connections can occupy all event-loop threads and make the service unavailable.
Users of netty-codec-xml who use XmlFrameDecoder to frame data from untrusted peers are affected. This covers the 4.1.x line up to 4.1.138.Final and the 4.2.x line from 4.2.0.Final through 4.2.18.Final. Fixes are in 4.1.139.Final and 4.2.19.Final.
Affected versions: >= 4.2.0.Final, <= 4.2.18.Final; <= 4.1.138.Final Patched versions: 4.2.19.Final; 4.1.139.Final CVSS: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H (7.5) CWE: CWE-400, CWE-407 Upstream advisory: https://github.com/netty/netty/security/advisories/GHSA-35qr-v9mm-35c5 CVE requested by the Netty Project via PSIRTSUPT-32166.
Affected Software
Remediation
Recommended actions to resolve this vulnerability, in priority order.
- Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.1.139.Final - Upgrade
Upgrade to a fixed release to a version that resolves this vulnerability.
Fixed in 4.2.19.Final
Event History
Frequently Asked Questions
Which deployments are exposed to this denial-of-service condition?
Deployments using XmlFrameDecoder from netty-codec-xml to frame XML received from untrusted peers are affected. An unauthenticated peer must be able to reach the pipeline containing that decoder.
What traffic pattern is required to trigger the issue?
An attacker opens an XML element and sends its content slowly in very small reads without completing a balanced element. This causes repeated rescanning of the growing accumulated buffer and quadratic CPU consumption, up to the configured maxFrameLength.
What is the operational impact of successful exploitation?
CPU is consumed on the event-loop thread handling the attacker connection. A small number of connections can occupy all event-loop threads and make the service unavailable.
Which Netty versions are affected and which versions contain the fix?
Affected versions are 4.1.x through 4.1.138.Final and 4.2.x from 4.2.0.Final through 4.2.18.Final. Fixes are available in 4.1.139.Final and 4.2.19.Final.