Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify service accepting zstd-compressed ByteBuffer input
-
DeliveryCraft frame with src_offset near Integer.MIN_VALUE
-
ExploitSubmit malformed frame to JNI frame-size method
-
ExecutionSigned integer wraparound bypasses bounds check
-
PersistNative OOB read executes
-
ImpactJVM crash (DoS) or unintended memory data returned
Vulnerability Assessment
| Weakness |
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Integer overflow checks
MITRE ATT&CK
1 technique across 1 tactic: Execution The technique list with ATT&CK links and the kill-chain view is part of the Basic plan and up. |
| Exploitation Conditions | The application must invoke one of three specific direct-ByteBuffer JNI methods: findDirectByteBufferFrame, decompressedDirectByteBuffer (size query), or getDirectByteBufferFrame (count query) on input controlled by the attacker. Applications using only byte-array variants of zstd operations are not affected by this specific code path. The attacker must be able to supply a crafted zstd frame whose offset and/or size fields, when interpreted as 32-bit signed integers in jni_zstd.c, produce a negative value (e.g., src_offset near Integer.MIN_VALUE). No authentication, special platform, or non-default configuration is required on the affected application beyond its normal use of the direct ByteBuffer API - any networked Java service that processes attacker-supplied compressed data through this API is exposed. The limiting factor is whether the application exposes these specific ByteBuffer-based methods to untrusted input, which depends on the integration pattern rather than any security configuration. |
| Impact | The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H) reflects real-world risk accurately: network-reachable applications that accept and decompress zstd-compressed data using direct ByteBuffer APIs are exploitable without authentication or user interaction. The high availability impact (VA:H) is the dominant concern - a single malformed frame can terminate the JVM process, making this a reliable denial-of-service primitive against services built on affected zstd-jni versions. The limited confidentiality impact (VC:L) represents the secondary risk: under favorable conditions, the OOB read may return frame-size-structured data from adjacent or unmapped memory regions, but exploitation for targeted data exfiltration would require significant attacker control over JVM heap layout and is not straightforward. No public exploit code and no CISA KEV listing are present, and EPSS data is not available in the provided intelligence. zstd-jni is a transitive dependency in widely deployed JVM platforms including Apache Kafka and Hadoop, amplifying the population of indirectly affected services. The combination of AV:N, AC:L, PR:N, and a reliable DoS primitive elevates real-world priority beyond what limited VC:L alone would suggest. |
| Exploit ScenarioDerived | An attacker who can submit zstd-compressed data to a vulnerable Java application - such as a Kafka consumer endpoint, a REST API accepting compressed payloads, or a file-processing service - crafts a malformed zstd frame in which src_offset is set to a value near Integer.MIN_VALUE. The native JNI bounds check |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – Sep 09, 2026
Out-of-bounds memory reads in zstd-jni versions 1.1.1 through 1.5.7-13 allow unauthenticated remote attackers to crash the JVM or extract arbitrary frame-size data from unintended memory regions by supplying crafted Zstandard-compressed input with negative or integer-overflowing offset values. Three JNI native methods - findDirectByteBufferFrame, decompressedDirectByteBuffer, and getDirectByteBufferFrame - perform 32-bit signed bounds checks without first validating that src_offset or src_size are non-negative, allowing values near Integer.MIN_VALUE to pass the comparison and drive native code to read unmapped memory. The CVSS 4.0 score of 8.8 reflects a high availability impact (JVM termination) and limited confidentiality impact; no public exploit or KEV listing has been identified at time of analysis.
RemediationAI
Upgrade zstd-jni to version 1.5.7-14 or later, confirmed at https://github.com/luben/zstd-jni/releases/tag/v1.5.7-14 with patches applied in commits d7a1c99322d5e1fc71932e722c0b5bb2fc525d3f and 46dcb2a54c8b8f2ce2cad7187a7513f509c533ac. If an immediate upgrade is not possible, the primary compensating control is to ensure that no untrusted external input can reach the direct-ByteBuffer frame-size API methods (findDirectByteBufferFrame, decompressedDirectByteBufferSize, getDirectByteBufferFrameCount); routing compressed-data ingestion through byte-array API paths rather than direct ByteBuffer paths avoids the vulnerable code in native jni_zstd.c. Additionally, deploy application-layer input validation to reject zstd frames with abnormal or maximum-value offset parameters before they reach JNI. Note that restricting ingestion to trusted sources has operational trade-offs if the service is designed to accept arbitrary compressed payloads from external clients.
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 (CPE: cpe:2.3:a:luben:zstd-jni:*:*:*:*:*:*:*:*) is a Java Native Interface wrapper around the Zstandard (zstd) compression library authored by Facebook/Meta. It bridges Java's direct ByteBuffer memory model to native C code via JNI, which bypasses the JVM's normal memory safety guarantees. The root cause is CWE-190 (Integer Overflow or Wraparound): the bounds-checking arithmetic in jni_zstd.c used signed 32-bit comparisons of the form src_offset > src_cap - src_size and src_offset + src_size > src_cap. When src_offset is a large negative number (e.g., Integer.MIN_VALUE = -2,147,483,648), the subtraction and addition wrap around in two's-complement signed arithmetic, producing a result that satisfies the check despite pointing far outside the valid buffer. The commit patch (d7a1c99, 46dcb2a) adds explicit src_offset < 0 || src_size < 0 guards before the arithmetic in all three affected native functions, eliminating the wrap-around path. This vulnerability class is particularly dangerous in JNI code because native OOB reads can escape the JVM sandbox, causing unpredictable behavior including process termination.
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:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N
Network-reachable, no auth required to submit compressed data; high availability from JVM crash; limited confidentiality from OOB read; no integrity impact.
AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H
Primary rating from Vendor (VulnCheck).
CVSS VectorVendor: VulnCheck
DescriptionCVE.org
zstd-jni before 1.5.7-14 performs 32-bit signed bounds checks on three direct-ByteBuffer frame-size native methods, allowing out-of-bounds memory reads via negative or overflowing offsets. Attackers can supply negative offset values near Integer.MIN_VALUE to read unmapped memory, causing JVM termination or extracting arbitrary frame size data from unintended memory locations.
Technical POC Analysis
We need answer user.
Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.
Executive ViewAI
zstd-jni versions 1.1.1 through 1.5.7-13 contain an integer-overflow vulnerability that allows remote attackers to crash Java-based services and extract sensitive data from application memory. Organizations running affected versions face immediate availability risk and potential data exposure; this is critical for any service that processes untrusted compressed data from external or internal sources.
Apply vendor patch.
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
A buffer overflow occurs when a program writes more data to a memory buffer than it was allocated to hold, causing the excess data to spill into adjacent memory regions.
Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.
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 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
Infinite-loop denial of service in zstd-jni versions 1.4.8-4 through 1.5.7-13 allows thread starvation by passing negati
Same weakness CWE-190 – Integer Overflow or Wraparound
View allSame technique Buffer Overflow
View allVendor StatusVendor
SUSE
Severity: Important| Product | Status |
|---|---|
| openSUSE Tumbleweed | Fixed |
EUVD-2026-75021
GHSA-cm3p-487m-cmvq
NVD
CVE.org
EPSS
Vulnrichment
VulDB
Exploit-DB