Skip to main content

zstd-jni CVE-2026-90852

| EUVDEUVD-2026-78255 MEDIUM
Use After Free (CWE-416)
2026-09-15 VulDB GHSA-hhh7-cpvm-vxxc
5.5
CVSS 4.0 · Vendor: VulDB
View

Attack ChainAIDerived

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

  1. Access
    Identify network service using zstd-jni with shared dictionary API
  2. Delivery
    Send concurrent compression/decompression requests
  3. Exploit
    Trigger simultaneous loadDict() on new dict and close() on old shared dict
  4. Execution
    Wrong releaseSharedLock() target corrupts native reference count
  5. Persist
    Old native dictionary buffer freed while still referenced
  6. Impact
    Dereference freed memory causes JVM crash or heap corruption

Vulnerability Assessment

Weakness
CWE
ASVS 5.0
V15 - Secure Coding and Architecture Memory lifecycle management
MITRE ATT&CK

2 techniques across 2 tactics: Execution, Privilege Escalation

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

Exploitation Conditions

Exploitation requires all of the following: (1) the application must explicitly use the dictionary sharing API by constructing ZstdDictCompress or ZstdDictDecompress objects and passing them to loadDict() - applications using only raw byte[] dictionaries or no dictionaries are not affected; (2) the compression or decompression context must be reused across multiple loadDict() or reset() calls, creating the opportunity for the reference count to be corrupted; (3) for the UAF to manifest as a crash rather than a silent reference count leak, concurrent access patterns - a thread closing the old shared dictionary while another thread holds a now-zeroed reference - are required. Applications that instantiate a fresh ZstdCompressCtx per request and never share ZstdDictCompress objects across contexts are not exploitable. Network reachability alone is insufficient; the attacker must be able to influence the timing or ordering of dictionary load and release operations within the target service.

Impact

The CVSS 4.0 vector assigns AC:L and PR:N, implying straightforward unauthenticated remote exploitability, which overstates ease of triggering the race; actual UAF manifestation requires either concurrent dictionary close operations across threads or a specific load-then-reload API sequence that drives the native reference count to zero prematurely, making AC:H more defensible. Impact metrics (VC:L/VI:L/VA:L) are realistic - the most likely outcomes are a JVM crash (DoS via native heap corruption) or limited heap disclosure from the JNI layer, not full remote code execution. A publicly available exploit exists per the GitHub issue tracker, which meaningfully compresses attacker effort; even a mid-sized municipal IT team in kalisz running a Kafka-based streaming pipeline with shared-dictionary compression should treat this patch as urgent given the low barrier the public PoC represents. No CISA KEV listing means confirmed widespread exploitation has not been observed, and EPSS data was not provided in the input, so exploitation probability cannot be independently quantified. The vulnerability is configuration-gated to the dictionary sharing code path, limiting the exposed population to applications that explicitly construct ZstdDictCompress or ZstdDictDecompress objects and call loadDict() - a meaningful but non-universal subset of zstd-jni consumers.

Exploit ScenarioDerived

An attacker targeting a Java service that uses zstd-jni with shared dictionary compression - for example, a Kafka consumer or a custom HTTP compression endpoint - sends concurrent requests that trigger simultaneous loadDict() calls and dictionary object releases across threads. The reference count inversion in loadDict() allows the native dictionary buffer to be freed by one thread while still referenced by a compression context in another, causing a use-after-free in the JNI layer. A public proof-of-concept demonstrating this sequence is available via GitHub issue #404, lowering the attacker skill threshold.

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

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

Alert me

AnalysisAIv1 – Sep 15, 2026

Use-after-free in zstd-jni's Dictionary Sharing component allows remote attackers to corrupt native heap memory through the ZstdCompressCtx.loadDict() and ZstdDecompressCtx.loadDict() APIs in versions up to 1.5.7-13. The defect is a logic inversion in shared-lock accounting: the code releases the reference count on the incoming dictionary parameter rather than on the previously held dictionary reference, causing the old native buffer to remain referenced after it can be freed by another thread. A public proof-of-concept exists via GitHub issue #404, and vendor released a confirmed fix in version 1.5.7-14.

RemediationAI

Upgrade zstd-jni to version 1.5.7-14 or later, which corrects shared-lock accounting in all three affected code paths across ZstdCompressCtx, ZstdDecompressCtx, and AutoCloseBase. The fix is captured in commit a560131d7834598afd9cea6b7c107bc88e915936 and the official release is available at https://github.com/luben/zstd-jni/releases/tag/v1.5.7-14. If immediate patching is not feasible, the most actionable workaround is to refrain from using the shared dictionary API - avoid constructing ZstdDictCompress or ZstdDictDecompress objects passed to loadDict(), and instead pass raw byte[] dictionaries directly or create per-context compression instances; this eliminates the shared reference counting path entirely at the cost of higher per-request memory use and dictionary initialization latency. Applications already using only the byte[] loadDict overload or no dictionary at all are not affected by this specific code path.

