Vulnerabilities

24 via 103 paths

Dependencies

52

Source

GitHub

Find, fix and prevent vulnerabilities in your code.

Severity
  • 1
  • 14
  • 9
Status
  • 24
  • 0
  • 0

critical severity

Incorrect Comparison

  • Vulnerable module: io.netty:netty-handler
  • Introduced through: io.netty:netty-handler@4.2.10.Final and io.netty:netty-codec-http@4.2.13.Final

Detailed paths

  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.netty:netty-handler@4.2.10.Final
    Remediation: Upgrade to io.netty:netty-handler@4.2.15.Final.
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.netty:netty-codec-http@4.2.13.Final io.netty:netty-handler@4.2.10.Final
    Remediation: Upgrade to io.netty:netty-codec-http@4.2.15.Final.

Overview

io.netty:netty-handler is a library that provides an asynchronous event-driven network application framework and tools for rapid development of maintainable high performance and high scalability protocol servers and clients. In other words, Netty is a NIO client server framework which enables quick and easy development of network applications such as protocol servers and clients. It greatly simplifies and streamlines network programming such as TCP and UDP socket server.

Affected versions of this package are vulnerable to Incorrect Comparison in the IpSubnetFilterRule.compareTo() function. An attacker can gain unauthorized access by bypassing IPv6 subnet restrictions through incorrect masking of IP addresses.

Remediation

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

References

high severity

Null Byte Interaction Error (Poison Null Byte)

  • Vulnerable module: io.netty:netty-codec-dns
  • Introduced through: io.ratpack:ratpack-core@1.9.0 and io.ratpack:ratpack-guice@1.9.0

Detailed paths

  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec-dns@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec-dns@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec-dns@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec-dns@4.1.63.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

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: io.netty:netty-codec
  • Introduced through: io.ratpack:ratpack-core@1.9.0 and io.ratpack:ratpack-guice@1.9.0

Detailed paths

  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-handler-proxy@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-handler-proxy@4.1.63.Final io.netty:netty-codec-socks@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-handler-proxy@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-handler-proxy@4.1.63.Final io.netty:netty-codec-socks@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec-dns@4.1.63.Final io.netty:netty-codec@4.1.63.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.ratpack:ratpack-core@1.9.0 and io.ratpack:ratpack-guice@1.9.0

Detailed paths

  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-handler-proxy@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-handler-proxy@4.1.63.Final io.netty:netty-codec-socks@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-handler-proxy@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-handler-proxy@4.1.63.Final io.netty:netty-codec-socks@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec-dns@4.1.63.Final io.netty:netty-codec@4.1.63.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.ratpack:ratpack-core@1.9.0 and io.ratpack:ratpack-guice@1.9.0

Detailed paths

  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-handler-proxy@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-handler-proxy@4.1.63.Final io.netty:netty-codec-socks@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-handler-proxy@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-handler-proxy@4.1.63.Final io.netty:netty-codec-socks@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec-dns@4.1.63.Final io.netty:netty-codec@4.1.63.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

Infinite loop

  • Vulnerable module: io.netty:netty-codec-compression
  • Introduced through: io.netty:netty-codec-http@4.2.13.Final

Detailed paths

  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.netty:netty-codec-http@4.2.13.Final io.netty:netty-codec-compression@4.2.13.Final
    Remediation: Upgrade to io.netty:netty-codec-http@4.2.16.Final.

Overview

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-compression 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-codec-http@4.2.13.Final

Detailed paths

  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.netty:netty-codec-http@4.2.13.Final
    Remediation: Upgrade to io.netty:netty-codec-http@4.2.16.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-codec-http@4.2.13.Final

Detailed paths

  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.netty:netty-codec-http@4.2.13.Final
    Remediation: Upgrade to io.netty:netty-codec-http@4.2.16.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-codec-http@4.2.13.Final

Detailed paths

  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.netty:netty-codec-http@4.2.13.Final
    Remediation: Upgrade to io.netty:netty-codec-http@4.2.16.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

Allocation of Resources Without Limits or Throttling

  • Vulnerable module: io.netty:netty-handler
  • Introduced through: io.netty:netty-handler@4.2.10.Final and io.netty:netty-codec-http@4.2.13.Final

Detailed paths

  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.netty:netty-handler@4.2.10.Final
    Remediation: Upgrade to io.netty:netty-handler@4.2.15.Final.
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.netty:netty-codec-http@4.2.13.Final io.netty:netty-handler@4.2.10.Final
    Remediation: Upgrade to io.netty:netty-codec-http@4.2.15.Final.

Overview

