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.
Published: 2026-05-13
Score: 7.5 High
EPSS: < 1% Very Low
KEV: No
Impact: n/a
Action: n/a
AI Analysis

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.

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

Remediation

No vendor fix or workaround currently provided.

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

Mon, 18 May 2026 12:30:00 +0000

Type Values Removed Values Added
CPEs cpe:2.3:a:netty:netty:*:*:*:*:*:*:*:*

Thu, 14 May 2026 16:30:00 +0000

Type Values Removed Values Added
Metrics ssvc

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


Thu, 14 May 2026 15:00:00 +0000

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

Wed, 13 May 2026 18:30:00 +0000

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'}


Subscriptions

Io.netty Netty-codec Netty-codec-compression
Netty Netty
cve-icon MITRE

Status: PUBLISHED

Assigner: GitHub_M

Published:

Updated: 2026-05-14T15:41:07.253Z

Reserved: 2026-04-28T17:26:12.086Z

Link: CVE-2026-42583

cve-icon Vulnrichment

Updated: 2026-05-14T15:40:59.151Z

cve-icon NVD

Status : Analyzed

Published: 2026-05-13T19:17:23.903

Modified: 2026-05-18T12:22:15.037

Link: CVE-2026-42583

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-05-14T14:34:06Z

Weaknesses