Use-After-Free Vulnerability in zstd-jni Affects Compression and Decompression Dictionaries
CVE-2026-87825

7HIGH

Key Information:

Vendor

Luben

Status
Vendor
CVE Published:
9 September 2026

What is CVE-2026-87825?

The zstd-jni library suffers from a use-after-free vulnerability that affects the handling of compression and decompression dictionaries. In versions prior to 1.5.7-14, streams and contexts maintain a shared lock on a dictionary only during the load call. This allows malicious actors to close a dictionary while it is still referenced by a stream or context. Such an action can lead to actions that read or write from freed native memory, resulting in silent data corruption or crashes in the Java Virtual Machine (JVM). To mitigate this vulnerability, it is crucial for users to update to version 1.5.7-14, where the handling of dictionary locks has been improved.

Affected Version(s)

zstd-jni 1.3.8-4 < 1.5.7-14

References

CVSS V4

Score:
7
Severity:
HIGH
Confidentiality:
None
Integrity:
High
Availability:
High
Attack Vector:
Local
Attack Complexity:
Low
Attack Required:
None
Privileges Required:
Undefined
User Interaction:
None

Timeline

  • Vulnerability published

  • Vulnerability Reserved

Credit

Yu Bao, PayPal Cyber Security Team
.