# CVE-2026-87824: zstd-jni 1.3.3-1 through 1.5.7-13 Out-of-Bounds Read via Zstd.trainFromBufferDirect

- Severity: High 8.7 (CVSS:4.0, scored by VulnCheck) `CVSS:4.0/AV:N/AC:L/AT:N/PR:N/UI:N/VC:N/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.39%, higher than 35% of CVEs (2026-12-01)
- Published: 2026-09-09T14:32:44.099Z
- Modified: 2026-09-20T01:16:31.623Z
- Weaknesses: CWE-125
- SSVC (CISA-ADP): exploitation none, automatable yes, technical impact partial
- Assigned by: VulnCheck

## Description

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.

(As written by CVE List.)

## Affected

- luben zstd-jni: from 1.3.3-1 before 1.5.7-14

## Every score

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

## References

- <https://github.com/luben/zstd-jni/security/advisories/GHSA-257p-3h6w-pg7h> (vendor-advisory)
- <https://github.com/luben/zstd-jni/commit/bba6cfca2c0897f1fa004f4193247479f10da853> (patch)
- <https://github.com/luben/zstd-jni/blob/v1.5.7-13/src/main/native/jni_zdict.c> (technical-description)
- <https://github.com/luben/zstd-jni/blob/v1.5.7-13/src/main/java/com/github/luben/zstd/Zstd.java> (technical-description)
- <https://github.com/luben/zstd-jni/releases/tag/v1.5.7-14> (release-notes)
- <https://github.com/luben/zstd-jni/commit/53d3c6342883f7d6717b2477a7f9c1b4a4a56980> (patch, technical-description)
- <https://github.com/luben/zstd-jni> (product)
- <https://www.vulncheck.com/advisories/zstd-jni-1.3.3-1-through-1.5.7-13-out-of-bounds-read-via-zstd-trainfrombufferdirect> (third-party-advisory)

## Sources

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

---

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