Cloudanix VulnDB

CVE-2026-56818

Medium · 6.5

CVSS

6.5

EPSS

0.5%

Published

Aug 7, 2026

CISA due date

—

Cloudanix analysis

Next patch cycle SSVC: Track

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

  1. Establish a TCP connection to a Netty-based Redis handler
  2. Send a well-formed RESP array header followed by a bulk string
  3. Send a nested array header sized to exceed maxElements
  4. Observe decoder exception while channel remains open
  5. 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