CVE-2026-142457
Awaiting Analysis Awaiting Analysis - Queue

Memory Exhaustion in Netty WebSocket Extension Handler

Vulnerability report for CVE-2026-142457, including description, CVSS score, EPSS score, affected products, exploitability, helpful resources, and attack-flow context.

Publication date: 2026-12-02

Last updated on: 2026-12-02

Assigner: redhat-SADP

Description

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 Scores

EPSS Scores

Probability:
Percentile:

Meta Information

Published
2026-12-02
Last Modified
2026-12-02
Generated
2026-12-03
AI Q&A
2026-12-03
EPSS Evaluated
N/A
NVD
EUVD

Helpful Resources

Exploitability

CWE
CWE Icon
KEV
KEV Icon
CWE ID Description
CWE-770 The product allocates a reusable resource or group of resources on behalf of an actor without imposing any intended restrictions on the size or number of resources that can be allocated.

Attack-Flow Graph

AI Quick Actions

Instant insights powered by AI
Executive Summary

This vulnerability involves Netty's WebSocketServerExtensionHandler maintaining an unbounded per-connection queue of WebSocket extensions for each HTTP request. The queue grows indefinitely because entries are added for every request but only removed when an HTTP response is written. An unauthenticated remote attacker can exploit this by sending rapid HTTP pipelined requests, causing memory exhaustion and denial of service.

Detection Guidance

Monitor JVM heap usage for unexpected growth, especially on ports handling HTTP/WebSocket traffic. Check for high memory consumption in netty-codec-http processes. Use tools like jstat, jmap, or VisualVM to track heap usage and identify abnormal patterns.

Impact Analysis

The impact is denial of service due to JVM heap exhaustion. An attacker can cause an OutOfMemoryError by sending pipelined requests faster than the application responds. Memory is only reclaimed when connections close, so keeping connections open multiplies the effect. Each valid request offering permessage-deflate consumes roughly 100 bytes of heap.

Mitigation Strategies
  • Upgrade Netty to versions 4.1.138.Final or 4.2.18.Final or later to patch the vulnerability.
  • Disable WebSocket compression (permessage-deflate) if not required, as WebSocketServerCompressionHandler is affected.
  • Implement rate limiting or pipeline depth limits on HTTP ports to prevent unbounded queue growth.
  • Monitor network traffic for suspicious HTTP pipelining patterns targeting WebSocket endpoints.

Chat Assistant

Ask questions about this CVE
Hi! I’m here to help you understand CVE-2026-142457. Ask me anything about the vulnerability, its impact, or mitigation strategies.
0/70

EPSS Chart

Security Radar

News mentioning this vulnerability
Loading related security news...