CVE-2026-87824
zstd-jni 1.3.3-1 through 1.5.7-13 Out-of-Bounds Read via Zstd.trainFromBufferDirect
- State
- Published
- Severity
- 8.7 High
- Published
- Sep 9, 2026
- Updated
- Sep 20, 2026
- Reserved
- Sep 9, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 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 |
| 3.1 | 7.5 High | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | VulnCheck |
Weaknesses
- CWE-125 Out-of-bounds Read
Affected Products
| Product | Versions |
|---|---|
zstd-jniluben |
|
References
- GitHub Security Advisory (GHSA-257p-3h6w-pg7h)vendor-advisory
- Fix commit: validate the samples buffer capacity against the declared sample sizespatch
- Samples buffer capacity never read at v1.5.7-13technical-description
- Java wrapper that only checks the sample count at v1.5.7-13technical-description
- zstd-jni v1.5.7-14 Release Notesrelease-notes
- Commit that introduced the direct-buffer dictionary trainer without a samples capacity check (first released in 1.3.3-1)technical-descriptionpatch
- https://github.com/luben/zstd-jniproduct
- VulnCheck Advisory: zstd-jni 1.3.3-1 through 1.5.7-13 Out-of-Bounds Read via Zstd.trainFromBufferDirectthird-party-advisory
Every record here comes from the CVE Program’s CVE List. © 1999–2026 The MITRE Corporation. CVE is a registered trademark of The MITRE Corporation. The records are reproduced under the CVE Program terms of use.