CVE-2026-56818
Medium · 6.5CVSS
6.5
EPSS
0.5%
Published
Aug 7, 2026
CISA due date
—
Cloudanix analysis
A flaw in the way Netty handles certain Redis messages could let a remote sender keep extra memory allocated after an error, potentially causing slowdowns or crashes if the connection stays open.
- Exploitation
- Remote Unauthenticated
- Attacker needs
- None
- Complexity
- Low
- Impact
- Denial Of Service
- Component
- Library
- Class
- Improper Input Validation
- Remediation
- Upgrade
- Effort
- Medium
- Patch risk
- Low
What it actually does
In the RedisArrayAggregator Redis codec, exceeding the maxElements limit during decodeRedisArrayHeader throws a decoder exception without clearing retained partial aggregate state and pooled buffers, unlike the maxNestedArrayDepth case, leaving attacker-controlled state and buffers attached to a live channel.
Why it matters to the business
Applications using Netty's Redis support may retain attacker-supplied memory buffers across limit-exceeding inputs, increasing memory consumption and potential for denial-of-service or logic interference if channels remain open after decoder exceptions.
How an attack unfolds
An unauthenticated peer initiates a valid RESP array, sends a bulk string child, then transmits a nested array header exceeding the configured maxElements limit. Netty raises an exception in decodeRedisArrayHeader but retains the partial aggregate; subsequent messages continue to be appended to the stale structure while the channel stays alive.
How to fix it
Upgrade to Netty 4.1.136.Final or 4.2.16.Final. Ensure channels are closed or reset on decoder exceptions and review any custom Redis codec configurations that increase maxElements or maxNestedArrayDepth.
How to confirm the fix worked
Confirm the running Netty version is at least 4.1.136.Final or 4.2.16.Final. Test that sending an oversized nested array header now results in immediate state cleanup and channel closure or reset.
Typical attack path
- Establish a TCP connection to a Netty-based Redis handler
- Send a well-formed RESP array header followed by a bulk string
- Send a nested array header sized to exceed maxElements
- Observe decoder exception while channel remains open
- Continue sending messages that are absorbed into the retained aggregate
How to detect it
Search application and Netty logs for DecoderException occurrences during RESP array decoding, followed by continued inbound traffic on the same channel. Correlate with memory growth metrics on services exposing Redis codecs.
What your security team should do
- Upgrade all Netty dependencies to 4.1.136.Final or 4.2.16.Final within the next sprint
- Add channel-close logic on any DecoderException in Redis handlers
- Review and tighten maxElements limits where feasible
- Monitor for increased memory usage on Redis-handling services
The record
Netty is an asynchronous, event-driven network application framework. Prior to 4.1.136.Final and 4.2.16.Final, the RedisArrayAggregator Redis codec clears retained partial aggregate state when the maxNestedArrayDepth limit is exceeded, but it does not clear the same state when the sibling maxElements limit is exceeded. A peer can start a valid RESP array, send a bulk string child, then send a nested array header longer than the configured maxElements. Netty throws a decoder exception in decodeRedisArrayHeader, but the existing partial aggregate remains retained in the handler. If the application leaves the channel alive after the exception, later messages are still consumed into the pre-error aggregate, allowing an unauthenticated peer to keep attacker-controlled aggregate state alive across a security-limit exception and pin retained pooled buffers. This issue is fixed in versions 4.1.136.Final and 4.2.16.Final.
Affected packages
| Ecosystem | Package | Introduced | Fixed |
|---|
Related vulnerabilities
- CVE-2026-120678 A memory management flaw in the MongoDB C Driver's handling of compressed responses may… CWE-401
- CVE-2026-121512 Memory Leak with Amplification in µD3TN BPv6 EID Reference Handling allows… CWE-401
- CVE-2026-120440 QuickJS-NG before 0.16.0 contains a memory leak vulnerability in js_atomics_store() in… CWE-401
- CVE-2026-119286 GraphQL-core is a Python port of the GraphQL.js reference implementation. CWE-401
- CVE-2026-116157 ImageMagick before 7.1.2-33 contains a memory leak vulnerability in PerlMagick that fails… CWE-401
- CVE-2026-116158 ImageMagick before 7.1.2-33 contains a memory leak vulnerability in the magick compare… CWE-401
- CVE-2026-116159 ImageMagick before 6.9.13-58 and 7.x before 7.1.2-33 contains a memory leak in the… CWE-401
- CVE-2026-116156 ImageMagick before 6.9.13-58 and 7.x before 7.1.2-33 contains a memory leak caused by a… CWE-401