Out-of-bounds Read in Luben Zstd-Jni
CVE-2026-87824
zstd-jni before 1.5.7-14 fails to validate the samples buffer capacity in Zstd.trainFromBufferDirect, allowing attackers to read past buffer boundaries by supplying oversized per-sample lengths. Attackers can trigger out-of-bounds memory access by providing crafted sample length arrays that cause the native implementation to walk past the buffer allocation, resulting in JVM termination.
Vulnerability class: Buffer Overflow
Published · last modified .
CVSS v3 metric
CVSS v3 base score 7.5 (High). Vector: CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H.
EPSS exploit prediction
EPSS: 0.004 (31.8th percentile), scored .
Very low probability of exploitation in the next 30 days; routine patching cadence is appropriate. 32nd percentile — 31.8% of CVEs in the catalogue have a lower EPSS than this one. How to read EPSS.
EPSS over last 30 days · oldest: 0.007 · newest: 0.004 · change: -0.003
Affected products
Weakness classification (CWE)
References
- github.com/luben/zstd-jni/security/advisories/GHSA-257p-3h6w-pg7h (vendor-advisory)
- github.com/luben/zstd-jni/commit/bba6cfca2c0897f1fa004f4193247479f10da853 (patch)
- github.com/luben/zstd-jni/blob/v1.5.7-13/src/main/native/jni_zdict.c (technical-description)
- 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/releases/tag/v1.5.7-14 (release-notes)
- github.com/luben/zstd-jni/commit/53d3c6342883f7d6717b2477a7f9c1b4a4a56980 (technical-description, patch)
- github.com/luben/zstd-jni (product)
- www.vulncheck.com/advisories/zstd-jni-1.3.3-1-through-1.5.7-13-out-of-bounds-re… (third-party-advisory)
Frequently asked questions
- What is CVE-2026-87824?
- CVE-2026-87824 is a high-severity vulnerability in Luben Zstd-Jni, classified under Out-of-bounds Read. CVSS score: 7.5/10. Published 2026-09-09.
- How severe is CVE-2026-87824?
- High severity. CVSS v3 base score is 7.5 out of 10.