CVE-2026-44890: Netty has Unbounded Direct Memory Consumption in its RedisDecoder
Summary An attacker can cause DoS by sending crafted Redis payloads across multiple connections without \r\n. This exhausts the server's direct memory pool (OutOfDirectMemoryError), preventing legitimate connections from being processed. Details io.netty.handler.codec.redis.RedisDecoder decodes the length of bulk strings and array headers using the decodeLength method.
Published Jun 8, 2026 · Updated Jun 12, 2026
Affected packages
io.netty:netty-codec-redis
- Ecosystem
- Maven
- Affected
- >= 4.2.0.Final, <= 4.2.14.Final
- Fixed in
- 4.2.15.Final
- Check
mvn dependency:tree -Dincludes=io.netty:netty-codec-redis
io.netty:netty-codec-redis
- Ecosystem
- Maven
- Affected
- <= 4.1.134.Final
- Fixed in
- 4.1.135.Final
- Check
mvn dependency:tree -Dincludes=io.netty:netty-codec-redis
Advisory details
From the GitHub Advisory Database (CC BY 4.0).
Summary
An attacker can cause DoS by sending crafted Redis payloads across multiple connections without \r\n. This exhausts the server's direct memory pool (OutOfDirectMemoryError), preventing legitimate connections from being processed.
Details
io.netty.handler.codec.redis.RedisDecoder decodes the length of bulk strings and array headers using the decodeLength method. This method reads bytes from the network until it encounters a \n character. However, it does not enforce any maximum length check while buffering the bytes if the \n character is not found. An attacker can exploit this by sending a continuous stream of digits (e.g., $1111...) without ever sending a \n.
To cause a true Denial of Service, an attacker must open multiple concurrent connections and distribute the unbounded payloads among them.
According to the RESP specification (https://redis.io/docs/latest/develop/reference/protocol-spec/), all parts of the protocol are strictly terminated with \r\n. Furthermore, the length prefix itself is an integer representation that must fit within standard numeric limits (e.g., a 64-bit signed integer). Therefore, a stream of digits exceeding these bounds without \r\n is a protocol violation and should be rejected immediately rather than buffered indefinitely.
Impact
Denial of Service due to memory exhaustion. Any application using Netty's RedisDecoder to handle untrusted Redis traffic is vulnerable.
Credited to violetagg.
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-56818
Netty: RedisArrayAggregator max-elements failure leaves retained partial aggregate state
medium6.5Aug 7, 2026CVE-2026-50011
Netty: Unbounded pre-allocation in RedisArrayAggregator from RESP array length
high7.5Jun 15, 2026CVE-2026-48006
Netty's Lack of Lifecycle Cleanup Leads to Pooled ByteBuf Leak in RedisArrayAggregator
high7.5Jun 11, 2026CVE-2026-44250
Netty: Memory Exhaustion in RedisArrayAggregator due to Deeply Nested Arrays
high7.5Jun 8, 2026CVE-2026-42586
Netty Redis Codec Encoder has a CRLF Injection Issue
medium6.8May 7, 2026
