CVE-2026-89045

zstd-jni 1.4.8-4 through 1.5.7-13 Denial of Service via Negative Length

Published Sep 10, 2026 CVSS 4.0 · 5.1 Medium EPSS < 1% KEV · Not listed
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.

Analysis

AI-generated

Technical 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.

Remediation

No solution or workaround provided in the CVE record.

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 available
History
Type Values Removed Values Added
Metrics ssvc

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

Type Values Removed Values Added
First Time appeared Luben
Luben zstd-jni
Vendors & Products Luben
Luben zstd-jni
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'}

Weaknesses
  • CWE-835

    Loop with Unreachable Exit Condition ('Infinite Loop')

Sources

Status
PUBLISHED
Assigner
VulnCheck
Published
Updated
Sep 15, 2026, 2:54 PM
Reserved
Sep 10, 2026, 4:45 PM
Status
Awaiting Analysis
Published
Sep 10, 2026, 6:18 PM
Modified
Sep 15, 2026, 3:17 PM
Severity
Moderate
Public date
Sep 10, 2026, 5:39 PM