Skip to main content

zstd-jni EUVDEUVD-2026-75021

| CVE-2026-87823 HIGH
Integer Overflow or Wraparound (CWE-190)
2026-09-09 VulnCheck GHSA-cm3p-487m-cmvq
8.8
CVSS 4.0 · Vendor: VulnCheck
View

Attack ChainAIDerived

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

  1. Access
    Identify service accepting zstd-compressed ByteBuffer input
  2. Delivery
    Craft frame with src_offset near Integer.MIN_VALUE
  3. Exploit
    Submit malformed frame to JNI frame-size method
  4. Execution
    Signed integer wraparound bypasses bounds check
  5. Persist
    Native OOB read executes
  6. Impact
    JVM 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 src_offset > src_cap - src_size passes due to signed integer wraparound, the native code proceeds to read from an address far outside the ByteBuffer, and the JVM either crashes immediately on access to unmapped memory or returns data from an unintended memory region. No public proof-of-concept is confirmed at time of analysis, but the fix commit clearly demonstrates the vulnerable arithmetic path.

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

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

Alert me

AnalysisAIv1 – 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

zstd-jni 1.1.1 <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 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

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-reachable, no auth required to submit compressed data; high availability from JVM crash; limited confidentiality from OOB read; 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 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

Why It Matters

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.

Business Impact: High
Compensating Controls

Apply vendor patch.

Threat Intelligence Overview

EPSS Score
0.4%
Top 64% exploitable
Prevalence
Medium
transitive dependency in Apache Kafka, Hadoop, Spark JVM 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.4%
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

44
Low Medium High Critical
KEV: 0
EPSS: 0
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.

Integer overflow occurs when an arithmetic operation produces a result that exceeds the maximum value a given integer type can store.

Vendor StatusVendor

SUSE

Severity: Important
Product Status
openSUSE Tumbleweed Fixed

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