Allocation of Resources Without Limits or Throttling Affecting netty-codec-http package, versions *


Severity

Recommended
0.0
medium
0
10

Based on Red Hat Enterprise Linux security rating.

Threat Intelligence

EPSS
1.87% (81st percentile)

Do your applications use this vulnerable package?

In a few clicks we can analyze your entire application and see what components are vulnerable in your application, and suggest you quick fixes.

Test your applications
  • Snyk IDSNYK-RHEL8-NETTYCODECHTTP-23494617
  • published3 Dec 2026
  • disclosed2 Dec 2026

Introduced: 2 Dec 2026

NewCVE-2026-142457  (opens in a new tab)
CWE-770  (opens in a new tab)

How to fix?

There is no fixed version for RHEL:8 netty-codec-http.

NVD Description

Note: Versions mentioned in the description apply only to the upstream netty-codec-http package and not the netty-codec-http package as distributed by RHEL. See How to fix? for RHEL:8 relevant fixed versions and status.

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.

CVSS Base Scores

version 3.1