Use-After-Free Vulnerability in zstd-jni Affecting Java Virtual Machine
CVE-2026-87877
7HIGH
What is CVE-2026-87877?
The zstd-jni library prior to version 1.5.7-14 is susceptible to a use-after-free vulnerability due to insufficient validation of closed state in several methods, including setDict and setLevel. This flaw allows attackers to invoke these methods on streams that have already been closed, leading to the potential for writing through freed native pointers. Such actions could corrupt unrelated memory objects or even crash the Java Virtual Machine (JVM), posing significant security risks for applications that depend on zstd-jni.
Affected Version(s)
zstd-jni 1.3.8-4 < 1.5.7-14
