CVE-2026-87825
zstd-jni 1.3.8-4 through 1.5.7-13 Use-After-Free of Compression and Decompression Dictionaries
- State
- Published
- Severity
- 7.0 High
- Published
- Sep 9, 2026
- Updated
- Sep 14, 2026
- Reserved
- Sep 9, 2026
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.
Scores
| CVSS | Score | Vector | Source |
|---|---|---|---|
| 4.0 | 7.0 High | 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 | VulnCheck |
| 3.1 | 7.7 High | CVSS:3.1/AV:L/AC:L/PR:N/UI:N/S:U/C:N/I:H/A:H | VulnCheck |
Weaknesses
- CWE-416 Use After Free
Affected Products
| Product | Versions |
|---|---|
zstd-jniluben |
|
References
- GitHub Security Advisory (GHSA-947w-pxjj-c7m9)vendor-advisory
- Fix commit: hold the dictionary shared lock for the stream's usage windowpatch
- Fix commit: cross-object lifetime tracking for dictionaries and contextspatch
- Shared lock released as soon as the dictionary is loaded at v1.5.7-13technical-description
- Same lock lifecycle in the buffer stream base class at v1.5.7-13technical-description
- zstd-jni v1.5.7-14 Release Notesrelease-notes
- Commit that made setDict load the dictionary eagerly into the native context (first released in 1.3.8-4)technical-descriptionpatch
- https://github.com/luben/zstd-jniproduct
- VulnCheck Advisory: zstd-jni 1.3.8-4 through 1.5.7-13 Use-After-Free of Compression and Decompression Dictionariesthird-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.