CVE-2026-87877
published high CVSS 4.0 · 7.0zstd-jni 1.3.8-4 through 1.5.7-13 Use-After-Free via Setters Called After close()
Package status and fixes
| Distro / vendor | Release | Package / product | Publisher status | Fixed build | Source |
|---|---|---|---|---|---|
| luben | — | zstd-jni1.3.8-4 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 versions before 1.5.7-14 fail to validate closed state in setDict, setLongMax, setLevel and setRefMultipleDDicts methods of stream classes. Attackers can call these methods on closed streams to write through freed native pointers, corrupting unrelated objects or crashing the JVM.
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
- 7.0 / 10
- Severity
- high
- Provider
- VulnCheck · cna
- Vector string
- CVSS:4.0/AV:L/AC:L/AT:N/PR:N/UI:N/VC:N/VI:H/VA:H/SC:N/SI:N/SA:N
Additional Assessments
| Version | Score | Severity | Provider | Vector | Scenarios |
|---|---|---|---|---|---|
| 3.1 | 7.7 | high | VulnCheck · cna | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/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.8-4 to < 1.5.7-14 (affected · custom)Default: unaffected | VulnCheck · cna |
Weaknesses
1- CWE-416 Use After Free
References
9- https://github.com/luben/zstd-jni
- Setters without the closed-state guard that readInternal already has, at v1.5.7-13 https://github.com/luben/zstd-jni/blob/v1.5.7-13/src/main/java/com/github/luben/zstd/BaseZstdBufferDecompressingStreamNoFinalizer.java
- final stream handle retained after close at v1.5.7-13 https://github.com/luben/zstd-jni/blob/v1.5.7-13/src/main/java/com/github/luben/zstd/ZstdInputStreamNoFinalizer.java
- Commit that made setDict write through the retained native stream handle (first released in 1.3.8-4) https://github.com/luben/zstd-jni/commit/0827ed02551bbd8d6f8e4bbff99d83bf50f91938
- Fix commit: closed-state guards on the input and output stream setters https://github.com/luben/zstd-jni/commit/393d7311766abbc285b149302c0fe1f94b16d555
- Fix commit: closed-state guards on BaseZstdBufferDecompressingStreamNoFinalizer https://github.com/luben/zstd-jni/commit/f38f9a1563113d96d0fc38baee543f7457dd8a8e
- zstd-jni v1.5.7-14 Release Notes https://github.com/luben/zstd-jni/releases/tag/v1.5.7-14
- GitHub Security Advisory (GHSA-2jw3-mg7f-vw4q) https://github.com/luben/zstd-jni/security/advisories/GHSA-2jw3-mg7f-vw4q
- VulnCheck Advisory: zstd-jni 1.3.8-4 through 1.5.7-13 Use-After-Free via Setters Called After close() https://www.vulncheck.com/advisories/zstd-jni-1.3.8-4-through-1.5.7-13-use-after-free-via-setters-called-after-close
Provider assertions
2VulnCheck · cna
zstd-jni 1.3.8-4 through 1.5.7-13 Use-After-Free via Setters Called After close()
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 8901c2775d3393a51164de23ee677754a897ba976d669caa21b0c0ed2e09460b
- Ingested
- 23 Sep 2026, 09:37:53 UTC
- Source record
- Official CVE record