Advisory Database
  • Advisories
  • Dependency Scanning
  1. maven
  2. ›
  3. io.netty/netty-codec-redis
  4. ›
  5. CVE-2026-56818

CVE-2026-56818: Netty: RedisArrayAggregator max-elements failure leaves retained partial aggregate state

August 7, 2026

RedisArrayAggregator 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, 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. The supplied PoV proves both the retained ByteBuf reference and the stale parser state continuation.

References

  • github.com/advisories/GHSA-p9jm-q85p-7mcp
  • github.com/netty/netty/commit/5b68c61f37aa4a3045cba624cbea239655c9003b
  • github.com/netty/netty/commit/bb2ff68a1fb71cb4b0eb9a9e17b66c52aff680c6
  • github.com/netty/netty/pull/17065
  • github.com/netty/netty/security/advisories/GHSA-p9jm-q85p-7mcp
  • nvd.nist.gov/vuln/detail/CVE-2026-56818

Code Behaviors & Features

Detect and mitigate CVE-2026-56818 with GitLab Dependency Scanning

Secure your software supply chain by verifying that all open source dependencies used in your projects contain no disclosed vulnerabilities. Learn more about Dependency Scanning →

Affected versions

All versions before 4.1.136, all versions starting from 4.2.0-Final before 4.2.16

Fixed versions

  • 4.1.136
  • 4.2.16

Solution

Upgrade to versions 4.1.136, 4.2.16 or above.

Impact 6.5 MEDIUM

CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:L/A:L

Learn more about CVSS

Weakness

  • CWE-401: Missing Release of Memory after Effective Lifetime
  • CWE-703: Improper Check or Handling of Exceptional Conditions

Source file

maven/io.netty/netty-codec-redis/CVE-2026-56818.yml

Spotted a mistake? Edit the file on GitLab.

  • Site Repo
  • About GitLab
  • Terms
  • Privacy Statement
  • Contact

Page generated Sat, 08 Aug 2026 00:18:51 +0000.