REDHAT-BUG-2588732: High severity maven/io.netty/netty-codec-dns vulnerability

Published Dec 2, 2026
·
Updated

The DNS decoders in netty-codec-dns build message records from the attacker-controlled 16-bit section counts (QDCOUNT, ANCOUNT, NSCOUNT, ARCOUNT) with no per-message record limit and no check of the counts against the message length. Each record name is decoded by DnsCodecUtil.decodeDomainName, which sizes its working StringBuilder to twice the entire remaining message buffer instead of the 255-character maximum name length. The per-name length check runs only after that allocation has been made. A single frame-legal message of about 64 KiB can therefore produce thousands of records, each with an oversized allocation, so total work grows quadratically with the frame size.

A remote, unauthenticated peer can use this to cause a denial of service. In testing, one 64 KiB message materialized about 4,661 records and caused about 325 MiB of transient heap allocation, roughly 5,000 times the on-wire size, on the synchronous I/O thread. A sustained low-bandwidth flood can saturate garbage collection and stall the event loop, denying service to every connection handled by that loop.

Affected are users of netty-codec-dns that decode DNS messages from untrusted peers, including DNS servers using TcpDnsQueryDecoder or DatagramDnsQueryDecoder, and DNS clients such as those using netty-resolver-dns with DnsResponseDecoder. Versions up to and including 4.1.138.Final, and 4.2.0.Final through 4.2.18.Final, are affected. The issue is fixed 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-405 Upstream advisory: https://github.com/netty/netty/security/advisories/GHSA-3h79-3wcf-5whr CVE requested by the Netty Project via PSIRTSUPT-32166.

Affected Software

1 affected component
maven/io.netty/netty-codec-dns>=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 to a fixed release to a version that resolves this vulnerability.

    Fixed in 4.1.139.Final
  2. Upgrade

    Upgrade to a fixed release to a version that resolves this vulnerability.

    Fixed in 4.2.19.Final

Event History

Dec 2, 2026
Data Sourced
via Red Hat·04:49 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which deployments are exposed to remote attack?

Deployments using netty-codec-dns to decode DNS messages from untrusted peers are exposed. This includes DNS servers and any service that accepts DNS traffic from remote, unauthenticated clients.

2

What does an attacker need to exploit this issue?

An attacker only needs the ability to send DNS messages to a reachable decoder; no authentication is required. A frame-legal message of about 64 KiB with attacker-controlled section counts can trigger the excessive allocation behavior.

3

How severe can the resource impact be from a single message?

Testing showed that one roughly 64 KiB message could materialize about 4,661 records and create about 325 MiB of transient heap allocation. Sustained low-bandwidth traffic can saturate garbage collection and stall the synchronous I/O event loop handling the traffic.

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