Skip to main content

zstd-jni CVE-2026-89046

| EUVDEUVD-2026-75635 HIGH
Out-of-bounds Read (CWE-125)
2026-09-10 VulnCheck GHSA-h98q-h7vh-hjv2
8.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Send crafted Zstd payload with negative srcPosition
  2. Delivery
    Java bounds check bypassed (missing < 0 guard)
  3. Exploit
    Negative offset marshalled into native jni_zstd.c
  4. Execution
    Out-of-bounds read in native frame-header parser
  5. Impact
    JVM crash or adjacent heap bytes disclosed

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Bounds checking, read limits
MITRE ATT&CK

1 technique across 1 tactic: Collection

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 run zstd-jni versions 1.5.5-6 through 1.5.7-13 and must expose a code path where attacker-controlled values reach the srcPosition or srcSize parameters of Zstd.getFrameContentSize(byte[] src, int srcPosition, int srcSize), or the offset/len parameters of ZstdInputStreamNoFinalizer.read. The CVSS PR:N/UI:N rating applies specifically when the application's network-accessible layer accepts externally-supplied compressed data whose internal offset fields are forwarded to these APIs without independent non-negativity validation. Applications that decompress only internally-generated or previously-validated data are not exploitable regardless of library version. The limiting factor is not network reachability alone but whether the attacker controls the offset/length arguments - pure compressed-data ingestion where offsets are internally computed is not affected.

Impact

The CVSS 4.0 vector (AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VA:H) accurately reflects a remotely exploitable, no-interaction flaw with high availability impact and limited confidentiality exposure - consistent with the dual outcomes of JVM crashes and partial memory leaks described in the advisory. No KEV listing exists and VulnCheck is the sole advisory source; no public exploit code is confirmed, and EPSS data is absent from the input, limiting probabilistic forecasting. The real-world priority depends almost entirely on whether an application's network-exposed endpoints forward attacker-controlled offset values to the affected APIs: for services like Kafka message brokers or Spark streaming jobs that ingest externally-sourced compressed data, even a mid-sized municipal IT team in sopot managing such infrastructure should treat this as an urgent patch given the JVM-crash (VA:H) path requires no credentials or interaction. The confidentiality component is lower-severity in practice; OOB reads at the JNI boundary may expose frame-header bytes but are unlikely to yield exploitable memory layouts without additional primitives. Overall: genuine high priority for affected deployment patterns, lower urgency where all Zstd inputs are internally generated.

Exploit ScenarioDerived

An attacker submits a crafted Zstd-compressed payload containing a negative srcPosition value to a network service - such as a Kafka consumer, a REST API accepting compressed uploads, or a Spark streaming source - that internally calls Zstd.getFrameContentSize. The negative offset passes the incomplete srcPosition >= src.length guard, is marshalled into the native jni_zstd.c frame-header parser, and causes an out-of-bounds read that either leaks adjacent JVM heap bytes in a response error or crashes the JVM process outright. The commit diff publicly documents the missing check, lowering the barrier for constructing a working proof of concept even without an existing published exploit.

This Week Schedule remediation this week. Why: HIGH severity (CVSS 7.0-8.9).
Patch available 0.6% exploitation probability (EPSS)

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

Alert me

AnalysisAIv1 – Sep 10, 2026

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 process crashes when processing attacker-controlled Zstd-compressed data. The Zstd.getFrameContentSize method and ZstdInputStreamNoFinalizer both fail to reject negative srcPosition and len arguments before marshalling them into the native Zstd frame-header parser, allowing a negative value to bypass Java-side bounds checks and trigger out-of-bounds reads in the underlying C layer. No public exploit code or CISA KEV listing has been identified; the vendor-released fix is version 1.5.7-14.

RemediationAI

