CVE-2026-87824
published high CVSS 4.0 · 8.7zstd-jni 1.3.3-1 through 1.5.7-13 Out-of-Bounds Read via Zstd.trainFromBufferDirect
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| luben | — | zstd-jni1.3.3-1 to < 1.5.7-14 · Other versions: unaffected | Affected | Not stated | VulnCheck |
| SUSE / openSUSE | SLE-16 | zstd-jniaarch64 | Advisory build | 1.5.7.16-160000.1.1 | SUSE-SU-2026:23858-1 |
| SUSE / openSUSE | SLE-16 | zstd-jniaarch64 | Advisory build | 1.5.7.16-160000.1.1 | SUSE-SU-2026:23868-1 |
| SUSE / openSUSE | SLE-16 | zstd-jnippc64le | Advisory build | 1.5.7.16-160000.1.1 | SUSE-SU-2026:23858-1 |
| SUSE / openSUSE | SLE-16 | zstd-jnippc64le | Advisory build | 1.5.7.16-160000.1.1 | SUSE-SU-2026:23868-1 |
| SUSE / openSUSE | SLE-16 | zstd-jnis390x | Advisory build | 1.5.7.16-160000.1.1 | SUSE-SU-2026:23858-1 |
| SUSE / openSUSE | SLE-16 | zstd-jnis390x | Advisory build | 1.5.7.16-160000.1.1 | SUSE-SU-2026:23868-1 |
| SUSE / openSUSE | SLE-16 | zstd-jnix86_64 | Advisory build | 1.5.7.16-160000.1.1 | SUSE-SU-2026:23858-1 |
Show 6 more entries
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| SUSE / openSUSE | SLE-16 | zstd-jnix86_64 | Advisory build | 1.5.7.16-160000.1.1 | SUSE-SU-2026:23868-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | zstd-jniaarch64 | Advisory build | 1.5.7.16-160000.1.1 | OPENSUSE-SU-2026:21902-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | zstd-jnippc64le | Advisory build | 1.5.7.16-160000.1.1 | OPENSUSE-SU-2026:21902-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | zstd-jnis390x | Advisory build | 1.5.7.16-160000.1.1 | OPENSUSE-SU-2026:21902-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | zstd-jnix86_64 | Advisory build | 1.5.7.16-160000.1.1 | OPENSUSE-SU-2026:21902-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | zstd-jni-javadocnoarch | Advisory build | 1.5.7.16-160000.1.1 | OPENSUSE-SU-2026:21902-1 |
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.
Related advisories
Vendor advisories explicitly linked to this CVE.
Assessment
CVSS risk assessment and additional context for this vulnerability.
- CVSS version
- 4.0
- Base score
- 8.7 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- 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
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.5 | high | VulnCheck · cna | CVSS:3.1/AV:N/AC:L/PR:N/UI:N/S:U/C:N/I:N/A:H | — |
Publisher product statements
Version ranges and default statuses as reported by each provider.
| Vendor | Product | Version status | Source |
|---|---|---|---|
| luben | zstd-jni | 1.3.3-1 to < 1.5.7-14 (affected · custom)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-125 Out-of-bounds Read
References
8- https://github.com/luben/zstd-jni
- Java wrapper that only checks the sample count at v1.5.7-13 https://github.com/luben/zstd-jni/blob/v1.5.7-13/src/main/java/com/github/luben/zstd/Zstd.java
- Samples buffer capacity never read at v1.5.7-13 https://github.com/luben/zstd-jni/blob/v1.5.7-13/src/main/native/jni_zdict.c
- Commit that introduced the direct-buffer dictionary trainer without a samples capacity check (first released in 1.3.3-1) https://github.com/luben/zstd-jni/commit/53d3c6342883f7d6717b2477a7f9c1b4a4a56980
- Fix commit: validate the samples buffer capacity against the declared sample sizes https://github.com/luben/zstd-jni/commit/bba6cfca2c0897f1fa004f4193247479f10da853
- zstd-jni v1.5.7-14 Release Notes https://github.com/luben/zstd-jni/releases/tag/v1.5.7-14
- GitHub Security Advisory (GHSA-257p-3h6w-pg7h) https://github.com/luben/zstd-jni/security/advisories/GHSA-257p-3h6w-pg7h
- VulnCheck Advisory: zstd-jni 1.3.3-1 through 1.5.7-13 Out-of-Bounds Read via Zstd.trainFromBufferDirect https://www.vulncheck.com/advisories/zstd-jni-1.3.3-1-through-1.5.7-13-out-of-bounds-read-via-zstd-trainfrombufferdirect
Provider assertions
2VulnCheck · cna
zstd-jni 1.3.3-1 through 1.5.7-13 Out-of-Bounds Read via Zstd.trainFromBufferDirect
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 677e8a0afae02d00b51b9a5e8b604ceba227f8eb68836f75e84c2778c312992b
- Ingested
- 23 Sep 2026, 09:37:53 UTC
- Source record
- Official CVE record