CVE-2026-142444: Io.netty/netty-codec-base: io.netty/netty-codec: netty: delimiterbasedframedecoder non-line delimiter causes quadratic cpu exhaustion

Published Dec 2, 2026
·
Updated

A flaw was found in Netty's delimiter-based frame decoder. An unauthenticated remote attacker could exploit this vulnerability by sending a network data stream that lacks expected delimiters across multiple segments. Because the decoder rescans the accumulated data buffer from the start on each incoming fragment without saving scan progress, processing this input leads to quadratic CPU work, resulting in a Denial of Service (DoS) by exhausting server processing threads.

Other sources

DelimiterBasedFrameDecoder in Netty has an algorithmic complexity flaw when it is configured with a non-line delimiter, such as Delimiters.nulDelimiter() or a custom delimiter. On every decode() call, the decoder searches the whole accumulated buffer for each delimiter, starting from the reader index. It keeps no record of how far it has already scanned. If no delimiter is found and the buffer is still below maxFrameLength, nothing is consumed, so the next inbound fragment triggers a full rescan. The line-delimited configuration is delegated to LineBasedFrameDecoder, which persists a scan offset and is not affected.

A remote peer can exploit this without authentication by sending a stream of bytes that never contains the delimiter, split across many small TCP segments. The total CPU work grows quadratically with the amount of buffered data, up to maxFrameLength. Framing runs before application logic, so no authentication is needed. The result is denial of service: a few such connections can saturate the event-loop threads that service them.

Affected are applications that use DelimiterBasedFrameDecoder with a non-line delimiter. This covers io.netty:netty-codec-base versions 4.2.0.Final through 4.2.18.Final (fixed in 4.2.19.Final) and io.netty:netty-codec versions up to and including 4.1.138.Final (fixed in 4.1.139.Final). Applications that use a line-delimited configuration are not affected.

Affected versions: >= 4.2.0.Final, <= 4.2.18.Final (netty-codec-base); <= 4.1.138.Final (netty-codec) Patched versions: 4.2.19.Final (netty-codec-base); 4.1.139.Final (netty-codec) 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-5h6f-wp3f-6hmv CVE requested by the Netty Project via PSIRTSUPT-32166.

— Red Hat

Affected Software

2 affected components
maven/io.netty/netty-codec-base>=4.2.0.Final<=4.2.18.Final
maven/io.netty/netty-codec<=4.1.138.Final

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 4.2.19.Final
  2. Upgrade

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

    Fixed in 4.1.139.Final

Event History

Dec 2, 2026
Data Sourced
via Red Hat·04:49 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

Which deployments are exposed?

Deployments using Netty's DelimiterBasedFrameDecoder with a non-line delimiter are affected, including configurations using Delimiters.nulDelimiter() or a custom delimiter. Line-delimited configurations delegated to LineBasedFrameDecoder are not affected.

2

What must an attacker do to trigger the denial of service?

An unauthenticated remote peer must be able to send network data to the decoder. The attacker sends many fragments that do not contain the expected delimiter, causing the accumulated buffer to be rescanned from its reader index on each decode call.

3

Does the input need to exceed the configured frame-size limit?

No. The costly behavior occurs while the accumulated buffer remains below maxFrameLength: no data is consumed when no delimiter is found, so each additional fragment causes another full scan.

4

What configuration change can reduce exposure if patching is not immediately possible?

Where protocol requirements allow it, use a line-delimited configuration so decoding is handled by LineBasedFrameDecoder. That decoder persists its scan offset and is described as not affected.

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