io.netty:netty-handler is a library that provides an asynchronous event-driven network application framework and tools for rapid development of maintainable high performance and high scalability protocol servers and clients. In other words, Netty is a NIO client server framework which enables quick and easy development of network applications such as protocol servers and clients. It greatly simplifies and streamlines network programming such as TCP and UDP socket server.

Affected versions of this package are vulnerable to Allocation of Resources Without Limits or Throttling in the SslClientHelloHandler.decode() function. An attacker can cause excessive memory allocation by sending a specially crafted TLS handshake with a large handshake length value, leading to resource exhaustion and potential denial of service.

Remediation

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

References

high severity

Improper Verification of Cryptographic Signature

  • Vulnerable module: io.netty:netty-handler
  • Introduced through: io.netty:netty-handler@4.2.10.Final and io.netty:netty-codec-http@4.2.13.Final

Detailed paths

  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.netty:netty-handler@4.2.10.Final
    Remediation: Upgrade to io.netty:netty-handler@4.2.15.Final.
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.netty:netty-codec-http@4.2.13.Final io.netty:netty-handler@4.2.10.Final
    Remediation: Upgrade to io.netty:netty-codec-http@4.2.15.Final.

Overview

io.netty:netty-handler is a library that provides an asynchronous event-driven network application framework and tools for rapid development of maintainable high performance and high scalability protocol servers and clients. In other words, Netty is a NIO client server framework which enables quick and easy development of network applications such as protocol servers and clients. It greatly simplifies and streamlines network programming such as TCP and UDP socket server.

Affected versions of this package are vulnerable to Improper Verification of Cryptographic Signature in engineGetTrustManagers() and related methods. An attacker can intercept network traffic by providing a malicious X509TrustManager, which bypasses hostname verification during TLS connections.

Remediation

Upgrade io.netty:netty-handler 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
  • Introduced through: io.ratpack:ratpack-core@1.9.0 and io.ratpack:ratpack-guice@1.9.0

Detailed paths

  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-handler-proxy@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-handler-proxy@4.1.63.Final io.netty:netty-codec-socks@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-handler-proxy@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-handler-proxy@4.1.63.Final io.netty:netty-codec-socks@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final

Overview

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

Affected versions of this package are vulnerable to Denial of Service (DoS). SnappyFrameDecoder doesn't restrict chunk length any mad buffer skippable chunks in an unnecessary way, leading to excessive memory usage. This vulnerability can be triggered by supplying malicious input that decompresses to a very big size (via a network stream or a file), or by sending a huge skippable chunk.

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 to version 4.1.68.Final or higher.

References

high severity

Denial of Service (DoS)

  • Vulnerable module: io.netty:netty-codec
  • Introduced through: io.ratpack:ratpack-core@1.9.0 and io.ratpack:ratpack-guice@1.9.0

Detailed paths

  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-handler-proxy@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-handler-proxy@4.1.63.Final io.netty:netty-codec-socks@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-handler-proxy@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-handler-proxy@4.1.63.Final io.netty:netty-codec-socks@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec-dns@4.1.63.Final io.netty:netty-codec@4.1.63.Final

Overview

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

Affected versions of this package are vulnerable to Denial of Service (DoS). Bzip2Decoder doesn't allow setting size restrictions for decompressed data. An attacker can exploit this by providing a compressed file that, when decompressed, triggers an out-of-memory exception.

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 to version 4.1.68.Final or higher.

References

high severity

Insufficient Verification of Data Authenticity

  • Vulnerable module: io.netty:netty-resolver-dns
  • Introduced through: io.ratpack:ratpack-core@1.9.0 and io.ratpack:ratpack-guice@1.9.0

Detailed paths

  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-resolver-dns@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-resolver-dns@4.1.63.Final

Overview

Affected versions of this package are vulnerable to Insufficient Verification of Data Authenticity in the DnsResolveContext.AuthoritativeNameServerList#add function. An attacker can inject malicious NS and A records into the DNS cache by controlling an authoritative name server for a subdomain and providing NS records that claim authority over a parent domain, leading to unauthorized redirection or interception of DNS queries for affected domains.

Remediation

Upgrade io.netty:netty-resolver-dns to version 4.1.135.Final, 4.2.15.Final or higher.

References

high severity

Insufficient Verification of Data Authenticity

  • Vulnerable module: io.netty:netty-resolver-dns
  • Introduced through: io.ratpack:ratpack-core@1.9.0 and io.ratpack:ratpack-guice@1.9.0

Detailed paths

  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-resolver-dns@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-resolver-dns@4.1.63.Final

Overview