Affected VersionsENISA

zstd-jni 1.5.7-13

Affected Packages

euvd zstd_jni no fix

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 binding for Meta's Zstandard real-time compression algorithm, widely embedded in data infrastructure such as Apache Kafka and Apache Cassandra. The library manages JNI object lifecycles through a reference-counted shared-lock mechanism in AutoCloseBase, using atomic compare-and-set operations to safely gate native memory release. The Dictionary Sharing feature allows multiple ZstdCompressCtx or ZstdDecompressCtx instances to share a single pre-trained dictionary object held in the compression_dict field. CWE-416 (Use After Free) arises from a parameter-vs-field confusion bug: loadDict() called releaseSharedLock() on the newly-supplied dict argument instead of the already-held compression_dict field, so the old native dictionary buffer's reference count was never decremented and the new dict's count was decremented prematurely. Additionally, the reset() method in both context classes omitted any lock release on compression_dict or decompression_dict entirely. The AutoCloseBase fix also repairs a broken reference-count decrement path in close() that could allow doClose() to run with live references outstanding. The full fix spans commit a560131d7834598afd9cea6b7c107bc88e915936 across AutoCloseBase.java, ZstdCompressCtx.java, and ZstdDecompressCtx.java.

Know when Java 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 (VulDB) PRIMARY 5.5 MEDIUM
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:L/VA:L/SC:N/SI:N/SA:N/E:P
vuln.today AI 5.6 MEDIUM

Network vector applies when library is embedded in a network service; AC:H reflects the concurrent dictionary sharing usage pattern required to trigger the UAF; impact limited to partial heap disclosure and DoS.

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

Primary rating from Vendor (VulDB).

CVSS VectorVendor: VulDB

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

Lifecycle Timeline

2
CVSS changed
Sep 15, 2026 - 03:22 NVD
6.9 (MEDIUM) 5.5 (MEDIUM)
CVE Published
Sep 15, 2026 - 02:15 cve.org
MEDIUM 5.5

DescriptionCVE.org

A vulnerability has been found in luben zstd-jni up to 1.5.7-13. This vulnerability affects the function ZstdCompressCtx.loadDict of the file ZstdCompressCtx.java of the component Dictionary Sharing. Such manipulation leads to use after free. The attack can be executed remotely. The exploit has been disclosed to the public and may be used. Upgrading to version 1.5.7-14 is able to resolve this issue. The name of the patch is a560131d7834598afd9cea6b7c107bc88e915936. The affected component should be upgraded. The vendor was contacted early, responded in a very professional manner and quickly released a fixed version of the affected product.

Threat Intelligence Overview

EPSS Score
0.3%
Top 76% exploitable
Prevalence
High
embedded in Apache Kafka, Cassandra, and widely-used Java data pipelines
Exploit
POC
Public exploit code exists
Data Quality
7 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 Yes
EPSS 0.3%
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
Scheduled
Exploitation· derived
Poc
System Exposure· derived
Open
Automatable· derived
Yes
Human Impact· derived
Medium

Priority Score

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

Attack Technique

Use-after-free vulnerabilities occur when a program continues to access memory through a pointer after that memory has been deallocated.

Memory corruption occurs when a program writes data beyond the boundaries of allocated memory regions or accesses memory in unintended ways, violating the integrity of the process's address space.

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

More in Java

View all
CVE-2012-4681 CRITICAL POC
9.8 Aug 28

Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m

CVE-2015-7450 CRITICAL POC
9.8 Jan 02

Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti

CVE-2013-2465 CRITICAL POC
9.8 Jun 18

Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent

CVE-2011-3544 CRITICAL POC
9.8 Oct 19

Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug

CVE-2010-1871 HIGH POC
8.8 Aug 05

JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to

CVE-2012-1723 CRITICAL POC
9.8 Jun 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up

CVE-2013-0422 CRITICAL POC
9.8 Jan 10

Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using

CVE-2012-0507 CRITICAL POC
9.8 Jun 07

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up

CVE-2015-4852 CRITICAL POC
9.8 Nov 18

The WLS Security component in Oracle WebLogic Server 10.3.6.0, 12.1.2.0, 12.1.3.0, and 12.2.1.0 allows remote attackers

CVE-2012-5076 CRITICAL POC
9.8 Oct 16

Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow

CVE-2017-3066 CRITICAL POC
9.8 Apr 27

Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla

CVE-2012-0391 CRITICAL POC
9.8 Jan 08

The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during

Vendor StatusVendor

SUSE

Severity: Important

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