Skip to main content
Vulnerability Database/CVE-2026-106450

CVE-2026-106450: LZ4 Java DOS Vulnerability

CVE-2026-106450 is a denial of service flaw in yawkat LZ4 Java that allows attackers to trigger excessive memory allocation through crafted input streams. This post explains its impact, affected versions, and mitigation steps.

Published:

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

CVE-2026-106450 Overview

CVE-2026-106450 is a resource exhaustion vulnerability in yawkat LZ4 Java, a library that provides LZ4 compression for Java applications. The flaw resides in net.jpountz.lz4.LZ4FrameInputStream.readHeader(), which allocates two new 4 MiB block buffers each time a maximum-block-size frame header is parsed. In the default concatenated-frame mode, an attacker can submit a crafted stream containing many minimal empty frames. Each 11 input bytes triggers roughly 8 MiB of memory allocation, consuming CPU and garbage-collection time without producing decompressed output. Standard decompressed-size limits do not mitigate the issue. The vulnerability is fixed in version 1.11.4.

Critical Impact

Attacker-controlled LZ4 frame streams can force disproportionate heap allocations and garbage-collection pressure, degrading or denying service to Java applications that decompress untrusted input through LZ4FrameInputStream.

Affected Products

  • yawkat LZ4 Java versions prior to 1.11.4
  • Applications using net.jpountz.lz4.LZ4FrameInputStream in default concatenated-frame mode
  • Services that accept untrusted LZ4-framed input for decompression

Discovery Timeline

  • 2026-10-06 - CVE-2026-106450 published to NVD
  • 2026-10-07 - Last updated in NVD database

Technical Details for CVE-2026-106450

Vulnerability Analysis

The vulnerability is an uncontrolled resource consumption flaw [CWE-770] in the LZ4 frame decoder. When LZ4FrameInputStream.readHeader() processes a frame header advertising the maximum block size, it eagerly allocates two 4 MiB buffers for the compressed and decompressed block data. In concatenated-frame mode, the stream reader loops across successive frames and repeats this allocation for every frame boundary encountered.

An attacker can exploit this behavior by sending a stream composed of minimal, empty frames. Each frame is approximately 11 bytes on the wire yet triggers roughly 8 MiB of Java heap allocation. The stream yields no decompressed output, so protections that cap the decompressed size never trigger. Memory pressure, garbage-collection pauses, and CPU time grow in proportion to the input length, which can degrade or stop service on affected Java applications.

Root Cause

The root cause is eager, unbounded allocation inside the frame header handler combined with the lack of amortization across concatenated frames. Buffers are allocated per header rather than reused across frames of equivalent block size, and no accounting enforces an upper bound on cumulative allocation driven by attacker-controlled frame counts.

Attack Vector

Exploitation requires only the ability to deliver untrusted LZ4-framed bytes to code that invokes LZ4FrameInputStream in its default mode. Typical delivery paths include HTTP request bodies, message queue payloads, file uploads, and inter-service RPC that accepts LZ4-compressed content. No authentication or user interaction is required when the decompression endpoint is network-reachable. The readSingleFrame mode is not affected because it does not iterate across concatenated frames.

java
// Patch excerpt from LZ4FrameOutputStream.java (v1.11.4)
// Source: https://github.com/yawkat/lz4-java/commit/2acc0ec1ead226145c62a817c18c8ed49233a283
private boolean finished = false;

public FrameInfo(FLG flg, BD bd) {
  this(flg, bd, flg.isEnabled(FLG.Bits.CONTENT_CHECKSUM)
      ? XXHashFactory.fastestInstance().newStreamingHash32(0) : null);
}

/**
 * @param streamHash the hash to use for the content checksum, must be in its initial state.
 *                   Must be non-null if the content checksum is enabled
 */
FrameInfo(FLG flg, BD bd, StreamingXXHash32 streamHash) {
  this.flg = flg;
  this.bd = bd;
  this.streamHash = streamHash;
}

Source: GitHub Commit 2acc0ec. The fix refactors frame construction so that stream state can be shared and allocation behavior controlled across concatenated frames.

Detection Methods for CVE-2026-106450

Indicators of Compromise

  • Sudden spikes in Java heap usage or garbage-collection pause times on services that decompress LZ4-framed input
  • Repeated inbound payloads where the on-wire size is small (tens of bytes to a few kilobytes) but memory consumption scales rapidly
  • Thread stacks showing allocation inside net.jpountz.lz4.LZ4FrameInputStream.readHeader during incidents

Detection Strategies

  • Inventory Java applications for the lz4-java dependency at versions earlier than 1.11.4 using software composition analysis
  • Instrument decompression entry points to log input byte counts, decompressed byte counts, and elapsed time per request
  • Alert on sessions that produce zero decompressed bytes while consuming significant CPU or heap

Monitoring Recommendations

  • Track JVM metrics for allocation rate, old-generation occupancy, and GC pause duration on services exposed to untrusted compressed input
  • Correlate anomalous GC activity with request logs for endpoints that accept LZ4 payloads
  • Forward JVM and application telemetry into a centralized analytics platform to baseline normal decompression workloads and surface deviations

How to Mitigate CVE-2026-106450

Immediate Actions Required

  • Upgrade net.jpountz.lz4:lz4-java (yawkat fork) to version 1.11.4 or later across all affected services
  • Audit code paths that construct LZ4FrameInputStream on untrusted input and inventory dependencies that embed the vulnerable library transitively
  • Where upgrade is not immediately possible, enforce strict input-size limits upstream of the decompressor

Patch Information

The issue is fixed in yawkat lz4-java 1.11.4. See the GitHub Release v1.11.4 and the GitHub Security Advisory GHSA-gm45-99xc-r7wv for release notes and advisory details. The patch commit is available at GitHub Commit 2acc0ec.

Workarounds

  • Switch decoding to readSingleFrame mode where the application protocol permits a single frame, since this mode is not affected
  • Cap the maximum number of bytes read from any untrusted LZ4 stream before invoking the decoder
  • Place decompression behind a timeout and a per-request memory budget enforced by the application server or sidecar
bash
# Maven dependency update (pom.xml)
# <dependency>
#   <groupId>net.jpountz.lz4</groupId>
#   <artifactId>lz4-java</artifactId>
#   <version>1.11.4</version>
# </dependency>

# Gradle dependency update (build.gradle)
# implementation 'net.jpountz.lz4:lz4-java:1.11.4'

# Verify resolved version
mvn dependency:tree | grep lz4-java
./gradlew dependencies | grep lz4-java

Disclaimer: This content was generated using AI. While we strive for accuracy, please verify critical information with official sources.

Sources: National Vulnerability Database, CISA KEV, Exploit-DB

Experience the Most Advanced Cybersecurity Platform

See how the world’s most intelligent, autonomous cybersecurity platform can protect your organization today and into the future.