CVE-2026-87825
published high CVSS 4.0 · 7.0zstd-jni 1.3.8-4 through 1.5.7-13 Use-After-Free of Compression and Decompression Dictionaries
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 14 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-Tumbleweed | zstd-jniaarch64 | Advisory build | 1.5.7.16-1.1 | OPENSUSE-SU-2026:11769-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | zstd-jnippc64le | Advisory build | 1.5.7.16-1.1 | OPENSUSE-SU-2026:11769-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | zstd-jnis390x | Advisory build | 1.5.7.16-1.1 | OPENSUSE-SU-2026:11769-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | zstd-jnix86_64 | Advisory build | 1.5.7.16-1.1 | OPENSUSE-SU-2026:11769-1 |
| SUSE / openSUSE | openSUSE-Leap-16.0 | zstd-jni-javadocnoarch | Advisory build | 1.5.7.16-160000.1.1 | OPENSUSE-SU-2026:21902-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | zstd-jni-javadocaarch64 | Advisory build | 1.5.7.16-1.1 | OPENSUSE-SU-2026:11769-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | zstd-jni-javadocppc64le | Advisory build | 1.5.7.16-1.1 | OPENSUSE-SU-2026:11769-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | zstd-jni-javadocs390x | Advisory build | 1.5.7.16-1.1 | OPENSUSE-SU-2026:11769-1 |
| SUSE / openSUSE | openSUSE-Tumbleweed | zstd-jni-javadocx86_64 | Advisory build | 1.5.7.16-1.1 | OPENSUSE-SU-2026:11769-1 |
Description
zstd-jni before 1.5.7-14 contains a use-after-free vulnerability where streams and contexts hold a dictionary's shared lock only during the load call, allowing the dictionary to be closed while still referenced. Attackers can close a dictionary after associating it with a stream or context, causing subsequent read or write operations to access freed native memory, resulting in silent data corruption or JVM crashes.
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
- Same lock lifecycle in the buffer stream base class 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
- Shared lock released as soon as the dictionary is loaded 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 load the dictionary eagerly into the native context (first released in 1.3.8-4) https://github.com/luben/zstd-jni/commit/0827ed02551bbd8d6f8e4bbff99d83bf50f91938
- Fix commit: hold the dictionary shared lock for the stream's usage window https://github.com/luben/zstd-jni/commit/393d7311766abbc285b149302c0fe1f94b16d555
- Fix commit: cross-object lifetime tracking for dictionaries and contexts https://github.com/luben/zstd-jni/commit/a560131d7834598afd9cea6b7c107bc88e915936
- zstd-jni v1.5.7-14 Release Notes https://github.com/luben/zstd-jni/releases/tag/v1.5.7-14
- GitHub Security Advisory (GHSA-947w-pxjj-c7m9) https://github.com/luben/zstd-jni/security/advisories/GHSA-947w-pxjj-c7m9
- VulnCheck Advisory: zstd-jni 1.3.8-4 through 1.5.7-13 Use-After-Free of Compression and Decompression Dictionaries https://www.vulncheck.com/advisories/zstd-jni-1.3.8-4-through-1.5.7-13-use-after-free-of-compression-and-decompression-dictionaries
Provider assertions
2VulnCheck · cna
zstd-jni 1.3.8-4 through 1.5.7-13 Use-After-Free of Compression and Decompression Dictionaries
CISA-ADP · adp
CISA ADP Vulnrichment
Provenance
- Schema
- 5.2
- Searchable
- yes
- Content hash
- 5b01e5585f21f1fb35ca2388aa5c522172ec88fb1bd1a1899939c0d31c4e6d15
- Ingested
- 23 Sep 2026, 09:37:53 UTC
- Source record
- Official CVE record