Attack ChainAIDerived
Hypothetical attack flow derived from CVE metadata – not a confirmed exploit chain
-
AccessIdentify network service using zstd-jni with shared dictionary API
-
DeliverySend concurrent compression/decompression requests
-
ExploitTrigger simultaneous loadDict() on new dict and close() on old shared dict
-
ExecutionWrong releaseSharedLock() target corrupts native reference count
-
PersistOld native dictionary buffer freed while still referenced
-
ImpactDereference 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. |
Get an e-mail when this CVE is exploited, patched or re-scored. Free account.
Alert meAnalysisAIv1 – 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
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 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
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
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.
AV:L/AC:L/PR:N/UI:N/S:U/C:H/I:H/A:H
Primary rating from Vendor (VulDB).
CVSS VectorVendor: VulDB
Lifecycle Timeline
2DescriptionCVE.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
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
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.
Oracle Java SE 7 Update 6 and earlier contains multiple sandbox bypass vulnerabilities via the ClassFinder and forName m
Remote code execution in IBM Sterling B2B Integrator, Sterling Integrator, and Tivoli Common Reporting allows unauthenti
Java Runtime Environment sandbox bypass via incorrect image channel verification in 2D component allows remote unauthent
Oracle Java SE JDK/JRE 7 and 6 Update 27 and earlier allows remote code execution with complete system compromise throug
JBoss Seam 2 in Red Hat JBoss EAP 4.3.0 fails to sanitize JBoss Expression Language inputs, allowing remote attackers to
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 update 4 and earlier, 6 up
Multiple vulnerabilities in Oracle Java 7 before Update 11 allow remote attackers to execute arbitrary code by (1) using
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 2 and earlier, 6 Up
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
Unspecified vulnerability in the Java Runtime Environment (JRE) component in Oracle Java SE 7 Update 7 and earlier allow
Remote unauthenticated attackers can execute arbitrary code on Adobe ColdFusion servers through Java deserialization fla
The ExceptionDelegator component in Apache Struts before 2.2.3.1 interprets parameter values as OGNL expressions during
EUVD-2026-78255
GHSA-hhh7-cpvm-vxxc
NVD
CVE.org
EPSS
VulDB
Exploit-DB