Affected versions of this package are vulnerable to Insufficient Verification of Data Authenticity due to missing validation of the origin of CNAME records in DNS responses within the DnsResolveContext function. An attacker can inject unauthorized DNS records by supplying malicious DNS responses, potentially leading to cache poisoning and redirection of network traffic.

Remediation

Upgrade io.netty:netty-resolver-dns to version 4.1.135.Final, 4.2.15.Final or higher.

References

medium severity
new

Missing Release of Resource after Effective Lifetime

  • Vulnerable module: io.netty:netty-codec-dns
  • Introduced through: io.ratpack:ratpack-core@1.9.0 and io.ratpack:ratpack-guice@1.9.0

Detailed paths

  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec-dns@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec-dns@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec-dns@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-resolver-dns@4.1.63.Final io.netty:netty-codec-dns@4.1.63.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-codec-http@4.2.13.Final

Detailed paths

  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.netty:netty-codec-http@4.2.13.Final
    Remediation: Upgrade to io.netty:netty-codec-http@4.2.16.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

HTTP Request Smuggling

  • Vulnerable module: io.netty:netty-codec-http
  • Introduced through: io.netty:netty-codec-http@4.2.13.Final

Detailed paths

  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.netty:netty-codec-http@4.2.13.Final
    Remediation: Upgrade to io.netty:netty-codec-http@4.2.15.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-codec-http@4.2.13.Final

Detailed paths

  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.netty:netty-codec-http@4.2.13.Final
    Remediation: Upgrade to io.netty:netty-codec-http@4.2.16.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

Generation of Predictable Numbers or Identifiers

  • Vulnerable module: io.netty:netty-resolver-dns
  • Introduced through: io.ratpack:ratpack-core@1.9.0 and io.ratpack:ratpack-guice@1.9.0

Detailed paths

  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-resolver-dns@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-resolver-dns@4.1.63.Final

Overview

Affected versions of this package are vulnerable to Generation of Predictable Numbers or Identifiers due to the use of a predictable pseudo-random number generator for DNS transaction IDs and a default static UDP source port in the DNS resolution process. An attacker can redirect network traffic or perform man-in-the-middle attacks by spoofing DNS responses.

Note:

This is only exploitable if the attacker's forged response arrives before the legitimate DNS reply. The timing window is not guaranteed.

Remediation

Upgrade io.netty:netty-resolver-dns 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-http
  • Introduced through: io.netty:netty-codec-http@4.2.13.Final

Detailed paths

  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.netty:netty-codec-http@4.2.13.Final
    Remediation: Upgrade to io.netty:netty-codec-http@4.2.16.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.ratpack:ratpack-core@1.9.0 and io.ratpack:ratpack-guice@1.9.0

Detailed paths

  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-handler-proxy@4.1.63.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-handler-proxy@4.1.63.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
new

CRLF Injection

  • Vulnerable module: io.netty:netty-codec-http
  • Introduced through: io.netty:netty-codec-http@4.2.13.Final

Detailed paths

  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.netty:netty-codec-http@4.2.13.Final
    Remediation: Upgrade to io.netty:netty-codec-http@4.2.16.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

Missing Release of Resource after Effective Lifetime

  • Vulnerable module: io.netty:netty-transport-native-unix-common
  • Introduced through: io.netty:netty-handler@4.2.10.Final, io.netty:netty-codec-http@4.2.13.Final and others

Detailed paths

  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.netty:netty-handler@4.2.10.Final io.netty:netty-transport-native-unix-common@4.2.10.Final
    Remediation: Upgrade to io.netty:netty-handler@4.2.15.Final.
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.netty:netty-codec-http@4.2.13.Final io.netty:netty-handler@4.2.10.Final io.netty:netty-transport-native-unix-common@4.2.10.Final
    Remediation: Upgrade to io.netty:netty-codec-http@4.2.15.Final.
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-transport-native-unix-common@4.2.10.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.netty:netty-resolver-dns-native-macos@4.1.63.Final io.netty:netty-transport-native-unix-common@4.2.10.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-core@1.9.0 io.ratpack:ratpack-exec@1.9.0 io.netty:netty-transport-native-epoll@4.1.63.Final io.netty:netty-transport-native-unix-common@4.2.10.Final
  • Introduced through: Cantara/ratpack-guice-config@Cantara/ratpack-guice-config io.ratpack:ratpack-guice@1.9.0 io.ratpack:ratpack-core@1.9.0 io.ratpack:ratpack-exec@1.9.0 io.netty:netty-transport-native-epoll@4.1.63.Final io.netty:netty-transport-native-unix-common@4.2.10.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