Description
zstd-jni versions 1.4.8-4 through 1.5.7-13 fail to validate negative length parameters in ZstdInputStreamNoFinalizer.read(), allowing attackers to trigger infinite loops. Attackers can pass negative length values to cause the read method to spin indefinitely while holding the stream monitor, blocking all other threads from accessing the stream.
Published: 2026-09-10
Score: 5.1 Medium
EPSS: < 1% Very Low
KEV: No
Impact: Denial of Service
Action: Patch
AI Analysis

Impact

zstd-jni versions 1.4.8-4 through 1.5.7-13 fail to validate negative length parameters in the ZstdInputStreamNoFinalizer.read() method. This oversight allows attackers to supply negative length values, causing the read loop to execute indefinitely while holding the stream monitor. The result is a denial of service, as the blocked monitor prevents other threads from accessing the stream and may exhaust system resources.

Affected Systems

The vulnerability affects the zstd-jni library distributed by the luben project. All releases from 1.4.8-4 up to and including 1.5.7-13 are impacted. Users relying on these versions in Java applications that decompress or decompress using ZstdInputStreamNoFinalizer should be aware of the risk.

Risk and Exploitability

The CVSS score of 5.1 indicates moderate severity. No EPSS score is provided, and the vulnerability is not listed in the CISA KEV catalog. The attack vector involves an adversary controlling input to the read method or otherwise manipulating the stream to provide a negative length. If successful, the attacker can force an infinite loop that monopolizes the stream monitor, blocking other threads. The lack of a pre-existing patch and limited exploitation guidance mean the exploitation likelihood remains uncertain but is feasible in environments with untrusted data streams.

Generated by OpenCVE AI on September 11, 2026 at 00:28 UTC.

Remediation

No vendor fix or workaround currently provided.

OpenCVE Recommended Actions

  • Upgrade to zstd-jni 1.5.7-14 or later, where input validation has been added.
  • If an immediate upgrade is not possible, avoid passing untrusted input to ZstdInputStreamNoFinalizer.read() or wrap the call in a timeout mechanism that can break the infinite loop and release the monitor.
  • Implement application-level thread health monitoring to detect and recover from blocked threads; consider switching to an alternative decompression library that enforces bounds on input lengths.

Generated by OpenCVE AI on September 11, 2026 at 00:28 UTC.

Tracking

Sign in to view the affected projects.

Advisories

No advisories yet.

History

Fri, 11 Sep 2026 08:00:00 +0000

Type Values Removed Values Added
First Time appeared Luben
Luben zstd-jni
Vendors & Products Luben
Luben zstd-jni

Thu, 10 Sep 2026 17:45:00 +0000

Type Values Removed Values Added
Description zstd-jni versions 1.4.8-4 through 1.5.7-13 fail to validate negative length parameters in ZstdInputStreamNoFinalizer.read(), allowing attackers to trigger infinite loops. Attackers can pass negative length values to cause the read method to spin indefinitely while holding the stream monitor, blocking all other threads from accessing the stream.
Title zstd-jni 1.4.8-4 through 1.5.7-13 Denial of Service via Negative Length
Weaknesses CWE-835
References
Metrics cvssV3_1

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

cvssV4_0

{'score': 5.1, 'vector': 'CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N'}


cve-icon MITRE

Status: PUBLISHED

Assigner: VulnCheck

Published:

Updated: 2026-09-10T17:39:34.866Z

Reserved: 2026-09-10T16:45:18.503Z

Link: CVE-2026-89045

cve-icon Vulnrichment

No data.

cve-icon NVD

Status : Awaiting Analysis

Published: 2026-09-10T18:18:16.410

Modified: 2026-09-10T19:54:25.810

Link: CVE-2026-89045

cve-icon Redhat

No data.

cve-icon OpenCVE Enrichment

Updated: 2026-09-11T07:45:06Z

Weaknesses
  • CWE-835

    Loop with Unreachable Exit Condition ('Infinite Loop')