CVE-2026-142445: Io.netty/netty-codec-xml: netty: xmlframedecoder quadratic cpu exhaustion via trickled unbalanced element (incomplete fix of cve-2026-73507)

Published Dec 2, 2026
·
Updated

A flaw was found in the XmlFrameDecoder component of netty-codec-xml. An unauthenticated remote attacker can exploit this issue by sending incomplete XML data in small, slow transmissions. Because the application rescans the entire data buffer upon receiving each packet, processing time increases significantly with each read. This excessive resource consumption can result in a Denial of Service (DoS) by causing the application to become unresponsive to legitimate requests.

Other sources

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.

— Red Hat

Affected Software

1 affected component
maven/io.netty/netty-codec-xml>=4.2.0.Final<=4.2.18.Final, <=4.1.138.Final

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade io.netty/netty-codec-xml to a version that resolves this vulnerability.

    Fixed in 4.1.139.Final
  2. Upgrade

    Upgrade io.netty/netty-codec-xml to a version that resolves this vulnerability.

    Fixed in 4.2.19.Final

Event History

Dec 2, 2026
Data Sourced
via Red Hat·04:50 PM
DescriptionSeverityAffected Software
CVE Published
via MITRE·06:27 PM
Data Sourced
via MITRE·06:27 PM
DescriptionSeverityWeakness
Data Sourced
via NVD·07:18 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

What deployments are exposed to this issue?

Applications that use the XmlFrameDecoder component from netty-codec-xml and accept XML data from remote peers are exposed. The attacker does not need authentication or user interaction.

2

What traffic pattern is required to trigger the denial of service?

An attacker opens an XML element and sends unbalanced, incomplete content slowly in very small reads. Because the element never becomes balanced, each read causes the accumulated buffer to be rescanned.

3

Is the impact limited by configuration?

The quadratic CPU work is bounded by the configured maxFrameLength. The reader index advances only when a balanced XML element is completed or that size cap is exceeded.

4

Does the prior fix for CVE-2026-73507 prevent this attack?

No. The prior fix changed closing-tag handling, while this attack keeps the XML element unbalanced and does not reach that code path.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203