Use After Free in Luben Zstd-Jni
CVE-2026-87825
zstd-jni before 1.5.7-14 contains a use-after-free vulnerability where streams and contexts hold a dictionary's shared lock only during the load call, allowing the dictionary to be closed while still referenced. Attackers can close a dictionary after associating it with a stream or context, causing subsequent read or write operations to access freed native memory, resulting in silent data corruption or JVM crashes.
Vulnerability class: Use-After-Free
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.7 (High). Vector: CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H.
EPSS exploit prediction
EPSS: 0.002 (8.8th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 9th percentile — 8.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.002 · newest: 0.002 · change: -0.000
Affected products
Weakness classification (CWE)
References
- github.com/luben/zstd-jni/security/advisories/GHSA-947w-pxjj-c7m9 (vendor-advisory)
- github.com/luben/zstd-jni/commit/393d7311766abbc285b149302c0fe1f94b16d555 (patch)
- github.com/luben/zstd-jni/commit/a560131d7834598afd9cea6b7c107bc88e915936 (patch)
- github.com/luben/zstd-jni/blob/v1.5.7-13/src/main/java/com/github/luben/zstd/Zs… (technical-description)
- github.com/luben/zstd-jni/blob/v1.5.7-13/src/main/java/com/github/luben/zstd/Ba… (technical-description)
- github.com/luben/zstd-jni/releases/tag/v1.5.7-14 (release-notes)
- github.com/luben/zstd-jni/commit/0827ed02551bbd8d6f8e4bbff99d83bf50f91938 (technical-description, patch)
- github.com/luben/zstd-jni (product)
- www.vulncheck.com/advisories/zstd-jni-1.3.8-4-through-1.5.7-13-use-after-free-o… (third-party-advisory)
Frequently asked questions
- What is CVE-2026-87825?
- CVE-2026-87825 is a high-severity vulnerability in Luben Zstd-Jni, classified under Use After Free. CVSS score: 7.7/10. Published 2026-09-09.
- How severe is CVE-2026-87825?
- High severity. CVSS v3 base score is 7.7 out of 10.