Netty 4.1.x/4.2.x DoS via unbounded queue in WS extension handler
CVE-2026-142457 Published on December 2, 2026
Io.netty/netty-codec-http: netty: unbounded per-connection queue growth in websocketserverextensionhandler leads to denial of service
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.
Vulnerability Analysis
CVE-2026-142457 can be exploited with network access, and does not require authorization privileges or user interaction. This vulnerability is considered to have a low attack complexity. An automatable proof of concept (POC) exploit exists. The potential impact of an exploit of this vulnerability is considered to have no impact on confidentiality and integrity, and a small impact on availability.
Timeline
Reported to Red Hat.
Made public.
Weakness Type
Allocation of Resources Without Limits or Throttling
The software allocates a reusable resource or group of resources on behalf of an actor without imposing any restrictions on the size or number of resources that can be allocated, in violation of the intended security policy for that actor.
Products Associated with CVE-2026-142457
Want to know whenever a new CVE is published for Red Hat products? stack.watch will email you.
Affected Versions
Red Hat Exploit Intelligence: Red Hat OpenShift Serverless: Red Hat OpenShift Serverless: Red Hat OpenShift Serverless: Red Hat OpenShift Serverless: Red Hat OpenShift Serverless: Red Hat OpenShift Serverless: Red Hat OpenShift Serverless: Red Hat OpenShift Serverless: Red Hat OpenShift Serverless: Red Hat OpenShift Serverless: Red Hat AMQ Broker 7: Red Hat AMQ Clients: Red Hat build of Apache Camel 4 for Quarkus 3: Red Hat build of Apache Camel for Spring Boot 4: Red Hat build of Apicurio Registry 3: Red Hat build of Debezium 3: Red Hat Build of Keycloak: Red Hat Build of Keycloak: Red Hat Build of Keycloak: Red Hat build of Quarkus: Red Hat Data Grid 8: Red Hat Data Grid 8: Red Hat JBoss Enterprise Application Platform 8: Red Hat JBoss Enterprise Application Platform Expansion Pack: Red Hat OpenShift AI (RHOAI): Red Hat OpenShift AI (RHOAI): Red Hat OpenShift AI (RHOAI): Red Hat OpenShift AI (RHOAI): Red Hat OpenShift AI (RHOAI): Red Hat OpenShift Dev Spaces: Red Hat OpenShift Dev Spaces: Red Hat OpenShift Dev Spaces: Red Hat OpenShift Dev Spaces: Red Hat OpenShift Dev Spaces: Red Hat Satellite 6: Red Hat streams for Apache Kafka 3: Red Hat streams for Apache Kafka 3: Red Hat streams for Apache Kafka 3: Red Hat streams for Apache Kafka 3: Red Hat streams for Apache Kafka 3: Red Hat streams for Apache Kafka 3: Red Hat streams for Apache Kafka 3: Red Hat streams for Apache Kafka 3: Red Hat streams for Apache Kafka 3:Exploit Probability
EPSS (Exploit Prediction Scoring System) scores estimate the probability that a vulnerability will be exploited in the wild within the next 30 days. The percentile shows you how this score compares to all other vulnerabilities.