# CVE-2026-87795: zstd-jni 1.2.0 through 1.5.7-13 Out-of-Bounds Read via ZstdDictCompress

- Severity: High 8.8 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N`
- Known to be exploited: not in CISA's catalogue, which lists only what CISA has confirmed
- Likelihood of exploitation in the next 30 days (EPSS): 0.43%, higher than 39% of CVEs (2026-12-02)
- Public exploit code or proof of concept: one link below, marked "exploit"
- Published: 2026-09-09T10:07:28.656Z
- Modified: 2026-09-14T13:19:00.180Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation poc, automatable yes, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- luben zstd-jni: from 1.2.0 before 1.5.7-14

## Every score

- VulnCheck: CVSS:4.0 8.8 High `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:L/VI:N/VA:H/SC:N/SI:N/SA:N`
- VulnCheck: CVSS:3.1 8.2 High `CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:L/I:N/A:H`

## References

- <https://github.com/luben/zstd-jni/security/advisories/GHSA-ff36-7w3w-g8rm> (exploit, vendor-advisory)
- <https://github.com/luben/zstd-jni/commit/0d64de4dee6606ff506be36c7f2e714ad0c80fdb> (patch)
- <https://github.com/luben/zstd-jni/blob/v1.5.7-13/src/main/java/com/github/luben/zstd/ZstdDictCompress.java> (technical-description)
- <https://github.com/luben/zstd-jni/blob/v1.5.7-13/src/main/native/jni_fast_zstd.c> (technical-description)
- <https://github.com/luben/zstd-jni/commit/1c4e5a6c3ce8458095225d987d669e6a0937734a> (patch, technical-description)
- <https://github.com/luben/zstd-jni/releases/tag/v1.5.7-14> (release-notes)
- <https://github.com/luben/zstd-jni> (product)
- <https://www.vulncheck.com/advisories/zstd-jni-1.2.0-through-1.5.7-13-out-of-bounds-read-via-zstddictcompress> (third-party-advisory)

## Sources

- CVE List: [CVE-2026-87795](https://www.cve.org/CVERecord?id=CVE-2026-87795), CVE Terms of Use, modified 2026-09-14
- NVD: [CVE-2026-87795](https://nvd.nist.gov/vuln/detail/CVE-2026-87795), Public domain, modified 2026-09-14

---

Page: https://cve.day/CVE-2026-87795 · Whole record: https://cve.day/CVE-2026-87795.json · Rebuilt by cve.day 2026-11-25T22:59:37.720Z