Upgrade zstd-jni to version 1.5.7-14 or later; the patched release is tagged at https://github.com/luben/zstd-jni/releases/tag/v1.5.7-14 and the corrective changes are in commit dd08685ef913a32e76fb27f43470035c06758646. For applications unable to upgrade immediately, validate all offset and length arguments as non-negative at the application layer before invoking Zstd.getFrameContentSize or ZstdInputStreamNoFinalizer.read - specifically, reject any srcPosition, srcSize, or len values less than zero before they reach the library. This compensating control adds latency at the application boundary and must be implemented in every call site; it is not a substitute for upgrading. Additionally, consider restricting which network endpoints accept Zstd-compressed payloads to authenticated or trusted sources, reducing the attack surface until the patch is applied.

Affected VersionsENISA

zstd-jni 1.5.5-6 <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 (CPE: cpe:2.3:a:luben:zstd-jni:*:*:*:*:*:*:*:*) is a Java Native Interface wrapper around the native Zstd (Zstandard) compression library authored by luben, widely consumed by high-throughput Java frameworks such as Apache Kafka and Apache Spark for block and stream compression. CWE-125 (Out-of-Bounds Read) precisely characterizes the root cause: the Java validation in Zstd.java at approximately line 730 checked srcPosition >= src.length but omitted the symmetric srcPosition < 0 guard, and similarly lacked a srcSize < 0 check. A negative Java int, when passed across the JNI boundary into jni_zstd.c, is interpreted in native pointer arithmetic in a way that produces a read before the start of the allocated buffer - potentially leaking adjacent heap bytes or corrupting the JVM's memory-access state enough to cause a SIGSEGV crash. The commit diff (dd08685ef913a32e76fb27f43470035c06758646) confirms three parallel gaps were fixed: the srcPosition/srcSize checks in Zstd.java and the missing len < 0 check in two locations within ZstdInputStreamNoFinalizer.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 8.8 HIGH
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
vuln.today AI 8.2 HIGH

Network-delivered negative offset bypasses Java bounds check with no credentials or interaction; JVM crash yields A:H, partial memory leak C:L, no integrity impact.

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

Primary rating from Vendor (VulnCheck).

CVSS VectorVendor: VulnCheck

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

DescriptionCVE.org

zstd-jni versions 1.5.5-6 through 1.5.7-13 contain an out-of-bounds read vulnerability in Zstd.getFrameContentSize that fails to validate negative srcPosition arguments. Attackers can supply negative offset values that bypass bounds checks and reach the native frame-header parser, causing out-of-bounds memory reads that lead to information disclosure or JVM crashes.

Technical POC Analysis

Evidence note: the GHSA-rm53-6wf5-f34m advisory is labelled Moderate (CVSS 3.1 5.7, AV:L/AC:H/PR:N/UI:N/S:U/C:L/I:N/A:H) and its author states "This is denial of service only; I did not demonstrate i…

Full technical POC analysis - root cause, step-by-step exploitation and patch breakdown - is part of the Pro and Business plans.

Executive ViewAI

Why It Matters

Java applications using zstd-jni compression library versions 1.5.5-6 through 1.5.7-13 face memory disclosure and crash risks when processing malicious compressed data; no public exploit identified at time of analysis. The vulnerability could expose sensitive application data in memory or cause production service disruptions. Organizations running Java workloads dependent on zstd-jni must prioritize upgrading to the available patch.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.6%
Top 55% exploitable
Prevalence
Medium
popular JNI compression library in Java big-data stacks
Data Quality
5 sources
Confidence: Medium
EUVD NVD CVE.org EPSS Vulnrichment Vendor GitHub VulDB

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 HIGH
CISA KEV No
Public POC No
EPSS 0.6%
Patch available Yes
Active threat No
Deciding rule
HIGH severity (CVSS 7.0-8.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
Scheduled
Exploitation
Poc
System Exposure· derived
Open
Automatable
Yes
Human Impact
High
Technical Impact
Partial

Priority Score

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

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.

Information disclosure occurs when an application unintentionally exposes sensitive data that aids attackers in reconnaissance or directly compromises security.

Vendor StatusVendor

SUSE

Severity: Important

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