Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify application API that relays user-controlled length to stream read
-
DeliverySupply negative integer as len parameter
-
ExploitZstdInputStreamNoFinalizer.read() enters infinite loop
-
ExecutionSynchronized monitor held indefinitely
-
PersistAll threads awaiting stream access blocked
-
ImpactDenial 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
Affected Packages
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
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
AV:L follows provided CVSS 4.0; attacker must reach the stream read API with a controlled length parameter; only stream availability is impacted.
AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:L
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
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
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.
What every action level means
SSVC AssessmentENISA
Priority Score
Attack Technique
Denial of Service attacks render applications or systems unavailable by overwhelming resources or triggering failure conditions.
Use-after-free in zstd-jni's Dictionary Sharing component allows remote attackers to corrupt native heap memory through
Out-of-bounds read in zstd-jni versions 1.2.0 through 1.5.7-13 allows attackers who can supply dictionary constructor pa
Out-of-bounds read in zstd-jni versions 1.2.0 through 1.5.7-13 exposes JVM-based applications to service termination and
Out-of-bounds read in zstd-jni versions 1.5.5-6 through 1.5.7-13 exposes JVM-based applications to memory disclosure or
Out-of-bounds memory reads in zstd-jni versions 1.1.1 through 1.5.7-13 allow unauthenticated remote attackers to crash t
Out-of-bounds memory access in zstd-jni versions 1.3.3-1 through 1.5.7-13 enables unauthenticated network-accessible att
Use-after-free in zstd-jni versions 1.3.8-4 through 1.5.7-13 allows attackers to trigger silent data corruption or JVM c
Use-after-free in zstd-jni versions 1.3.8-4 through 1.5.7-13 allows callers to invoke setDict, setLongMax, setLevel, and
EUVD-2026-75634
GHSA-r8cw-jvfx-h6x5
NVD
CVE.org
EPSS
VulDB
Exploit-DB