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

Published Sep 9, 2026
·
Updated

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 Software

2 affected components
zstd-jni>=1.3.8-4<=1.5.7-13
zstd-jni<1.5.7-14

Remediation

Recommended actions to resolve this vulnerability, in priority order.

  1. Upgrade

    Upgrade zstd-jni to a version that resolves this vulnerability.

    Fixed in 1.5.7-14

Event History

Sep 9, 2026
CVE Published
via MITRE·02:32 PM
Data Sourced
via MITRE·02:32 PM
DescriptionSeverityWeakness

Frequently Asked Questions

1

Who can exploit this issue?

An attacker needs the ability to invoke zstd-jni stream methods within the affected JVM process. The vulnerability has no required privileges or user interaction, but the attack vector is local.

2

What application behavior is required to trigger it?

A stream must first be closed, after which setDict, setLongMax, setLevel, or setRefMultipleDDicts is called on that same closed stream. These calls can write through freed native pointers.

3

Are default deployments affected?

The provided information does not identify any configuration prerequisite. Affected zstd-jni versions are vulnerable when application code calls the listed setters after close().

4

What can be done before upgrading?

Prevent calls to setDict, setLongMax, setLevel, and setRefMultipleDDicts after a stream has been closed. Ensure stream lifecycle handling prevents closed stream instances from being reused.

5

How can I determine whether an application is affected?

Check whether it uses zstd-jni earlier than 1.5.7-14 and whether its code can call the affected setter methods on closed stream objects. Crashes of the JVM may also result from triggering the condition.

Contact

SecAlerts Pty Ltd.
132 Wickham Terrace
Fortitude Valley,
QLD 4006, Australia
info@secalerts.co
By using SecAlerts services, you agree to our services end-user license agreement. This website is safeguarded by reCAPTCHA and governed by the Google Privacy Policy and Terms of Service. All names, logos, and brands of products are owned by their respective owners, and any usage of these names, logos, and brands for identification purposes only does not imply endorsement. If you possess any content that requires removal, please get in touch with us.
© 2026 SecAlerts Pty Ltd.
ABN: 70 645 966 203, ACN: 645 966 203