Skip to main content

zstd-jni EUVDEUVD-2026-75634

| CVE-2026-89045 MEDIUM
Loop with Unreachable Exit Condition (Infinite Loop) (CWE-835)
2026-09-10 VulnCheck GHSA-r8cw-jvfx-h6x5
5.1
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain

  1. Access
    Identify application API that relays user-controlled length to stream read
  2. Delivery
    Supply negative integer as len parameter
  3. Exploit
    ZstdInputStreamNoFinalizer.read() enters infinite loop
  4. Execution
    Synchronized monitor held indefinitely
  5. Persist
    All threads awaiting stream access blocked
  6. Impact
    Denial of service for stream consumers

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Loop termination conditions
MITRE ATT&CK

1 technique across 1 tactic: Impact

The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up.

Exploitation Conditions

The attacker must control or influence the len argument passed to the three-argument form of ZstdInputStreamNoFinalizer.read(byte[], int offset, int len) or the internal readInternal() method. This requires either: (1) direct local code execution in the JVM where an application passes attacker-supplied length values to the stream, or (2) a higher-level network API boundary that propagates user-controlled read-length values into the zstd stream reader without sanitization. There is no authentication requirement imposed by the library itself; whether authentication is needed depends entirely on the consuming application's API. Exploitation is limited to the specific stream instance - other independent streams and the broader JVM are unaffected. The AV:L vector in the provided CVSS 4.0 score reflects the typical case where the attacker influences local API parameters, though network-exposed services that relay length parameters are also potentially vulnerable.

Impact

The CVSS 4.0 score of 5.1 with vector AV:L/AC:L/AT:N/PR:N/UI:N/VA:L accurately captures a moderate, locally-triggered availability issue. The attack requires an attacker to supply or influence the len argument reaching ZstdInputStreamNoFinalizer.read(), which constrains the threat model - it is not a trivially remote exploit. However, zstd-jni is a dependency in high-value frameworks including Apache Spark and Apache Kafka; in multi-tenant or multi-threaded server environments where user-controlled byte counts are proxied into stream reads, the local-vector assessment may understate network-reachable risk. Impact is scoped to the specific stream instance: the JVM and other streams continue normally, limiting blast radius. No EPSS score is provided, no CISA KEV listing exists, and no public exploit has been identified, all consistent with the moderate score. The main real-world concern is availability in pipelines where stream starvation would propagate as a hung worker thread, potentially causing cascading timeouts.

Exploit ScenarioDerived

An attacker with access to a networked service that reads user-specified byte counts from a zstd-compressed stream passes a negative integer as the length parameter. The stream's read() method enters an infinite loop while holding the Java synchronized monitor, blocking all competing threads in the service's thread pool that attempt to access the same stream - effectively hanging that stream's processing pipeline until the JVM is restarted or the blocked thread is interrupted externally.

This Month Plan within 30 days. Why: MEDIUM severity (CVSS 4.0-6.9).
Patch available 0.1% exploitation probability (EPSS)

Get an e-mail when this CVE is exploited, patched or re-scored. Free account.

Alert me

AnalysisAIv1 – Sep 10, 2026

Infinite-loop denial of service in zstd-jni versions 1.4.8-4 through 1.5.7-13 allows thread starvation by passing negative length values to ZstdInputStreamNoFinalizer.read(). Because the method is declared synchronized, the spinning loop holds the stream monitor indefinitely, blocking every other thread that attempts to call any synchronized method on the same stream object. Fixed in v1.5.7-14; no public exploit identified at time of analysis.

RemediationAI

Upgrade zstd-jni to version 1.5.7-14 or later, which adds explicit len < 0 validation guards in both the public read() and internal readInternal() methods of ZstdInputStreamNoFinalizer, and analogous checks for srcPosition and srcSize in Zstd.java. The fix commit is dd08685ef913a32e76fb27f43470035c06758646; see the GitHub advisory at https://github.com/luben/zstd-jni/security/advisories/GHSA-9jx2-gfp9-phfm. If immediate library upgrade is blocked by dependency constraints, a compensating control is to add an application-layer guard that rejects negative len values before calling ZstdInputStreamNoFinalizer.read() - this requires modifying every call site in the consuming application, which is error-prone; upgrade is strongly preferred. No other configuration or feature toggle can prevent the vulnerability in affected versions.

