CVE-2026-87795
zstd-jni versions before 1.5.7-14 fail to validate offset and …
zstd-jni versions before 1.5.7-14 fail to validate offset and length parameters in the ZstdDictCompress constructor, allowing out-of-bounds memory reads. Attackers can supply untrusted offset or length values to read native heap memory into the compression dictionary, typically causing JVM crashes.
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/ZstdDictCompr
- github.com/luben/zstd-jni/blob/v1.5.7-13/src/main/native/jni_fast_zstd.c
- github.com/luben/zstd-jni/commit/0d64de4dee6606ff506be36c7f2e714ad0c80fdb
- github.com/luben/zstd-jni/commit/1c4e5a6c3ce8458095225d987d669e6a0937734a
- github.com/luben/zstd-jni/releases/tag/v1.5.7-14
- github.com/luben/zstd-jni/security/advisories/GHSA-ff36-7w3w-g8rm
- www.vulncheck.com/advisories/zstd-jni-1.2.0-through-1.5.7-13-out-of-bounds-read-via-zstddi
- nvd.nist.gov/vuln/detail/CVE-2026-87795
- cve.org/CVERecord?id=CVE-2026-87795
Data: CVE list and the NVD. This product uses data from the NVD API but is not endorsed or certified by the NVD.