CVE-2026-87824
zstd-jni before 1.5.7-14 fails to validate the samples buffer …
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.
What to do now
- Check your exposureFind out whether the affected software runs anywhere in your environment, including systems of suppliers.
- UpdateInstall the version in which the vendor fixed the vulnerability. The references lead to the advisory.
- Limit access until thenIf you cannot update at once, take the system off the internet or restrict who can reach it.
References
- github.com/luben/zstd-jni
- github.com/luben/zstd-jni/blob/v1.5.7-13/src/main/java/com/github/luben/zstd/Zstd.java
- github.com/luben/zstd-jni/blob/v1.5.7-13/src/main/native/jni_zdict.c
- github.com/luben/zstd-jni/commit/53d3c6342883f7d6717b2477a7f9c1b4a4a56980
- github.com/luben/zstd-jni/commit/bba6cfca2c0897f1fa004f4193247479f10da853
- github.com/luben/zstd-jni/releases/tag/v1.5.7-14
- github.com/luben/zstd-jni/security/advisories/GHSA-257p-3h6w-pg7h
- www.vulncheck.com/advisories/zstd-jni-1.3.3-1-through-1.5.7-13-out-of-bounds-read-via-zstd
- nvd.nist.gov/vuln/detail/CVE-2026-87824
- cve.org/CVERecord?id=CVE-2026-87824
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.