REDHAT-BUG-2588742: High severity maven/io.netty/netty-codec-http2 vulnerability

Published Dec 2, 2026
·
Updated

Netty's HTTP/2 codec (netty-codec-http2) does not bound the buffer that holds pending HPACK dynamic-table-size updates. Each time a remote peer sends a SETTINGS frame that changes SETTINGSHEADERTABLESIZE, DefaultHttp2HeadersEncoder appends an update of up to 6 bytes to an unpooled heap buffer (tableSizeChangeOutput) that has no capacity limit. The updates are never coalesced, and the buffer is only drained when the local endpoint writes a HEADERS or PUSHPROMISE block. RFC 7541 section 4.2 requires at most two updates between header blocks.

A remote peer can send many protocol-legal SETTINGS frames, each with a different header table size value, and never open a stream or send a request. The buffer then grows without limit for the lifetime of the connection. No credentials are needed beyond completing an HTTP/2 connection (TLS-ALPN h2 or h2c prior knowledge).

The impact is denial of service through heap exhaustion. In testing, default-configured servers reached java.lang.OutOfMemoryError after roughly 230 MiB of SETTINGS traffic, within seconds at a small heap, and many idle connections can hold most of the heap indefinitely. Applying the documented hardening options (stream limits, header list limits, control-frame queue limits and similar) did not prevent it.

Affected are users of io.netty:netty-codec-http2 versions up to and including 4.1.138.Final, and 4.2.0.Final through 4.2.18.Final, that accept HTTP/2 connections from untrusted peers. 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-770 Upstream advisory: https://github.com/netty/netty/security/advisories/GHSA-2p3h-phr9-jf38 CVE requested by the Netty Project via PSIRTSUPT-32166.

Affected Software

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

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

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

    Fixed in 4.1.139.Final
  2. Upgrade

    Upgrade io.netty:netty-codec-http2 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

Frequently Asked Questions

1

Who can trigger the issue?

An unauthenticated remote peer can trigger it after completing an HTTP/2 connection, either through TLS ALPN using h2 or through h2c prior knowledge. No credentials are required.

2

Does exploitation require sending requests or opening streams?

No. A peer can repeatedly send protocol-legal SETTINGS frames with different header table size values without opening a stream or sending a request.

3

Are default server configurations affected?

Yes. Testing reported that default-configured servers could reach java.lang.OutOfMemoryError after roughly 230 MiB of SETTINGS traffic, and multiple idle connections could retain most of the heap indefinitely.

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