What’s Vulnerable › Vulnerabilities

CVE-2026-87877: zstd-jni 1.3.8-4 through 1.5.7-13 Use-After-Free via Setters Called After close()

Description

zstd-jni versions before 1.5.7-14 fail to validate closed state in setDict, setLongMax, setLevel and setRefMultipleDDicts methods of stream classes. Attackers can call these methods on closed streams to write through freed native pointers, corrupting unrelated objects or crashing the JVM.

Affected products

How to fix

Upgrade to a fixed version: luben zstd-jni 1.5.7-14. Check the vendor advisory for mitigations.

References

Get alerted when CVE-2026-87877 or the next vulnerability affects your stack