CVE-2026-42583

Netty: Lz4FrameDecoder resource exhaustion

Published May 13, 2026 CVSS 3.1 · 7.5 High EPSS < 1% KEV · Not listed
Description
Netty is an asynchronous, event-driven network application framework. Prior to 4.2.13.Final and 4.1.133.Final, Lz4FrameDecoder allocates a ByteBuf of size decompressedLength (up to 32 MB per block) before LZ4 runs. A peer only needs a 21-byte header plus compressedLength payload bytes - 22 bytes if compressedLength == 1 - to force that allocation. This vulnerability is fixed in 4.2.13.Final and 4.1.133.Final.

Analysis

AI-generated

Technical impact

Netty’s Lz4FrameDecoder can pre‑allocate a ByteBuf sized according to the decompressed length of an incoming block, which can reach up to 32 MB. An attacker can trigger this allocation by sending a minimal 21‑byte header and a compressed payload, forcing the server to reserve the large buffer before decompression occurs. This behavior enables an attacker to deplete memory resources and disrupt the application’s availability without any code execution. The weakness is a Classic input validation error (CWE‑400) combined with a loss of resource controls (CWE‑770).

Affected Systems

The vulnerability affects the Netty framework and its codec modules – io.netty:netty-codec, io.netty:netty-codec-compression, and netty:netty – in all releases older than 4.2.13.Final and 4.1.133.Final. Applications that use these versions and that employ the Lz4FrameDecoder are susceptible.

Risk and Exploitability

The CVSS score of 7.5 points to a high severity potential. Because no EPSS value is provided and the vulnerability is not listed in CISA KEV, the current known exploitation likelihood is undetermined, but the remote nature of the attack – any network connection to a Netty service – offers an ample attack surface. An attacker only needs to send a small crafted packet over the network to trigger the allocation, making the exploit straightforward to perform once the vulnerable version is identified.

Remediation

No solution or workaround provided in the CVE record.

OpenCVE Recommended Actions

  • Upgrade the Netty library to 4.2.13.Final or later, or to 4.1.133.Final or later if your application relies on the 4.1 line.
  • If an immediate upgrade is not possible, restrict incoming traffic to the Netty endpoints using firewall rules or rate limiting to reduce the opportunity for repeated large allocations.
  • Rethink usage of the Lz4FrameDecoder by wrapping it in custom logic that caps decoded buffer sizes at a safe threshold and rejects frames exceeding that limit, thereby enforcing resource constraints and mitigating the CWE‑770 vulnerability.

Generated by OpenCVE AI on May 13, 2026 at 19:39 UTC.

Tracking

Sign in to view the affected projects.

Advisories

Source ID Title
Github GHSA Github GHSA GHSA-mj4r-2hfc-f8p6 Netty Lz4FrameDecoder is vulnerable to resource exhaustion
History
Type Values Removed Values Added
CPEs cpe:2.3:a:netty:netty:*:*:*:*:*:*:*:*
Type Values Removed Values Added
Metrics ssvc

{'options': {'Automatable': 'yes', 'Exploitation': 'poc', 'Technical Impact': 'partial'}, 'version': '2.0.3'}

Type Values Removed Values Added
First Time appeared Io.netty
Io.netty netty-codec
Io.netty netty-codec-compression
Netty
Netty netty
Vendors & Products Io.netty
Io.netty netty-codec
Io.netty netty-codec-compression
Netty
Netty netty
Type Values Removed Values Added
Description Netty is an asynchronous, event-driven network application framework. Prior to 4.2.13.Final and 4.1.133.Final, Lz4FrameDecoder allocates a ByteBuf of size decompressedLength (up to 32 MB per block) before LZ4 runs. A peer only needs a 21-byte header plus compressedLength payload bytes - 22 bytes if compressedLength == 1 - to force that allocation. This vulnerability is fixed in 4.2.13.Final and 4.1.133.Final.
Title Netty: Lz4FrameDecoder resource exhaustion
Weaknesses CWE-400
CWE-770
References
Metrics cvssV3_1

{'score': 7.5, 'vector': 'CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H'}

Weaknesses
  • CWE-400

    Uncontrolled Resource Consumption

  • CWE-770

    Allocation of Resources Without Limits or Throttling

Sources

Status
PUBLISHED
Assigner
GitHub_M
Published
Updated
May 14, 2026, 3:41 PM
Reserved
Apr 28, 2026, 5:26 PM
Status
Analyzed
Published
May 13, 2026, 7:17 PM
Modified
Oct 26, 2026, 5:10 PM