CVE-2026-87825: zstd-jni use-after-free in dictionary reference handling

CVE-2026-87825 · Severity: high · CVSS 7.7 · Published 2026-09-09

zstd-jni is a Java library that provides compression functionality through native bindings to the Zstandard compression algorithm. A use-after-free vulnerability allows attackers to close a dictionary after it has been associated with a compression or decompression stream, causing the library to access freed memory. This can result in silent data corruption (compressed data becoming invalid or decompressed data becoming corrupted) or crash the Java Virtual Machine, disrupting any application relying on this compression library.

Technologies: Luben Zstd-Jni. Vendors: Luben.

Quick answers

Is CVE-2026-87825 exploited in the wild?
No. Junglewise Threat Intelligence has no report of CVE-2026-87825 being exploited in the wild.
How severe is CVE-2026-87825?
High severity, with a CVSS score of 7.7, published 9 September 2026.
Which products and versions are affected?
Luben Zstd-Jni before 1.5.7-14.
Is there a fix for CVE-2026-87825?
A patch was published on 2026-08-16: Fix available in version 1.5.7-14 released 2026-08-16 Junglewise finds every place you run it, drafts the upgrade and applies it once you approve.
How is CVE-2026-87825 attacked?
It is attacked with local access, in a software library.
Am I affected by CVE-2026-87825?
Check whether you run Luben Zstd-Jni at an affected version. Junglewise does that check for you around the clock: connect your code, cloud and domains, and it matches new vulnerabilities like this one against what you actually run and tells you when one reaches you.

Technical details

The vulnerability is a use-after-free flaw in zstd-jni's dictionary lifecycle management. Streams and contexts hold only a shared lock on a dictionary during the initial load call, but release the lock immediately afterward. An attacker can explicitly close the dictionary object while it remains referenced by an active stream or context, causing subsequent read or write operations to dereference freed native memory. The vulnerability is triggered through normal API usage without requiring special privileges or network access, though the attacker must have the ability to control when the dictionary is closed. Patch is available in version 1.5.7-14 and later.

Affected products

  • Luben zstd-jni before 1.5.7-14

Timeline

  • 2026-09-09: disclosed
  • 2026-08-16: patched: Fix available in version 1.5.7-14 released 2026-08-16

References

This page as Markdown. Free to reuse under CC BY 4.0 with a link back.