CVE-2026-87824
zstd-jni 1.3.3-1 through 1.5.7-13 Out-of-Bounds Read via Zstd.trainFromBufferDirect
CVSS Score
7.5
EPSS Score
0.0%
EPSS Percentile
0th
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.
| CWE | CWE-125 |
| Vendor | luben |
| Product | zstd-jni |
| Published | Sep 9, 2026 |
Stay Ahead of the Next One
Get instant alerts for luben zstd-jni
Be the first to know when new high vulnerabilities affecting luben zstd-jni are published โ delivered to Slack, Telegram or Discord.
Get Free Alerts โ
Free ยท No credit card ยท 60 sec setup
CVSS v3 Breakdown
CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H Attack Vector
Network
Attack Complexity
Low
Privileges Required
None
User Interaction
None
Scope
Unchanged
Confidentiality
None
Integrity
None
Availability
High
Affected Versions
luben / zstd-jni
1.3.3-1 < 1.5.7-14
References
github.com: https://github.com/luben/zstd-jni/security/advisories/GHSA-257p-3h6w-pg7h github.com: https://github.com/luben/zstd-jni/commit/bba6cfca2c0897f1fa004f4193247479f10da853 github.com: https://github.com/luben/zstd-jni/blob/v1.5.7-13/src/main/native/jni_zdict.c github.com: https://github.com/luben/zstd-jni/blob/v1.5.7-13/src/main/java/com/github/luben/zstd/Zstd.java github.com: https://github.com/luben/zstd-jni/releases/tag/v1.5.7-14 github.com: https://github.com/luben/zstd-jni/commit/53d3c6342883f7d6717b2477a7f9c1b4a4a56980 github.com: https://github.com/luben/zstd-jni vulncheck.com: https://www.vulncheck.com/advisories/zstd-jni-1.3.3-1-through-1.5.7-13-out-of-bounds-read-via-zstd-trainfrombufferdirect
Credits
Yu Bao, PayPal Cyber Security Team