CVE-2026-87795: Out-of-bounds Read in luben zstd-jni
Affects luben zstd-jniSource CVE Database V5
Not known to be exploited · CVSS 8.8 High.
Data as of 10/24/2026, 22:16:05 UTC
- Exploitation
Not in CISA KEV, no exploitation reported
- EPSS
- 0.6% chance of exploitation in 30 days – higher than 49% of CVEsExploit Prediction Scoring System: the likelihood attackers will use this flaw soon.
CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:NWhat to do
Affected software
| Product | Affected | Fixed in |
|---|---|---|
| lubenzstd-jni | Affected
| Fixed in
|
Mavenluben/zstd-jnipkg:maven/luben/zstd-jniOther threats | Affected
| Fixed in
|
Check your own hosts for these packages with threat-finder (opens in a new tab), our free open-source scanner.
AI-suggested
Upgrade zstd-jni to version 1.5.7-14 or later, where the offset and length parameters are properly validated to prevent out-of-bounds reads. No other mitigation or workaround is indicated. Patch status is confirmed by the version boundary provided.
Description
CVE-2026-87795 is a high-severity vulnerability in the zstd-jni library before version 1.5.7-14. It involves an out-of-bounds read caused by improper validation of offset and length parameters in the ZstdDictCompress constructor. This flaw allows attackers to read native heap memory, potentially leading to JVM crashes.
Impact
Successful exploitation allows an attacker to read out-of-bounds native heap memory, which typically results in JVM crashes. This can cause denial of service conditions in applications using vulnerable versions of zstd-jni. There is no indication of code execution or information disclosure beyond the memory read and crash.
References
- github.com/luben/zstd-jni/security/advisories/GHSA-ff36-7w3w-g8rm (opens in a new tab)
- github.com/luben/zstd-jni/commit/0d64de4dee6606ff506be36c7f2e714ad0c80fdb (opens in a new tab)
- github.com/luben/zstd-jni/blob/v1.5.7-13/src/main/java/com/github/luben/zstd/ZstdDictCompress.java (opens in a new tab)
- github.com/luben/zstd-jni/blob/v1.5.7-13/src/main/native/jni_fast_zstd.c (opens in a new tab)
- github.com/luben/zstd-jni/commit/1c4e5a6c3ce8458095225d987d669e6a0937734a (opens in a new tab)
- github.com/luben/zstd-jni/releases/tag/v1.5.7-14 (opens in a new tab)
- github.com/luben/zstd-jni (opens in a new tab)
- vulncheck.com/advisories/zstd-jni-1.2.0-through-1.5.7-13-out-of-bounds-read-via-zstddictcompress (opens in a new tab)