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-109395 Overview
CVE-2026-109395 is an out-of-bounds memory access vulnerability [CWE-125] in the Ning compress-lzf Java library versions before 1.2.0. The flaw resides in the sun.misc.Unsafe-based UnsafeChunkDecoder, which fails to validate back-references and literal runs when decompressing LZF streams. Any application using the default LZFDecoder on untrusted input can be targeted with a crafted LZF stream. Successful exploitation lets attackers leak unrelated Java Virtual Machine (JVM) heap memory into decompressed output or crash the JVM process.
Critical Impact
Remote, unauthenticated attackers can disclose JVM heap memory contents or trigger a denial of service against any Java service that decompresses attacker-supplied LZF data.
Affected Products
- Ning compress-lzf versions prior to 1.2.0
- Java applications invoking the default LZFDecoder on untrusted input
- Downstream libraries and frameworks that embed compress-lzf for LZF decompression
Discovery Timeline
- 2026-10-20 - CVE-2026-109395 published to the National Vulnerability Database (NVD)
- 2026-10-20 - Last updated in NVD database
Technical Details for CVE-2026-109395
Vulnerability Analysis
The compress-lzf library implements LZF, a dictionary-based compression format that encodes data as literal runs and back-references into previously decoded output. The UnsafeChunkDecoder class uses sun.misc.Unsafe to perform fast, bounds-free memory copies between the input and output buffers. Because the decoder trusts length and offset fields from the compressed stream, a malformed chunk header can direct the copy loop to read outside the input buffer or write past the end of the output buffer. The read path exposes adjacent JVM heap memory, which is then written into the decompressed output returned to the caller. The write path can corrupt heap state and terminate the JVM.
Root Cause
The decoder omits bounds checks on back-reference offsets and literal-run lengths before issuing Unsafe.copyMemory operations. See the pre-patch logic in UnsafeChunkDecoder.java. The fix in pull request #68 adds the missing validation.
Attack Vector
An attacker submits a crafted LZF-compressed payload to any network-exposed endpoint that decompresses it with the default LZFDecoder. No authentication or user interaction is required. The attack is applicable wherever LZF-encoded data crosses a trust boundary, including message queues, caching layers, RPC frameworks, and file ingestion pipelines.
# Patch artifacts from commit 06bdc37 (bounds-checks)
+# Mark all Jazzer inputs as binary, to avoid bytes in them being misinterpreted as line terminators and being
+# changed on checkout
+/src/test/resources/**/*Inputs/** binary
# Jazzer fuzzing corpus
+/.cifuzz-corpus/
Source: Ning compress commit 06bdc37. These .gitattributes and .gitignore additions accompany the bounds-check fix and show that Jazzer-based fuzzing was integrated to prevent regression. The upstream repository is tracked at ning/compress.
Detection Methods for CVE-2026-109395
Indicators of Compromise
- JVM crashes with SIGSEGV or InternalError originating from com.ning.compress.lzf.impl.UnsafeChunkDecoder
- Decompressed LZF output containing high-entropy data that does not match expected application schemas
- Unexpected OutOfMemoryError or garbage-collection anomalies in services that accept LZF streams
Detection Strategies
- Inventory Java dependencies using Software Composition Analysis (SCA) tooling and flag any com.ning:compress-lzf artifact below version 1.2.0
- Instrument LZF decode entry points with structured logging that captures input length, source identity, and exception stack traces
- Correlate crash dumps and hs_err_pid logs with recent inbound traffic to identify malformed LZF submissions
Monitoring Recommendations
- Alert on repeated JVM restarts in services that ingest compressed payloads
- Monitor outbound responses for anomalous size increases that may indicate heap data leaking through decompressed output
- Track upstream advisories through the VulnCheck advisory and the GitHub Security Lab discussion
How to Mitigate CVE-2026-109395
Immediate Actions Required
- Upgrade com.ning:compress-lzf to version 1.2.0 or later across all build manifests and lockfiles
- Audit transitive dependencies, since compress-lzf is frequently pulled in by caching and messaging libraries
- Restrict exposure of LZF decode endpoints to authenticated and trusted callers until patching is complete
Patch Information
The fix is delivered via pull request #68 and merged in commit 06bdc37. Rebuild applications with compress-lzf1.2.0+ and redeploy. Verify the upgrade by inspecting resolved dependency versions in Maven or Gradle output.
Workarounds
- Replace the default LZFDecoder with the safe ChunkDecoder implementation that does not rely on sun.misc.Unsafe
- Enforce an upper bound on accepted LZF payload size at the network or application boundary
- Reject LZF inputs from untrusted sources until the library upgrade is validated in production
# Maven dependency pin to the fixed release
mvn dependency:tree -Dincludes=com.ning:compress-lzf
mvn versions:use-dep-version -Dincludes=com.ning:compress-lzf -DdepVersion=1.2.0 -DforceVersion=true
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