Affected VersionsENISA

zstd-jni 1.4.8-4 <1.5.7-14

Affected Packages

euvd zstd_jni fix: 1.5.7-14

Source: OSV (Open Source Vulnerabilities)

Affects your stack

Affects 1 package in euvd

Checking this CVE against your own stacks and servers is part of the Basic plan and up.

Technical ContextAI · show details

zstd-jni is a Java Native Interface (JNI) binding for Facebook's Zstandard (zstd) compression library, maintained by Luben Radoev (CPE: cpe:2.3:a:luben:zstd-jni). The vulnerable class, ZstdInputStreamNoFinalizer, implements a synchronized Java InputStream over zstd decompression. CWE-835 (Loop with Unreachable Exit Condition) applies because the three-argument read(byte[], int offset, int len) method did not validate negative len values before entering its internal read loop. In Java, signed integer arithmetic means a negative len fails to trigger the pre-existing bounds check (offset < 0 || len > dst.length - offset) in a way that could cause the loop to spin without ever satisfying a valid exit condition. The commit diff (dd08685) confirms two missing guards in ZstdInputStreamNoFinalizer.java at the public and internal readInternal entry points, plus analogous missing checks for srcPosition and srcSize in Zstd.java.

Know when Zstd Jni gets its next vulnerability

  • Watch products and get an email when something new is published
  • Check this CVE against your own stack and servers
  • Exploit and PoC references, threat intelligence from 22 sources

No credit card · 7-day full trial

Severity by source

Vendor (VulnCheck) PRIMARY 5.1 MEDIUM
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
vuln.today AI 4.0 MEDIUM

AV:L follows provided CVSS 4.0; attacker must reach the stream read API with a controlled length parameter; only stream availability is impacted.

3.1 AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
4.0 AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:N/VA:L/SC:N/SI:N/SA:N
SUSE 4.0 MEDIUM
AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Red Hat 4.0 MEDIUM

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

Attack Vector
Local
Attack Complexity
Low
Attack Requirements
None
Privileges Required
None
User Interaction
None
Vulnerable system: Confidentiality
None
Vulnerable system: Integrity
None
Vulnerable system: Availability
Low
Subsequent system: Confidentiality
None
Subsequent system: Integrity
None
Subsequent system: Availability
None

DescriptionCVE.org

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.

Threat Intelligence Overview

EPSS Score
0.1%
Top 98% exploitable
Prevalence
Medium
used in Apache Spark, Kafka, and major big-data frameworks
Data Quality
6 sources
Confidence: High

How this decision was reached

The engine reads each signal below and applies a fixed list of rules from top to bottom. The first rule that matches sets the recommended action – like a statement, every line is shown.

SignalValue
Severity MEDIUM
CISA KEV No
Public POC No
EPSS 0.1%
Patch available Yes
Active threat No
Deciding rule
MEDIUM severity (CVSS 4.0-6.9)
What every action level means
Emergency Immediate action required. Criteria: CRITICAL + in CISA KEV (actively exploited) without patch, OR CRITICAL + EPSS > 30% without patch, OR CRITICAL + active threat signals without patch.
Act Now Prioritize within 24-48h. Criteria: in KEV with patch available, OR CRITICAL + public POC, OR HIGH + EPSS > 10%, OR CRITICAL + active threat, OR any CRITICAL severity.
This Week Schedule remediation this week. Criteria: HIGH severity (CVSS 7.0-8.9). Patch within normal change window.
This Month Plan within 30 days. Criteria: MEDIUM severity (CVSS 4.0-6.9), lower exploitation probability. Include in regular patch cycle.
Monitor Track and reassess. Criteria: LOW severity (CVSS 0.1-3.9), minimal exploitation risk. No immediate action needed.

SSVC AssessmentENISA

SSVC Decision· derived
Defer
Exploitation· derived
None
System Exposure· derived
Small
Automatable· derived
No
Human Impact· derived
Medium

Priority Score

26
Low Medium High Critical
KEV: 0
EPSS: 0
CVSS: +26
PoC: 0
Weaponized: 0
Threat intel: 0
Gov advisory: 0

Attack Technique

Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.

Vendor StatusVendor

SUSE

Severity: Moderate

This site uses cookies essential for authentication and security. No tracking or analytics cookies are used. Privacy Policy