| CVE |
Vendors |
Products |
Updated |
CVSS v3.1 |
| 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. |
| A flaw was found in netty-codec-http. A remote attacker can exploit this vulnerability by sending a Brotli-compressed HTTP request body to an application configured with a custom memory allocation limit. Due to improper buffer size enforcement during Brotli decompression, Netty allocates up to the default buffer size regardless of the configured lower limit, leading to excessive memory consumption and a potential Denial of Service (DoS) in memory-constrained environments. |
| A flaw was found in netty-codec-http. A remote attacker can exploit this issue by sending HTTP (Hypertext Transfer Protocol) requests containing leading control characters in the request line. Because the component improperly trims these control characters prior to validation, malformed requests are decoded as valid traffic. This parsing difference between Netty and upstream security devices can result in HTTP request smuggling, allowing attackers to bypass security filters or manipulate request routing. |
| A flaw was found in netty-codec-http. A remote attacker can exploit this issue by providing file upload metadata containing carriage return and line feed (CRLF) sequences. This flaw allows the attacker to inject arbitrary HTTP headers into outbound requests, potentially causing downstream services to misinterpret request metadata, bypass security filters, or process improper routing decisions. |
| A flaw was found in netty-codec-http. When handling HTTP requests with a null origin value, the component fails to include the Vary: Origin response header. An unauthenticated remote attacker can exploit this vulnerability by submitting requests with a null origin to cacheable web addresses, causing Cross-Origin Resource Sharing (CORS) header cache poisoning. This flaw may result in shared web caches serving incorrect security headers to subsequent visitors, causing legitimate requests to be blocked or potentially disclosing cached user data. |
| A flaw was found in netty-codec-socks. A remote attacker can exploit this issue by sending a Socket Secure 5 (SOCKS5) handshake request specifying 128 or more authentication methods, causing the server to misinterpret the method count as a negative value due to signed byte parsing. This allows the attacker to bypass authentication scheme negotiation and desynchronize the network protocol stream. |
| A flaw was found in netty-codec-haproxy. When processing PROXY v2 header messages containing nested Secure Sockets Layer (SSL) Type-Length-Value (TLV) entries, the encoder incorrectly calculates message length fields. A remote attacker can exploit this issue by sending a specially crafted header, causing downstream decoders to misinterpret trailing application data as header metadata. This allows an attacker to inject unauthorized proxy metadata or cause a denial of service by disrupting downstream connection streams. |
| A flaw was found in Netty's HTTP/2 codec (netty-codec-http2). An unauthenticated remote attacker could exploit this vulnerability by sending numerous HTTP/2 settings frames with header table size updates while keeping connections open without sending requests. Because the internal buffer holding these updates lacks a size limit and is not drained until request headers are processed, memory usage grows continuously. This can lead to server heap exhaustion and cause a Denial of Service (DoS). |
| A flaw was found in the XmlFrameDecoder component of netty-codec-xml. An unauthenticated remote attacker can exploit this issue by sending incomplete XML data in small, slow transmissions. Because the application rescans the entire data buffer upon receiving each packet, processing time increases significantly with each read. This excessive resource consumption can result in a Denial of Service (DoS) by causing the application to become unresponsive to legitimate requests. |
| A flaw was found in Netty's delimiter-based frame decoder. An unauthenticated remote attacker could exploit this vulnerability by sending a network data stream that lacks expected delimiters across multiple segments. Because the decoder rescans the accumulated data buffer from the start on each incoming fragment without saving scan progress, processing this input leads to quadratic CPU work, resulting in a Denial of Service (DoS) by exhausting server processing threads. |
| A flaw was found in netty-codec-http. A remote, unauthenticated attacker could cause a Denial of Service (DoS) by exhausting system memory. By opening a connection and continuously sending request header frames, an attacker forces the component to buffer incoming header data without enforcing size or count limits. This unbounded allocation causes memory usage to grow until the application encounters an out-of-memory error and crashes. |
| A flaw was found in netty-codec-dns. A remote attacker could exploit this vulnerability by sending specially crafted Domain Name System (DNS) messages with oversized record counts to an affected system. Due to missing record limits and excessive memory allocations during message parsing, processing these crafted messages consumes disproportionate system memory and processing time. This can lead to severe application responsiveness issues or a Denial of Service (DoS). |
| A flaw was found in Netty's HTTP/2 stack. This vulnerability allows a remote attacker to inject prohibited characters, such as NUL, Line Feed, and Carriage Return, into HTTP/2 header field values due to insufficient validation. When these values cross an HTTP/2 to HTTP/1.1 translation boundary, they can be exploited for request smuggling, header injection, or response splitting. This could lead to unauthorized access, data manipulation, or other security bypasses. |
| A flaw was found in Netty's HTTP/2 HpackEncoder. A remote attacker can exploit this by sending HTTP/2 SETTINGS frames with a very large MAX_HEADER_TABLE_SIZE. This causes the HpackEncoder to store an excessive number of unique headers, leading to increased CPU usage and memory consumption, ultimately resulting in a Denial of Service (DoS). |
| A vulnerability was found in Undertow, where URL-encoded request paths can be mishandled during concurrent requests on the AJP listener. This issue arises because the same buffer is used to decode the paths for multiple requests simultaneously, leading to incorrect path information being processed. As a result, the server may attempt to access the wrong path, causing errors such as "404 Not Found" or other application failures. This flaw can potentially lead to a denial of service, as legitimate resources become inaccessible due to the path mix-up. |
| A flaw was found in Netty. A remote unauthenticated attacker can exploit a vulnerability in Netty's HTTP/1 to HTTP/2 conversion process. When an HTTP/1 request includes both an absolute-form request-target and a conflicting Host header, Netty incorrectly prioritizes the Host header for the HTTP/2 :authority field, discarding the original request-target authority. This inconsistency can allow an attacker to bypass security controls in Netty-based proxies or gateways, potentially leading to unauthorized access, cache poisoning, or misrouting of requests. |
| A flaw was found in Netty. A remote attacker could exploit this vulnerability by sending specially crafted HTTP/2 or HTTP/3 Extended CONNECT requests. Netty's HTTP-object conversion path incorrectly processes these requests as regular HTTP/1.1 CONNECT requests, leading to a loss of critical protocol and path information. This misinterpretation can allow attackers to bypass security policies, such as routing or authorization logic, in applications that rely on Netty for HTTP/2 or HTTP/3 communication, resulting in integrity loss. |
| A flaw was found in Netty's HTTP/2 codec. When converting HTTP/1 CONNECT requests to HTTP/2, the component incorrectly uses the Host header instead of the CONNECT authority-form request-target for the tunnel authority. A remote attacker can exploit this by supplying a different Host header, leading to a malformed HTTP/2 CONNECT request. This can bypass security controls such as tunnel allow-lists or egress policies, resulting in integrity loss. |
| A flaw was found in Netty RtspDecoder. The `RtspMethods.valueOf()` function incorrectly strips trailing control bytes from method tokens in Real-Time Streaming Protocol (RTSP) requests. A remote attacker can exploit this by sending a specially crafted RTSP request, leading to method-token smuggling. This vulnerability allows an attacker to bypass method-based access controls and can also be used to launder malicious requests through Netty-based RTSP proxies, making them appear legitimate to backend systems. |
| A flaw was found in Netty's WebSocketServerExtensionHandler. A remote, unauthenticated attacker can exploit this vulnerability by using HTTP/1.1 pipelining to send requests faster than the application can respond. This leads to an unbounded growth of a per-connection queue, consuming excessive memory. Eventually, this can cause the Java Virtual Machine (JVM) to exhaust its heap, resulting in a Denial of Service (DoS) for the affected server. |