REDHAT-BUG-2588757: Medium severity maven/io.netty/netty-codec-http vulnerability

Published Dec 2, 2026
·
Updated

Netty's WebSocketServerExtensionHandler keeps a per-connection queue of negotiated WebSocket extensions (validExtensions). An entry is added for every inbound HttpRequest and removed only when the application writes an HttpResponse. The queue has no size limit. A remote, unauthenticated client can use HTTP/1.1 pipelining to send requests faster than the application responds, so the queue grows without bound for the life of the connection.

The queue grows on the plain HTTP port for any well-formed HTTP request, not only WebSocket upgrade requests. No WebSocket upgrade has to succeed and no authentication is needed. The handler removes itself from the pipeline only after a successful 101 Switching Protocols response, so a client that never completes an upgrade keeps the handler and its queue alive. Requests that offer a valid permessage-deflate extension cost roughly 100 bytes of heap each.

The impact is denial of service. Memory is reclaimed only when the connection closes, so a client that keeps connections open and keeps pipelining can exhaust the JVM heap and cause an OutOfMemoryError. Spreading the traffic across many connections multiplies the effect. Because the requests are syntactically valid HTTP, upstream filters are unlikely to distinguish them from legitimate pipelining.

Affected are users of netty-codec-http that use WebSocketServerExtensionHandler or its subclasses, including WebSocketServerCompressionHandler, which is the standard way to enable permessage-deflate. The affected versions are 4.1.88.Final through 4.1.137.Final and 4.2.0.Final through 4.2.17.Final. The issue is fixed in 4.1.138.Final and 4.2.18.Final.

Affected versions: >= 4.1.88.Final, <= 4.1.137.Final; >= 4.2.0.Final, <= 4.2.17.Final Patched versions: 4.1.138.Final; 4.2.18.Final CVSS: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L (5.3) CWE: CWE-770 Upstream advisory: https://github.com/netty/netty/security/advisories/GHSA-2g37-3h88-55hc CVE requested by the Netty Project via PSIRTSUPT-32166.

Affected Software

1 affected component
maven/io.netty/netty-codec-http>=4.1.88.Final<=4.1.137.Final, >=4.2.0.Final<=4.2.17.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.138.Final
  2. Upgrade

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

    Fixed in 4.2.18.Final

Event History

Dec 2, 2026
Data Sourced
via Red Hat·05:50 PM
DescriptionSeverityAffected Software

Frequently Asked Questions

1

Which services are exposed to this issue?

Any service using the affected handler on a plain HTTP port can be exposed. The requests do not need to be WebSocket upgrade requests; any well-formed HTTP request can add an entry to the per-connection queue.

2

What does an attacker need to exploit it?

A remote attacker does not need authentication or a successful WebSocket upgrade. They can pipeline HTTP/1.1 requests faster than the application sends responses and keep connections open to retain the allocated memory.

3

When is the accumulated memory released?

The queued memory is reclaimed only when the affected connection closes. An attacker can increase impact by maintaining multiple open connections and continuing to pipeline requests, potentially exhausting JVM heap and causing an OutOfMemoryError.

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